/* Riviera: layout pieces theme.json can't express, the family's devices (the white postcards with
   their message and address sides, the perforated stamps, the postmarks, the travel-poster cover),
   and the restyle of the automatrix-sites blocks' markup and states. Colours are palette roles; the
   few extra tones of the canvas (the card white, the stamp paper, terracotta, the lemon on navy and
   the muted blue on navy) are the --rv-* tokens below. */

:root {
	--amx-color-background: var(--wp--preset--color--background);
	--amx-color-surface: var(--wp--preset--color--surface);
	--amx-color-text: var(--wp--preset--color--text);
	--amx-color-text-muted: var(--wp--preset--color--text-muted);
	--amx-color-primary: var(--wp--preset--color--primary);
	--amx-color-on-primary: var(--wp--preset--color--on-primary);
	--amx-color-primary-text: var(--wp--preset--color--primary-text);
	--amx-color-primary-border: var(--wp--preset--color--primary-border);
	--amx-color-accent: var(--wp--preset--color--accent);
	--amx-color-on-accent: var(--wp--preset--color--on-accent);
	--amx-color-border: var(--wp--preset--color--border);
	--amx-color-border-strong: var(--wp--preset--color--border-strong);
	--amx-color-success: var(--wp--preset--color--success);
	--amx-color-on-success: var(--wp--preset--color--on-success);
	--amx-color-warning: var(--wp--preset--color--warning);
	--amx-color-on-warning: var(--wp--preset--color--on-warning);
	--amx-color-danger: var(--wp--preset--color--danger);
	--amx-color-on-danger: var(--wp--preset--color--on-danger);

	/* The canvas's extra tones: the postcard white, the stamp paper, the stamp's terracotta frame,
	   the lemon kicker on navy (11:1 on primary), the muted blue on navy (7.6:1 on primary) and the
	   footer's deep navy (the text colour as a ground). */
	--rv-card: #fff;
	--rv-paper: #fffdf6;
	--rv-terracotta: #c4553b;
	--rv-lemon-d: #ffe27a;
	--rv-muted-d: #c9d4ea;
	--rv-deep: var(--wp--preset--color--text);
	--rv-serif: var(--wp--preset--font-family--heading);
	--rv-shadow: var(--wp--preset--shadow--floating);
	--rv-shadow-deep: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
	--rv-section: var(--wp--preset--spacing--70);
	--rv-perf: radial-gradient(3.4px, #0000 96%, #000) -5px -5px / 10px 10px round, conic-gradient(#000 0 0) content-box;
	--rv-h2: clamp(2.5rem, 6.2vw, 5.1rem);
	--rv-h2-sm: clamp(2rem, 4.2vw, 3.1rem);
	--rv-h1: clamp(2.6rem, 7vw, 6rem);
}

[hidden] {
	display: none !important;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 16px;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
body {
	overflow-x: clip;
}

/* Sections meet edge to edge: no block gap between the header, the bands and the footer. */
.wp-site-blocks > *,
.rv-main > *,
.rv-main > .wp-block-post-content > *,
.rv-hero > * {
	margin-block: 0;
}
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* State hook (contract): a section wrapped in amx-needs-data hides when its event blocks render
   nothing, e.g. the wedding party before anyone is added, or now-and-next outside the weekend. */
.amx-needs-data:not(:has([class*="wp-block-amx-"])) {
	display: none;
}

/* Grids and rows drawn here: their children carry no flow-layout margin. */
:is(.rv-head, .rv-head-row, .rv-head-row > *, .rv-row-head, .rv-row-head > *, .rv-names-wrap, .rv-postcard, .rv-pc-message, .rv-pc-address, .rv-pc-actions, .rv-stamp, .rv-days, .rv-back, .rv-back-rows, .rv-back-to, .rv-front .wp-block-cover__inner-container, .rv-download, .rv-download-body, .rv-legs, .rv-leg, .rv-stays-grid, .rv-stays-photo, .rv-stays-list, .rv-stay, .rv-guide-grid, .rv-registry-grid, .rv-registry-grid > *, .rv-registry-card, .rv-inline, .rv-rsvp-grid, .rv-reply-card, .rv-reply-head, .rv-reply-head > *, .rv-asks, .rv-send, .rv-faq-grid, .rv-faq-list, .rv-footer-grid, .rv-footer-names, .rv-footer-lines, .rv-footer-nav, .rv-intro, .rv-note-card, .rv-note-body, .rv-closing-act, .rv-letter, .rv-byline, .rv-post-kicker, .rv-nownext, .rv-card, .rv-empty-card, .rv-lost-card, .rv-suppliers) > * {
	margin-block: 0;
}

:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary-text);
	outline-offset: 3px;
}
:is(.is-style-section-primary, .is-style-section-ink, .rv-footer) :focus-visible {
	outline-color: var(--wp--preset--color--accent);
}

/* ---------- Type ---------- */

.rv-kicker,
.rv-cap-kicker {
	margin: 0;
	font-size: 0.78125rem;
	line-height: 1.35;
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
	font-weight: 600;
}
.rv-kicker.is-muted {
	color: var(--wp--preset--color--text-muted);
}
.rv-kicker.is-blue {
	color: var(--wp--preset--color--primary-text);
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
}
.rv-kicker.is-red {
	color: var(--wp--preset--color--danger);
	font-weight: 700;
}
.rv-kicker.is-lemon,
:is(.is-style-section-primary, .is-style-section-ink) .rv-kicker.is-muted {
	color: var(--rv-lemon-d);
}
.rv-kicker + h1,
.rv-kicker + h2,
.rv-kicker + h3 {
	margin-top: 10px !important;
}
.rv-section h2,
.rv-closing h2 {
	font-size: var(--rv-h2);
	line-height: 1.05;
}
.rv-section h2.rv-h2-sm,
.rv-h2-sm {
	font-size: var(--rv-h2-sm);
}
.rv-lede {
	margin: 0;
	max-width: 34rem;
	color: var(--wp--preset--color--text-muted);
}
:is(.is-style-section-primary, .is-style-section-ink) .rv-lede,
:is(.is-style-section-primary, .is-style-section-ink) .rv-muted {
	color: var(--rv-muted-d);
}
.rv-muted {
	color: var(--wp--preset--color--text-muted);
}
.rv-small {
	font-size: 0.9375rem;
}
.rv-note {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--text-muted);
}
.rv-note strong {
	color: var(--wp--preset--color--text);
}
.rv-sample {
	display: inline-block;
	margin-right: 6px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.rv-amp {
	color: var(--wp--preset--color--primary-text);
}
a {
	text-underline-offset: 0.18em;
}

/* ---------- Buttons ---------- */

.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	box-sizing: border-box;
	text-decoration: none;
}
.wp-block-button.is-style-outline > .wp-block-button__link,
.rv-pill-link a {
	background: transparent;
	color: var(--wp--preset--color--text);
	border: 2px solid var(--wp--preset--color--text);
}
.rv-pill-link {
	margin: 0;
}
.rv-pill-link a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
}
.rv-pill-link a:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--background);
}
.rv-pill-static {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	margin: 0;
	padding: 0 22px;
	border-radius: 999px;
	border: 2px dashed var(--wp--preset--color--text);
	font-weight: 600;
}

/* ---------- Header ---------- */

.rv-header {
	position: relative;
	z-index: 5;
	padding-block: 16px;
	background: var(--wp--preset--color--background);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.rv-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
}
.rv-monogram {
	margin: 0;
}
.rv-monogram a {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1.5px solid var(--wp--preset--color--text);
	display: grid;
	place-items: center;
	font-family: var(--rv-serif);
	font-size: 15px;
	color: var(--wp--preset--color--text);
	background: rgba(255, 255, 255, 0.6);
	text-decoration: none;
}
.rv-nav {
	margin-left: auto;
	gap: 4px !important;
	justify-content: flex-end;
}
.rv-nav .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 14px;
	border-radius: 999px;
	color: var(--wp--preset--color--text);
	font-weight: 500;
	font-size: 0.9375rem;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.82);
}
.rv-header .rv-nav .wp-block-navigation-item__content {
	background: var(--rv-card);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border);
}
.rv-nav .wp-block-navigation-item__content:hover,
.rv-nav .current-menu-item > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--background);
}
body:is(.blog, .single-post, .category, .tag, .author, .date, .search) .rv-nav-news .wp-block-navigation-item__content {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--text);
}
.rv-head-cta {
	margin: 0;
}
.rv-btn-small > .wp-block-button__link {
	min-height: 48px;
	padding: 0 18px;
	font-size: 0.9375rem;
	border-width: 1.5px;
}

/* Over the home's cover the header floats on the photograph. */
body:has(.rv-hero) .rv-header {
	position: absolute;
	inset: 0 0 auto;
	background: transparent;
	border-bottom: 0;
}
body.admin-bar:has(.rv-hero) .rv-header {
	top: var(--wp-admin--admin-bar--height, 0);
}
body:has(.rv-hero) .wp-site-blocks > header {
	position: relative;
	z-index: 6;
}
body:has(.rv-hero) .wp-site-blocks > header .amx-announcement {
	position: relative;
	z-index: 6;
}
/* With the status bar above it, the floating header sits under the bar. */
body:has(.rv-hero) header:has(.amx-announcement) .rv-header {
	position: relative;
	margin-bottom: -80px;
}

/* ---------- Status bar and tags ---------- */

.amx-announcement {
	padding: 12px 16px;
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--background);
	font-size: 0.9375rem;
	text-align: center;
}
.amx-announcement p {
	margin: 0 auto;
	max-width: 75.5rem;
}
.amx-announcement.is-postponed,
.amx-announcement.is-soldout,
.amx-announcement.is-closed {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
}
.amx-announcement.is-cancelled {
	background: var(--wp--preset--color--danger);
	color: var(--wp--preset--color--on-danger);
}
.amx-tag {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.6;
	vertical-align: middle;
	border: 1.5px solid currentColor;
}
.amx-tag.is-ok {
	background: var(--wp--preset--color--success);
	color: var(--wp--preset--color--on-success);
	border-color: var(--wp--preset--color--success);
}
.amx-tag.is-warn {
	background: var(--wp--preset--color--warning);
	color: var(--wp--preset--color--on-warning);
	border-color: var(--wp--preset--color--warning);
}
.amx-tag.is-bad {
	background: var(--wp--preset--color--danger);
	color: var(--wp--preset--color--on-danger);
	border-color: var(--wp--preset--color--danger);
}
.amx-tag.is-neutral {
	background: transparent;
	color: inherit;
}
.amx-tag.is-featured {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	border-color: var(--wp--preset--color--accent);
}
/* Inside the bar each tag reads on the bar's own ground. */
.amx-announcement .amx-tag {
	margin-right: 8px;
}
.amx-announcement.is-ended .amx-tag {
	color: var(--wp--preset--color--accent);
}
.amx-announcement:is(.is-postponed, .is-soldout, .is-closed) .amx-tag.is-neutral {
	color: var(--wp--preset--color--text);
}
.amx-announcement.is-cancelled .amx-tag {
	background: var(--wp--preset--color--on-danger);
	color: var(--wp--preset--color--danger);
	border-color: var(--wp--preset--color--on-danger);
}

/* ---------- Postcards, stamps, postmarks ---------- */

.rv-postcard,
.rv-card,
.rv-note-card,
.rv-download,
.rv-letter {
	background: var(--rv-card);
	border: 9px solid var(--rv-card);
	box-shadow: var(--rv-shadow);
	color: var(--wp--preset--color--text);
	box-sizing: border-box;
}
.rv-postcard {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	position: relative;
}
.rv-pc-message {
	padding: 40px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}
.rv-pc-address {
	position: relative;
	padding: 40px;
	border-left: 1.5px solid var(--wp--preset--color--border);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 330px;
	min-width: 0;
}
.rv-to {
	margin: 0;
	border-bottom: 1.5px solid var(--wp--preset--color--border);
	padding: 9px 0 5px;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--text-muted);
}
.rv-to b {
	color: var(--wp--preset--color--text);
	font-weight: 500;
}

/* The perforated stamp: paper with a punched edge round a framed picture and a label bar. */
.rv-stamp {
	width: 86px;
	padding: 7px;
	box-sizing: border-box;
	background: var(--rv-paper);
	-webkit-mask: var(--rv-perf);
	mask: var(--rv-perf);
	position: relative;
	flex: none;
}
.rv-stamp figure,
.rv-stamp img {
	margin: 0 !important;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border: 4px solid var(--rv-terracotta);
	box-sizing: border-box;
	background: var(--rv-terracotta);
}
.rv-stamp figure img {
	border: 0;
}
.rv-stamp figure {
	position: relative;
}
.rv-stamp-label,
.rv-stamp > span {
	position: absolute;
	left: 11px;
	right: 11px;
	bottom: 11px;
	margin: 0 !important;
	background: var(--rv-terracotta);
	color: #fff8e8;
	font-size: 9px;
	line-height: 1.5;
	letter-spacing: 0.14em;
	text-align: center;
	font-weight: 600;
	text-transform: uppercase;
}
.rv-pc-address > .rv-stamp {
	position: absolute;
	top: 19px;
	right: 19px;
}
/* The postmark, struck across the stamp: rings, the town round the edge, a star and the waves. */
.rv-note-card::after,
.rv-letter::before,
.rv-back::before {
	content: "";
	position: absolute;
	pointer-events: none;
	background: var(--wp--preset--color--text);
	opacity: 0.78;
	-webkit-mask: url(images/postmark-waves.svg) no-repeat center / contain;
	mask: url(images/postmark-waves.svg) no-repeat center / contain;
}
.rv-pc-address:has(> .rv-stamp.has-postmark)::after {
	content: "";
	position: absolute;
	pointer-events: none;
	width: 200px;
	height: 109px;
	top: 33px;
	right: 47px;
	z-index: 2;
	background: var(--wp--preset--color--text);
	opacity: 0.78;
	-webkit-mask: url(images/postmark-waves.svg) no-repeat center / contain;
	mask: url(images/postmark-waves.svg) no-repeat center / contain;
}
.rv-stamp-box {
	width: 84px;
	height: 100px;
	flex: none;
	margin: 0;
	box-sizing: border-box;
	border: 2px dashed var(--wp--preset--color--border);
	display: grid;
	place-items: center;
	text-align: center;
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
	padding: 5px;
}

/* Photographs as prints: a white border and the card shadow. */
.rv-print {
	margin: 0;
	background: var(--rv-card);
	padding: 9px;
	box-shadow: var(--rv-shadow);
	box-sizing: border-box;
}
.rv-print img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rv-print.is-landscape img {
	aspect-ratio: 5 / 4;
}
.rv-print.is-wide img {
	aspect-ratio: 4 / 3;
}
.rv-print.is-tall img {
	aspect-ratio: 3 / 4;
}
.rv-print figcaption {
	margin: 0;
	padding: 10px 4px 2px;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--text-muted);
}

/* ---------- Sections ---------- */

.rv-section {
	padding-block: var(--rv-section);
}
.rv-head-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
	gap: 24px 48px;
	align-items: end;
	margin-bottom: 56px !important;
}
.rv-head-row.is-flush {
	margin-bottom: 0 !important;
}
.rv-row-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: end;
	gap: 16px 32px;
	margin-bottom: 40px !important;
}
.rv-row-head h2 {
	margin: 0;
}
/* A page's navy head already carries the section's title, so the section's own goes. */
.rv-intro + .rv-section > .rv-head-row,
.rv-intro + .rv-intro + .rv-section > .rv-head-row,
.rv-intro + .rv-faq .rv-faq-list > .rv-kicker,
.rv-intro + .rv-faq .rv-faq-list > .rv-h2-sm,
.rv-intro + .rv-registry .rv-registry-grid > .wp-block-group:first-child {
	display: none;
}
.rv-intro + .rv-section,
.rv-intro + .rv-intro + .rv-section {
	padding-top: 72px;
}

/* ---------- Hero: the travel-poster cover and the invitation ---------- */

.rv-hero {
	position: relative;
	padding-bottom: 0;
}
.rv-hero-photo {
	min-height: 880px !important;
	padding: 0 !important;
	align-items: flex-start !important;
}
.rv-hero-photo .wp-block-cover__image-background {
	filter: saturate(1.2) contrast(1.05);
}
.rv-hero-photo .wp-block-cover__inner-container {
	width: 100% !important;
	max-width: 77.5rem !important;
	margin: 0 auto;
	padding: 110px 16px 0;
	box-sizing: border-box;
	color: var(--wp--preset--color--text);
}
.rv-names-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	max-width: 75.5rem;
	margin-inline: auto !important;
}
.rv-names {
	margin: 0;
	font-size: clamp(4.4rem, 13.5vw, 12rem);
	line-height: 0.86;
	letter-spacing: -0.025em;
	color: var(--wp--preset--color--text);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}
.rv-names .rv-amp {
	font-size: 0.62em;
}
.rv-place {
	margin: 18px 0 0;
	font-size: 15px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 600;
	line-height: 1.3;
}
.rv-lift {
	position: relative;
	z-index: 2;
	margin-top: -190px !important;
	padding-inline: 16px;
}
.rv-hero-card {
	max-width: 63.25rem;
	margin-inline: auto;
}
.rv-pc-lead {
	margin: 0;
	font-family: var(--rv-serif);
	font-size: 30px;
	line-height: 1.18;
}
.rv-pc-date {
	margin: 0;
	font-family: var(--rv-serif);
	font-size: 48px;
	line-height: 1;
	color: var(--wp--preset--color--primary-text);
}
.rv-pc-date :is(.amx-time, .amx-zone) {
	display: none;
}
.rv-pc-date .amx-was {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.9375rem;
	color: var(--wp--preset--color--text-muted);
	margin-bottom: 6px;
}
.rv-pc-date .amx-was :is(.amx-time, .amx-zone) {
	display: none;
}
.rv-place-sm {
	display: none;
}
.rv-pc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
	margin-top: 8px !important;
}
.rv-pc-actions .wp-block-buttons {
	margin: 0;
}
.rv-count {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--text-muted);
}
.rv-count p {
	margin: 0;
}
.rv-count .amx-countdown-value span {
	font-family: var(--rv-serif);
	font-size: 26px;
	color: var(--wp--preset--color--text);
}

/* Phase heroes. */
.rv-live-side {
	justify-content: flex-start;
	gap: 16px;
}
.rv-after-side {
	padding: 0;
	min-height: 0;
}
.rv-after-side .rv-print {
	box-shadow: none;
	padding: 0;
	height: 100%;
}
.rv-after-side .rv-print img {
	aspect-ratio: auto;
	min-height: 330px;
}

/* ---------- The weekend: three postcards ---------- */

.rv-weekend {
	padding-top: 150px;
}
.rv-days {
	display: grid;
	grid-template-columns: minmax(0, 0.6fr) minmax(0, 0.44fr) minmax(0, 0.6fr) minmax(0, 0.44fr);
	grid-template-rows: auto auto 96px auto auto 96px auto auto;
}
.rv-days .amx-agenda,
.rv-days .amx-agenda.is-layout-days .amx-days {
	display: contents;
}
.rv-days .amx-agenda > :not(.amx-days):not(.amx-empty) {
	grid-column: 1 / -1;
}
.rv-front {
	margin: 0 !important;
	min-height: 520px !important;
	padding: 9px !important;
	background: var(--rv-card);
	box-shadow: var(--rv-shadow);
	align-items: flex-end !important;
}
.rv-front .wp-block-cover__image-background {
	inset: 9px !important;
	width: calc(100% - 18px) !important;
	height: calc(100% - 18px) !important;
	filter: saturate(1.2) contrast(1.05);
}
.rv-front.is-day-1 .wp-block-cover__image-background {
	object-position: 50% 70%;
}
.rv-front .wp-block-cover__inner-container {
	position: absolute !important;
	left: 9px;
	right: 9px;
	bottom: 9px;
	width: auto !important;
	padding: 56px 20px 18px;
	display: grid;
	gap: 4px;
	color: #fff;
	background: linear-gradient(0deg, rgba(6, 18, 40, 0.72), rgba(6, 18, 40, 0));
}
.rv-cap-kicker {
	color: #ffe88a;
}
.rv-cap-title {
	margin: 0;
	font-family: var(--rv-serif);
	font-size: 29px;
	line-height: 1.1;
}
.rv-front.is-day-1 { grid-area: 1 / 1 / 3 / 3; }
.rv-front.is-day-2 { grid-area: 4 / 3 / 6 / 5; }
.rv-front.is-day-3 { grid-area: 7 / 1 / 9 / 3; }
/* The back of each postcard: the card itself (white, framed, the stamp and postmark struck on it),
   the day's moments from the programme laid on its message side, then the dress and shuttle rows
   under them and the address lines down the other side. */
.rv-back {
	position: relative;
	display: grid;
	grid-template-columns: subgrid;
	grid-template-rows: subgrid;
	background: var(--rv-card);
	border: 9px solid var(--rv-card);
	box-shadow: var(--rv-shadow);
	box-sizing: border-box;
	align-self: stretch;
}
.rv-back.is-day-1 { grid-area: 1 / 3 / 3 / 5; }
.rv-back.is-day-2 { grid-area: 4 / 1 / 6 / 3; }
.rv-back.is-day-3 { grid-area: 7 / 3 / 9 / 5; }
.rv-days .amx-day {
	position: relative;
	z-index: 1;
	align-self: start;
	padding: 41px 32px 0 41px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}
.rv-days .amx-day:nth-child(1) { grid-area: 1 / 3 / 2 / 4; }
.rv-days .amx-day:nth-child(2) { grid-area: 4 / 1 / 5 / 2; }
.rv-days .amx-day:nth-child(3) { grid-area: 7 / 3 / 8 / 4; }
.rv-days .amx-day:nth-child(n + 4) {
	grid-column: 1 / -1;
	margin-top: 64px;
}
.rv-back.is-day-1,
.rv-days .amx-day:nth-child(1),
.rv-back.is-day-3,
.rv-days .amx-day:nth-child(3) {
	transform: translate(-34px, 26px);
}
.rv-back.is-day-2,
.rv-days .amx-day:nth-child(2) {
	transform: translate(34px, 26px);
}
.rv-back-rows {
	grid-column: 1;
	grid-row: 2;
	padding: 11px 32px 32px;
	display: grid;
	gap: 11px;
	align-content: start;
}
.rv-back-to {
	grid-column: 2;
	grid-row: 1 / 3;
	border-left: 1.5px solid var(--wp--preset--color--border);
	padding: 32px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 260px;
}
.rv-back-to .rv-to {
	font-size: 0.8125rem;
	padding: 8px 0 4px;
}
/* The stamp ("Ven", "Sab", "Dom" come from the day's own heading) and the postmark. */
.rv-back::after {
	content: "";
	position: absolute;
	top: 7px;
	right: 7px;
	width: 86px;
	aspect-ratio: 86 / 108;
	background: url(images/stamp.jpg) center / cover, var(--rv-terracotta);
	border: 7px solid var(--rv-paper);
	outline: 4px solid var(--rv-terracotta);
	outline-offset: -11px;
	box-sizing: border-box;
	-webkit-mask: var(--rv-perf);
	mask: var(--rv-perf);
	padding: 0;
}
.rv-back::before {
	width: 180px;
	height: 98px;
	top: 33px;
	right: 45px;
	z-index: 2;
}
.rv-row {
	margin: 0;
	display: grid;
	grid-template-columns: 74px 1fr;
	gap: 12px;
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: 9px;
	font-size: 0.9375rem;
}
.rv-row span {
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--wp--preset--color--text-muted);
	padding-top: 2px;
}
/* The day's moments, from the programme. */
.rv-days .amx-day-head {
	display: block;
	padding: 0;
	border: 0;
}
.rv-days .amx-room {
	color: inherit;
	font-weight: 400;
	font-size: inherit;
}
.rv-days .amx-slot.is-now {
	box-shadow: none;
	padding-inline-start: 0;
}
.rv-days .amx-day-head h3 {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.78125rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--wp--preset--color--primary-text);
}
.rv-days .amx-day-head .amx-zone {
	display: none;
}
.rv-days .amx-slots {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 14px;
}
.rv-days .amx-slot {
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr);
	gap: 4px 12px;
	align-items: baseline;
	border: 0;
	padding: 0;
	margin: 0;
	background: none;
}
.rv-days .amx-slot-time {
	grid-column: 1;
	grid-row: 2;
	font: 700 0.9375rem / 1.5 var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--text);
	font-size: 0.9375rem;
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: 9px;
}
.rv-days .amx-slot-body {
	display: contents;
}
.rv-days .amx-slot-title {
	grid-column: 1 / -1;
	grid-row: 1;
	margin: 0;
	font-family: var(--rv-serif);
	font-weight: 400;
	font-size: clamp(1.75rem, 2.6vw, 2.25rem);
	line-height: 1.08;
}
.rv-days .amx-slot:first-child .amx-slot-title {
	font-size: clamp(2rem, 3.2vw, 2.875rem);
	line-height: 1.05;
}
.rv-days .amx-slot-title a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}
.rv-days .amx-slot-title a:hover {
	text-decoration: underline;
}
.rv-days .amx-slot-meta {
	grid-column: 2;
	grid-row: 2;
	margin: 0;
	font-size: 0.9375rem;
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: 9px;
	color: var(--wp--preset--color--text);
}
.rv-days .amx-slot-now {
	grid-column: 1 / -1;
	grid-row: 3;
	justify-self: start;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.rv-days .amx-slot.is-now .amx-slot-title a {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent);
	text-decoration-thickness: 4px;
}
/* A fourth day or more: a plain postcard row of its own, full width. */
.rv-days .amx-day:nth-child(n + 4) {
	background: var(--rv-card);
	border: 9px solid var(--rv-card);
	box-shadow: var(--rv-shadow);
	padding: 32px;
}
/* Two days or one: the static fronts and backs for the missing days step aside. */
.rv-days:not(:has(.amx-day:nth-child(3))) :is(.rv-front, .rv-back).is-day-3,
.rv-days:not(:has(.amx-day:nth-child(2))) :is(.rv-front, .rv-back).is-day-2 {
	display: none;
}
/* No moments yet: one "still being written" postcard instead of the three. */
.rv-days:has(.amx-agenda.is-empty) {
	display: block;
}
.rv-days:has(.amx-agenda.is-empty) :is(.rv-front, .rv-back) {
	display: none;
}
.rv-days .amx-agenda.is-empty {
	display: block;
}
.rv-days .amx-empty,
.rv-days .amx-agenda.is-empty {
	max-width: 61.25rem;
}
.rv-days .amx-agenda.is-empty .amx-empty {
	position: relative;
	margin: 0;
	background: var(--rv-card);
	border: 9px solid var(--rv-card);
	box-shadow: var(--rv-shadow);
	padding: 40px 180px 40px 40px;
	font-family: var(--rv-serif);
	font-size: clamp(1.375rem, 2.4vw, 1.875rem);
	line-height: 1.2;
	min-height: 160px;
	color: var(--wp--preset--color--text);
}
.rv-days .amx-agenda.is-empty .amx-empty::before {
	content: "";
	position: absolute;
	top: 24px;
	right: 32px;
	width: 84px;
	height: 100px;
	border: 2px dashed var(--wp--preset--color--border);
	box-sizing: border-box;
}

/* ---------- Latest news: notes as postcards ---------- */

.rv-news {
	padding-top: 0;
}
.rv-note-grid {
	gap: 32px !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.rv-note-cards.is-two .rv-note-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.rv-note-grid > li {
	min-width: 0;
	margin: 0 !important;
	display: flex;
}
.rv-note-card {
	position: relative;
	width: 100%;
	padding: 24px;
	display: grid;
	gap: 12px;
	align-content: start;
	min-width: 0;
}
.rv-note-card::after {
	width: 72px;
	height: 62px;
	top: 18px;
	right: 18px;
	opacity: 0.8;
	-webkit-mask-image: url(images/postmark.svg);
	mask-image: url(images/postmark.svg);
}
.rv-note-body {
	display: grid;
	gap: 12px;
	align-content: start;
	min-width: 0;
}
.rv-note-date,
.rv-post-kicker .wp-block-post-date {
	margin: 0;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--wp--preset--color--primary-text);
	padding-right: 84px;
	min-height: 40px;
}
.rv-note-card .wp-block-post-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.15;
}
.rv-note-card .wp-block-post-title a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}
.rv-note-card .wp-block-post-title a:hover {
	text-decoration: underline;
}
.rv-note-card .wp-block-post-excerpt,
.rv-note-card .wp-block-post-excerpt__excerpt {
	margin: 0;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.9375rem;
}
.rv-more {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--primary-text);
	justify-self: start;
	text-decoration: underline;
}
.rv-more::after {
	content: "\00a0→";
	text-decoration: none;
	display: inline-block;
}
.rv-note-photo {
	display: none;
}

/* ---------- Wedding party: perforated stamps ---------- */

.rv-stamps.amx-speakers.is-layout-grid .amx-people,
.rv-stamps .amx-people {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
	gap: 40px 32px;
}
.rv-stamps .amx-person {
	display: grid;
	gap: 2px;
	justify-items: start;
	align-content: start;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
}
.rv-stamps .amx-tile {
	width: 110px;
	padding: 7px;
	box-sizing: border-box;
	background: var(--rv-paper);
	-webkit-mask: var(--rv-perf);
	mask: var(--rv-perf);
	margin: 0 0 10px;
	border-radius: 0;
	aspect-ratio: auto;
	overflow: visible;
}
.rv-stamps .amx-tile img,
.rv-stamps .amx-tile .amx-monogram {
	position: static;
	inset: auto;
	border: 0;
	padding: 0;
	margin: 0;
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 4 / 5;
	height: auto;
	object-fit: cover;
	border-radius: 0;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--text);
	font-family: var(--rv-serif);
	font-size: 39px;
	line-height: 1;
}
.rv-stamps .amx-person:nth-child(3n + 2) .amx-monogram {
	background: var(--rv-terracotta);
	color: #fff8e8;
}
.rv-stamps .amx-person:nth-child(3n) .amx-monogram {
	background: var(--rv-card);
	color: var(--wp--preset--color--primary-text);
}
.rv-stamps .amx-person-name {
	margin: 0;
	font-size: 24px;
	line-height: 1.15;
}
.rv-stamps .amx-person-name a {
	color: inherit;
	text-decoration: none;
}
.rv-stamps .amx-person-name a:hover {
	text-decoration: underline;
}
.rv-stamps .amx-person .amx-muted {
	margin: 0;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--wp--preset--color--primary-text);
}
.is-style-section-primary .rv-stamps .amx-person .amx-muted {
	color: var(--rv-lemon-d);
}
.rv-party.is-page .amx-empty,
.rv-stamps .amx-empty {
	margin: 0;
	max-width: 40rem;
	font-family: var(--rv-serif);
	font-size: var(--wp--preset--font-size--large);
}

/* ---------- Getting there ---------- */

.rv-download {
	position: relative;
	display: grid;
	gap: 14px;
	padding: 24px;
	max-width: 560px;
	align-content: start;
}
.rv-download.is-wide {
	margin-left: max(0px, calc((100% - 75.5rem) / 2)) !important;
	grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
	gap: 20px;
	padding: 20px;
	margin-bottom: 64px !important;
}
.rv-download-art {
	margin: 0 !important;
}
.rv-download-art img {
	display: block;
	width: 100%;
	max-width: 220px;
	height: auto;
}
.rv-download-body {
	display: grid;
	gap: 10px;
	align-content: center;
	min-width: 0;
}
.rv-download-title {
	margin: 0;
	font-family: var(--rv-serif);
	font-size: 22px;
	line-height: 1.2;
}
.rv-download .wp-block-buttons {
	margin: 0;
}
.rv-legs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
	align-items: start;
}
.rv-leg {
	display: grid;
	gap: 16px;
	min-width: 0;
}
.rv-legs .rv-leg:first-child .rv-print img {
	object-position: 0% 50%;
}
.rv-leg-title {
	margin: 0;
	font-size: 29px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-items: baseline;
}
.rv-leg-title small {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--wp--preset--color--primary-text);
}
.rv-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 9px;
}
.rv-steps li {
	display: grid;
	grid-template-columns: 74px 1fr;
	gap: 12px;
	font-size: 0.9375rem;
	border-top: 1px solid rgba(15, 37, 80, 0.18);
	padding-top: 8px;
}
.rv-steps b {
	font-family: var(--rv-serif);
	font-weight: 400;
	font-size: 17px;
}
.rv-leg > p {
	margin: 0;
}

/* ---------- Where to stay ---------- */

.rv-stays-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 72px;
	align-items: center;
}
.rv-stays-photo {
	position: relative;
}
.rv-stamp.is-pinned {
	position: absolute;
	right: -14px;
	top: -26px;
}
.rv-stays-list h2 {
	margin-bottom: 24px !important;
}
.rv-stay {
	border-top: 1.5px solid var(--wp--preset--color--border);
	padding: 19px 0;
	display: grid;
	gap: 6px;
}
.rv-stay:last-child {
	border-bottom: 1.5px solid var(--wp--preset--color--border);
}
.rv-stay h3 {
	margin: 0;
	font-size: 29px;
}
.rv-stay p {
	margin: 0;
}
.rv-code {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 6px !important;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--text-muted);
}
.rv-code kbd {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 17px;
	letter-spacing: 0.12em;
	padding: 10px 13px;
	border: 1.5px dashed var(--wp--preset--color--text);
	background: var(--rv-card);
	border-radius: 4px;
	color: var(--wp--preset--color--text);
}

/* ---------- Local guide ---------- */

.rv-guide-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}
.rv-guide-card {
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
}
.rv-guide-card .rv-pc-message {
	padding: 32px;
	gap: 0;
}
.rv-card-title {
	margin: 6px 0 16px !important;
	font-size: 34px;
	line-height: 1.1;
}
.rv-card-title.is-big {
	font-size: clamp(2.25rem, 4.4vw, 3.5rem);
}
.rv-spots {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: spot;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.rv-spots li {
	counter-increment: spot;
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	grid-template-rows: auto auto auto;
	column-gap: 14px;
	row-gap: 2px;
	padding: 12px 0;
	border-top: 1px solid var(--wp--preset--color--border);
	font-size: 0.9375rem;
	color: var(--wp--preset--color--text-muted);
}
.rv-spots li::before {
	content: counter(spot);
	grid-row: 1 / 4;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1.5px solid var(--wp--preset--color--text);
	display: grid;
	place-items: center;
	font-family: var(--rv-serif);
	font-size: 16px;
	color: var(--wp--preset--color--text);
	box-sizing: border-box;
}
.rv-spots li > span {
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--wp--preset--color--primary-text);
}
.rv-spots li > strong {
	font-weight: 600;
	color: var(--wp--preset--color--text);
}
.rv-guide-card .rv-pc-address {
	padding: 32px;
	justify-content: flex-start;
	gap: 24px;
	min-height: 0;
}
.rv-guide-card .rv-pc-address > .rv-stamp {
	position: relative;
	top: auto;
	right: auto;
	align-self: flex-end;
}
.rv-guide-card .rv-pc-address:has(> .rv-stamp.has-postmark)::after {
	width: 150px;
	height: 82px;
	top: 26px;
	right: 40px;
}
.rv-quote {
	margin: 0;
	font-family: var(--rv-serif);
	font-size: 19px;
	line-height: 1.35;
}
.rv-guide-card .rv-to {
	margin-top: auto !important;
	font-size: 0.8125rem;
}

/* ---------- Registry ---------- */

.rv-registry-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}
.rv-registry-card {
	padding: 32px;
	display: grid;
	gap: 16px;
}
.rv-registry-card > p {
	max-width: 30rem;
}
.rv-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
}
.rv-inline .wp-block-buttons {
	margin: 0;
}

/* ---------- RSVP: the reply card ---------- */

.rv-replies-closed:not(#rv) {
	display: none;
}
.rv-rsvp-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.35fr);
	gap: 64px;
	align-items: start;
}
.rv-rsvp-photo {
	margin-top: 32px !important;
	box-shadow: var(--rv-shadow-deep);
}
.rv-reply-card {
	background: var(--rv-card);
	color: var(--wp--preset--color--text);
	border: 9px solid var(--rv-card);
	box-shadow: var(--rv-shadow-deep);
	padding: 40px;
	display: grid;
	gap: 24px;
}
.rv-reply-card :is(h2, h3, a:not(.wp-element-button)) {
	color: var(--wp--preset--color--text);
}
.is-style-section-primary .rv-reply-card .rv-muted {
	color: var(--wp--preset--color--text-muted);
}
.rv-reply-head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: flex-start;
	border-bottom: 1.5px solid var(--wp--preset--color--border);
	padding-bottom: 16px;
}
.rv-reply-title {
	margin: 0;
	font-size: clamp(2rem, 3.4vw, 2.75rem);
	line-height: 1.05;
}
.rv-reply-head p {
	margin: 6px 0 0 !important;
}
.rv-asks {
	display: grid;
	gap: 12px;
}
.rv-asks-title {
	margin: 0;
	font-weight: 600;
	font-size: 0.9375rem;
}
.rv-asks-list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ask;
	display: grid;
}
.rv-asks-list li {
	counter-increment: ask;
	position: relative;
	padding-left: 48px !important;
	border-top: 1.5px solid var(--wp--preset--color--border);
	padding: 14px 0;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--text-muted);
}
.rv-asks-list li::before {
	content: counter(ask);
	position: absolute;
	left: 0;
	top: 14px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1.5px solid var(--wp--preset--color--text);
	display: grid;
	place-items: center;
	font-family: var(--rv-serif);
	color: var(--wp--preset--color--text);
	box-sizing: border-box;
}
.rv-asks-list strong {
	display: block;
	font-family: var(--rv-serif);
	font-weight: 400;
	font-size: 21px;
	line-height: 1.2;
	color: var(--wp--preset--color--text);
	margin-bottom: 2px;
}
/* The replies (free tickets) as pills; their own button and caption give way to "Send the reply". */
.rv-tiers .amx-tiers {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	border-top: 1.5px solid var(--wp--preset--color--border);
	padding-top: 18px;
}
.rv-tiers .amx-tier {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 15px;
	border: 1.5px solid var(--wp--preset--color--text);
	border-radius: 999px;
	background: rgba(246, 214, 64, 0.35);
	margin: 0;
	box-shadow: none;
}
.rv-tiers .amx-tier.is-sold-out {
	background: transparent;
	border-color: var(--wp--preset--color--border);
	color: var(--wp--preset--color--text-muted);
}
.rv-tiers .amx-tier-name {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.9375rem;
	font-weight: 600;
}
.rv-tiers .amx-price {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--text-muted);
}
.rv-tiers > .amx-ticket-button,
.rv-tiers .amx-tier .amx-ticket-button {
	display: none;
}
.rv-tiers .amx-status,
.rv-tiers .amx-refund,
.rv-tiers .amx-note {
	margin: 0 0 8px;
	padding: 11px 14px;
	border-radius: 6px;
	background: rgba(246, 214, 64, 0.3);
	font-size: 0.9375rem;
}
.rv-tiers .amx-refund {
	background: none;
	padding: 0;
}
.rv-send {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}
.rv-send p {
	margin: 0;
}

/* ---------- FAQ ---------- */

.rv-faq-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 72px;
	align-items: start;
}
.rv-faq-list h2 {
	margin-bottom: 24px !important;
}
.wp-block-details {
	border-top: 1.5px solid var(--wp--preset--color--border);
	padding: 0;
	margin: 0 !important;
}
.wp-block-details:last-child {
	border-bottom: 1.5px solid var(--wp--preset--color--border);
}
.wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 48px;
	padding: 14px 0;
	font-family: var(--rv-serif);
	font-size: 22px;
	line-height: 1.2;
	cursor: pointer;
	list-style: none;
}
.wp-block-details summary::-webkit-details-marker {
	display: none;
}
.wp-block-details summary::after {
	content: "+";
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1.5px solid currentColor;
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--body);
	font-size: 20px;
	line-height: 1;
}
.wp-block-details[open] summary::after {
	content: "−";
}
.wp-block-details > :not(summary) {
	margin: 0 0 18px;
	max-width: 40rem;
	color: var(--wp--preset--color--text-muted);
}

/* ---------- Closing band, page heads, pages ---------- */

.rv-closing {
	padding-block: 96px;
}
.rv-closing-act {
	display: grid;
	gap: 20px;
	justify-items: start;
}
.rv-closing-act .wp-block-buttons {
	margin: 0;
}
.rv-intro {
	padding-block: 80px 88px;
	display: grid;
	gap: 14px;
}
.rv-intro > * {
	max-width: 75.5rem;
	margin-inline: auto !important;
	width: 100%;
	box-sizing: border-box;
}
.rv-page-title {
	margin: 0;
	font-size: var(--rv-h1);
	line-height: 1.02;
}
/* The head's title wraps at about sixteen characters and its line at 38rem, on the left. */
.rv-intro > .rv-page-title {
	padding-right: max(0px, calc(min(100vw - 32px, 75.5rem) - 16ch));
}
.rv-intro > .rv-lede {
	padding-right: max(0px, calc(min(100vw - 32px, 75.5rem) - 38rem));
	color: var(--rv-muted-d);
}
.rv-intro > .rv-lede p {
	margin: 0;
}
.rv-back-link {
	margin: 0;
}
.rv-back-link a,
.rv-intro .rv-kicker a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	color: var(--rv-lemon-d);
	font-weight: 600;
	font-size: 0.9375rem;
}
.rv-back-link a::before {
	content: "← ";
	white-space: pre;
}
.rv-post-kicker {
	gap: 0 !important;
}
.rv-post-kicker p,
.rv-post-kicker .wp-block-post-date {
	margin: 0;
	padding: 0;
	min-height: 0;
	color: var(--rv-lemon-d);
	font-size: 0.78125rem;
	letter-spacing: 0.16em;
	font-weight: 600;
}
.rv-post-kicker p::after {
	content: "\00a0·\00a0";
}
.rv-byline {
	gap: 0 !important;
	color: var(--rv-muted-d);
	font-size: 0.9375rem;
}
.rv-byline > * {
	margin: 0;
}
.rv-byline .wp-block-post-author {
	display: flex;
	gap: 0.3em;
	margin: 0;
}
.rv-byline .wp-block-post-author__content {
	display: flex;
	flex: 0 0 auto;
	gap: 0.3em;
}
.rv-byline .wp-block-post-author__byline,
.rv-byline .wp-block-post-author__name {
	width: auto;
	margin: 0;
	font-size: inherit;
	font-weight: 400;
}
.rv-byline .wp-block-post-author + .wp-block-post-time-to-read::before {
	content: "\00a0·\00a0";
}
.rv-page-body {
	padding-block: 72px;
}
.rv-letter-sec {
	padding-block: 88px 96px;
}
.rv-letter {
	position: relative;
	padding: 48px;
}
.rv-letter::before {
	width: 140px;
	height: 76px;
	top: 26px;
	right: 32px;
	-webkit-mask-image: url(images/postmark.svg);
	mask-image: url(images/postmark.svg);
}
.rv-legal .rv-letter::before {
	display: none;
}
.rv-prose {
	display: grid;
	gap: 20px;
	max-width: 40rem;
}
.rv-prose > * {
	margin: 0 !important;
}
.rv-prose h2 {
	margin-top: 12px !important;
	font-size: 32px;
	line-height: 1.1;
}
.rv-prose .is-lead {
	font-family: var(--rv-serif);
	font-size: 24px;
	line-height: 1.3;
}
.rv-prose .is-sign {
	font-family: var(--rv-serif);
	font-size: 21px;
}
.rv-prose .rv-fromto {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--text-muted);
	border-bottom: 1.5px solid var(--wp--preset--color--border);
	padding-bottom: 18px;
	padding-right: 150px;
	margin-bottom: 8px !important;
}
.rv-prose .rv-fromto b {
	color: var(--wp--preset--color--text);
	font-weight: 600;
}
/* A note that opens without the From/To lines: its first block keeps clear of the postmark. */
.rv-letter .rv-prose > :first-child:not(.rv-fromto) {
	padding-right: 150px;
	min-height: 64px;
}
.rv-prose .wp-block-table {
	overflow-x: auto;
	border: 1.5px solid var(--wp--preset--color--border);
	border-radius: 6px;
	display: flex;
	flex-direction: column-reverse;
}
.rv-prose .wp-block-table table {
	width: 100%;
	min-width: 460px;
	border-collapse: collapse;
	font-size: 0.9375rem;
}
.rv-prose .wp-block-table :is(th, td) {
	padding: 12px 14px;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--border);
	text-align: left;
	vertical-align: top;
}
.rv-prose .wp-block-table thead th {
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
	border-bottom: 0;
}
.rv-prose .wp-block-table tbody th {
	font-family: var(--rv-serif);
	font-weight: 400;
	font-size: 19px;
	white-space: nowrap;
}
.rv-prose .wp-block-table td:last-child {
	color: var(--wp--preset--color--text-muted);
}
.rv-prose .wp-block-table figcaption {
	margin: 0;
	text-align: left;
	padding: 12px 14px;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--wp--preset--color--primary-text);
}
.rv-prose .wp-block-image {
	background: var(--rv-card);
	padding: 9px;
	box-shadow: var(--rv-shadow);
}
.rv-more-notes {
	padding-top: 0;
}

/* The news page: the newest note large across the top of the first page. */
.rv-news-list .rv-note-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
body:not(.paged) .rv-news-list .rv-note-grid > li:first-child {
	grid-column: 1 / -1;
	margin-bottom: 16px !important;
}
body:not(.paged) .rv-news-list li:first-child .rv-note-card {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	padding: 0;
	gap: 0;
}
body:not(.paged) .rv-news-list li:first-child .rv-note-card::after {
	top: 36px;
	right: 36px;
}
body:not(.paged) .rv-news-list li:first-child .rv-note-photo {
	display: block;
	position: relative;
	margin: 0;
	min-height: 340px;
}
body:not(.paged) .rv-news-list li:first-child .rv-note-photo :is(a, img) {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
body:not(.paged) .rv-news-list li:first-child .rv-note-body {
	border-left: 1.5px solid var(--wp--preset--color--border);
	padding: 36px;
	gap: 14px;
}
body:not(.paged) .rv-news-list li:first-child .rv-note-photo + .rv-note-body {
	grid-column: 2;
}
body:not(.paged) .rv-news-list li:first-child .rv-note-card:not(:has(.rv-note-photo)) .rv-note-body {
	grid-column: 1 / -1;
	border-left: 0;
}
body:not(.paged) .rv-news-list li:first-child .rv-more {
	text-decoration: none;
	padding: 0 22px;
	border-radius: 999px;
	border: 2px solid var(--wp--preset--color--text);
	color: var(--wp--preset--color--text);
}
body:not(.paged) .rv-news-list li:first-child .rv-more::after {
	content: none;
}
body:not(.paged) .rv-news-list li:first-child .rv-note-date::before {
	content: "Newest · ";
}
body:not(.paged) .rv-news-list li:first-child .wp-block-post-title {
	font-size: clamp(2rem, 3.4vw, 2.75rem);
	line-height: 1.08;
}
.rv-news-list .wp-block-post-title,
.rv-news-page .wp-block-post-title {
	font-size: var(--wp--preset--font-size--large);
}
.rv-pagination {
	margin-top: 48px !important;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
	justify-content: space-between;
	border-top: 1.5px solid var(--wp--preset--color--border);
	padding-top: 24px;
}
.rv-pagination a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	border: 2px solid var(--wp--preset--color--text);
	color: var(--wp--preset--color--text);
	font-weight: 600;
	text-decoration: none;
}
.rv-pagination .wp-block-query-pagination-next {
	margin-left: auto;
}
.rv-empty-card {
	max-width: 61.25rem;
}
.rv-empty-card .rv-pc-address {
	min-height: 260px;
}
.rv-empty-card .rv-stamp-box {
	position: absolute;
	top: 19px;
	right: 19px;
}
.rv-empty-card .wp-block-buttons,
.rv-lost-card .wp-block-buttons,
.rv-search-empty .wp-block-buttons {
	margin: 0;
}
.rv-empty-line {
	margin: 0;
	font-size: 1.0625rem;
	color: var(--wp--preset--color--text-muted);
	max-width: 40rem;
}
.rv-search-empty {
	padding: 32px;
	display: grid;
	gap: 16px;
	max-width: 46rem;
	margin-top: 32px !important;
}
.rv-search {
	max-width: 36rem;
	margin: 0 0 40px !important;
}
.rv-search .wp-block-search__inside-wrapper {
	gap: 10px;
	border: 0;
	padding: 0;
}
.rv-search .wp-block-search__input {
	min-height: 48px;
	padding: 0 13px;
	border: 1.5px solid rgba(15, 37, 80, 0.45);
	border-radius: 6px;
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--text);
	font: inherit;
}
.rv-search .wp-block-search__button {
	margin: 0;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	border: 2px solid var(--wp--preset--color--text);
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--background);
	font-weight: 600;
}
.rv-lost-card .rv-search {
	margin: 8px 0 0 !important;
}
/* The search page's form lines up with the cards' left edge, not the section's padding. */
.rv-news-page > .rv-search {
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
}
/* Search result cards carry no date line, so the title keeps clear of the postmark itself. */
.rv-news-page.is-search .rv-note-card .wp-block-post-title {
	padding-right: 84px;
	min-height: 56px;
}
.rv-lost-card {
	max-width: 61.25rem;
	margin-inline: auto;
}
.rv-lost-card .rv-pc-address {
	justify-content: flex-end;
}
.rv-returned {
	position: absolute;
	top: 32px;
	right: 24px;
	width: 160px;
	height: 137px;
	margin: 0 !important;
	transform: rotate(-12deg);
	color: transparent;
	font-size: 0;
	background: var(--wp--preset--color--danger);
	-webkit-mask: url(images/returned.svg) no-repeat center / contain;
	mask: url(images/returned.svg) no-repeat center / contain;
}
.rv-suppliers .amx-sponsors {
	margin-bottom: 32px;
}
.rv-suppliers .amx-tier-row {
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	padding: 0 0 32px;
	border: 0;
}
.rv-suppliers .amx-tier-label {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.78125rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--wp--preset--color--text-muted);
}
.rv-suppliers .amx-sponsor-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	align-items: stretch;
	gap: 32px;
}
.rv-suppliers .amx-sponsor {
	background: var(--rv-card);
	border: 9px solid var(--rv-card);
	box-shadow: var(--rv-shadow);
	padding: 24px;
	margin: 0;
	display: grid;
	gap: 8px;
	align-content: start;
}
.rv-suppliers .amx-tier-row .amx-sponsor > *,
.rv-suppliers .amx-tier-row .amx-sponsor > a {
	display: block;
	height: auto;
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
}
.rv-suppliers .amx-sponsor > a {
	display: grid !important;
	gap: 8px;
	color: inherit;
	text-decoration: none;
}
.rv-suppliers .amx-sponsor-name {
	font-family: var(--rv-serif);
	font-weight: 400;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.15;
}
.rv-suppliers .amx-sponsor .amx-muted {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--text-muted);
}
.rv-suppliers .amx-sponsor img {
	max-height: 3rem;
	width: auto;
}
.rv-suppliers .amx-empty {
	margin: 0;
	font-family: var(--rv-serif);
	font-size: var(--wp--preset--font-size--large);
	max-width: 40rem;
}

/* The programme's and the wedding party's own pages (the plugin's session and person blocks). */
.rv-entry-page .amx-page-title {
	font-size: var(--rv-h1);
	line-height: 1.02;
	margin: 0 0 16px;
}
.rv-entry-page .amx-crumb a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	font-weight: 600;
	color: var(--wp--preset--color--primary-text);
}
.rv-entry-page .amx-tile {
	background: var(--rv-paper);
	padding: 9px;
	-webkit-mask: var(--rv-perf);
	mask: var(--rv-perf);
	border-radius: 0;
}
.rv-entry-page .amx-monogram {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--text);
	font-family: var(--rv-serif);
	border-radius: 0;
}
.rv-entry-page .amx-person-page .amx-tile {
	position: relative;
	aspect-ratio: 4 / 5;
	width: 100%;
	max-width: 22rem;
	display: grid;
}
.rv-entry-page .amx-person-page .amx-tile .amx-monogram {
	position: static;
	inset: auto;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-size: clamp(4rem, 12vw, 7rem);
	line-height: 1;
}
.rv-entry-page .amx-also h2 {
	font-size: var(--wp--preset--font-size--x-large);
}
@media (max-width: 600px) {
	.rv-entry-page .amx-person-page .amx-tile {
		max-width: 12rem;
	}
}
.rv-entry-page .amx-also .amx-monogram {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
}

/* Any other empty state of the platform's blocks: a dashed postcard. */
.amx-empty {
	margin: 0;
	padding: 32px;
	border: 2px dashed var(--wp--preset--color--border);
	background: var(--rv-card);
	color: var(--wp--preset--color--text-muted);
	text-align: left;
	font-size: 1.0625rem;
}
.is-style-section-primary .amx-empty {
	color: var(--wp--preset--color--text);
}

/* ---------- Now and next (the weekend home) ---------- */

.rv-nownext .amx-now-next {
	display: grid;
	gap: 0;
}
.rv-nownext .amx-nn {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 2px 12px;
	border-top: 1.5px solid var(--wp--preset--color--border);
	padding: 12px 0;
	background: none;
	margin: 0;
}
.rv-nownext .amx-nn > * {
	margin: 0;
	grid-column: 2;
}
.rv-nownext .amx-nn .amx-kicker {
	grid-column: 1;
	grid-row: 1 / 3;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--wp--preset--color--text-muted);
}
.rv-nownext .amx-nn:first-child .amx-kicker {
	color: var(--wp--preset--color--danger);
}
.rv-nownext .amx-nn-title {
	font-family: var(--rv-serif);
	font-size: 19px;
	line-height: 1.2;
}
.rv-nownext .amx-nn-title a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}
.rv-nownext .amx-nn .amx-muted {
	font-size: 0.875rem;
	color: var(--wp--preset--color--text-muted);
}

/* ---------- The ticket button and the embed ---------- */

.amx-ticket-button {
	margin: 0;
}
.amx-ticket-button.is-cancelled {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.amx-button {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	border: 2px solid var(--wp--preset--color--text);
	color: var(--wp--preset--color--text);
	background: transparent;
	font-weight: 600;
	text-decoration: none;
}
automatrix-tickets::part(button) {
	min-height: 48px;
	padding: 0 24px;
	border-radius: 999px;
	border: 2px solid var(--wp--preset--color--text);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
}
automatrix-tickets::part(button):hover {
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--background);
}
automatrix-tickets::part(button):focus-visible {
	outline: 3px solid var(--wp--preset--color--primary-text);
	outline-offset: 3px;
}
/* Full, closed or over: the button goes unlit, a blank stamp, and stays unlit on hover. */
automatrix-tickets::part(button):disabled,
automatrix-tickets::part(button):disabled:hover {
	border-color: var(--wp--preset--color--border);
	background: transparent;
	color: var(--wp--preset--color--text-muted);
	cursor: not-allowed;
}
automatrix-tickets::part(caption) {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.9375rem;
	color: var(--wp--preset--color--text-muted);
}

/* ---------- Footer ---------- */

.rv-footer {
	background: var(--rv-deep) !important;
	color: var(--wp--preset--color--background) !important;
	padding-block: 110px 40px;
}
.rv-footer a {
	color: var(--wp--preset--color--background);
}
.rv-footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 32px 64px;
	align-items: end;
}
.rv-footer-title {
	margin: 0;
	font-family: var(--rv-serif);
	font-size: var(--rv-h2);
	line-height: 0.95;
}
.rv-footer-title a {
	text-decoration: none;
	color: inherit;
}
.rv-footer .rv-amp {
	color: var(--wp--preset--color--accent);
}
.rv-footer-date {
	margin: 0;
	font-family: var(--rv-serif);
	font-size: var(--rv-h2);
	line-height: 0.95;
}
.rv-footer-date :is(.amx-time, .amx-zone, .amx-was) {
	display: none;
}
.rv-footer-lines {
	display: grid;
	gap: 6px;
	font-size: 0.9375rem;
}
.rv-footer-lines p {
	margin: 0;
}
.rv-footer-nav {
	margin-top: 40px !important;
}
.rv-footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	font-size: 0.9375rem;
}
.rv-footer-links a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
}
.rv-footer > .alignwide {
	max-width: 75.5rem;
}
.rv-credits {
	margin-top: 48px !important;
	padding-top: 20px;
	border-top: 1px solid rgba(251, 251, 248, 0.3);
	font-size: 0.8125rem;
	line-height: 1.7;
	opacity: 0.85;
}

/* ---------- The guest gate (the page password) ---------- */

.rv-gate {
	position: relative;
	padding: 96px 16px;
	display: grid;
	place-items: center;
	background: url(images/hero2.jpg) center / cover;
	min-height: 70vh;
	box-sizing: border-box;
	isolation: isolate;
}
.rv-gate::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	backdrop-filter: blur(6px);
	background: rgba(15, 37, 80, 0.35);
}
.rv-gate-card {
	position: relative;
	width: min(100%, 560px);
	background: var(--rv-card);
	border: 9px solid var(--rv-card);
	box-shadow: var(--rv-shadow-deep);
	padding: 40px;
	box-sizing: border-box;
	color: var(--wp--preset--color--text);
	display: grid;
	gap: 16px;
}
.rv-gate-card > * {
	margin: 0 !important;
}
.rv-gate-stamp {
	position: absolute !important;
	top: 19px;
	right: 19px;
}
.rv-gate-stamp img {
	height: auto;
}
.rv-gate-stamp span {
	position: absolute;
}
.rv-gate-title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1.05;
	padding-right: 100px;
}
.rv-gate-text {
	color: var(--wp--preset--color--text-muted);
	padding-right: 60px;
}
.rv-gate form,
.rv-gate .post-password-form {
	display: grid;
	gap: 12px;
}
.rv-gate form p {
	margin: 0;
}
.rv-gate form p:empty {
	display: none;
}
.rv-gate form p:has(input[type="password"]) {
	display: grid;
	gap: 10px;
}
.rv-gate label {
	display: grid;
	gap: 6px;
	font-weight: 600;
	font-size: 0.9375rem;
}
.rv-gate input[type="password"] {
	min-height: 48px;
	padding: 0 13px;
	border: 1.5px solid rgba(15, 37, 80, 0.45);
	border-radius: 6px;
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--text);
	font: inherit;
	font-size: 16px;
	width: 100%;
	box-sizing: border-box;
}
.rv-gate input[type="submit"] {
	justify-self: start;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	border: 2px solid var(--wp--preset--color--text);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.rv-gate .password-form-error input[type="password"] {
	border-color: var(--wp--preset--color--danger);
	box-shadow: 0 0 0 1px var(--wp--preset--color--danger);
}
.rv-gate .post-password-form-invalid-password,
.rv-gate [role="alert"] {
	margin: 0;
	padding: 11px 14px;
	border-radius: 6px;
	background: #fbe9e5;
	color: var(--wp--preset--color--danger);
	font-size: 0.9375rem;
	font-weight: 600;
}
.rv-gate-help {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--text-muted);
	border-top: 1.5px solid var(--wp--preset--color--border);
	padding-top: 14px;
}
.rv-gate-help a {
	color: var(--wp--preset--color--primary-text);
	font-weight: 600;
}
/* A sealed page: the navy head and the reply band wait outside with the rest. */
.rv-main:has(.rv-gate) > :not(.wp-block-post-content):not(:has(.rv-gate)) {
	display: none;
}

/* ---------- Event states ---------- */

/* Replies closed, the weekend over or called off: the reply-by lines, the reply buttons and the
   reply band go; the reply card keeps the platform's status line. */
body:has(.amx-announcement:is(.is-cancelled, .is-ended, .is-closed)) :is(.rv-reply-by, .rv-hide-closed, .rv-send, .rv-asks, .rv-head-cta) {
	display: none;
}
body:has(.amx-announcement:is(.is-cancelled, .is-ended, .is-closed)) .rv-replies-closed:not(#rv) {
	display: block;
}
body:has(.amx-announcement:is(.is-cancelled, .is-ended, .is-closed)) .rv-intro.rv-replies-closed:not(#rv) {
	display: grid;
}
body:has(.amx-announcement:is(.is-cancelled, .is-ended, .is-closed)) .rv-intro.rv-reply-by {
	display: none;
}
body:has(.amx-announcement:is(.is-cancelled, .is-ended, .is-closed)) .rv-closing {
	display: none;
}
/* "The list is with the caterer, see you on the coast" only while the weekend is still on;
   cancelled or over, a plain line to Chiara instead. */
body:has(.amx-announcement.is-closed) .rv-if-over:not(#rv),
body:has(.amx-announcement:is(.is-cancelled, .is-ended)) .rv-if-closed:not(#rv) {
	display: none;
}
/* Postponed: the couple's reply-by date belonged to the old weekend, so the dated lines step
   aside and the undated heading ("Write back to us.") takes their place. */
.rv-undated:not(#rv) {
	display: none;
}
body:has(.amx-announcement.is-postponed) .rv-dated:not(#rv) {
	display: none;
}
body:has(.amx-announcement.is-postponed) .rv-undated:not(#rv) {
	display: block;
}
/* Phase homes without a reply card: the header's RSVP pill and the footer's RSVP link step aside;
   after the weekend the travel links go too. */
body:has(.rv-hero:is(.is-save, .is-closed, .is-live, .is-after)) :is(.rv-head-cta, .rv-nav-rsvp) {
	display: none;
}
body:has(.rv-hero.is-after) :is(.rv-nav-route, .rv-nav-stays, .rv-nav-guide, .rv-nav-registry) {
	display: none;
}
body:has(.rv-hero.is-live) :is(.rv-nav-registry) {
	display: none;
}
body:has(.rv-hero:is(.is-closed, .is-live, .is-after)) .rv-closing {
	display: none;
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1100px) {
	.rv-days {
		grid-template-columns: minmax(0, 0.6fr) minmax(0, 0.44fr) minmax(0, 0.6fr) minmax(0, 0.44fr);
	}
	.rv-back.is-day-1,
	.rv-days .amx-day:nth-child(1),
	.rv-back.is-day-3,
	.rv-days .amx-day:nth-child(3) {
		transform: translate(-20px, 20px);
	}
	.rv-back.is-day-2,
	.rv-days .amx-day:nth-child(2) {
		transform: translate(20px, 20px);
	}
}

@media (max-width: 860px) {
	.rv-section {
		padding-block: 72px;
	}
	.rv-weekend {
		padding-top: 72px;
	}
	.rv-head-row,
	.rv-postcard,
	.rv-guide-grid,
	.rv-guide-card,
	.rv-registry-grid,
	.rv-rsvp-grid,
	.rv-faq-grid,
	.rv-stays-grid,
	.rv-legs,
	.rv-footer-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.rv-stays-grid,
	.rv-faq-grid {
		gap: 48px;
	}
	.rv-pc-address {
		border-left: 0;
		border-top: 1.5px solid var(--wp--preset--color--border);
		min-height: 230px;
	}
	.rv-hero-photo {
		min-height: 560px !important;
	}
	.rv-hero-photo .wp-block-cover__inner-container {
		padding-top: 124px;
	}
	.rv-lift {
		margin-top: -110px !important;
	}
	.rv-names-wrap {
		align-items: flex-start;
		text-align: left;
		width: fit-content;
		max-width: 100%;
		margin: 0 !important;
		padding: 10px 14px 12px;
		box-sizing: border-box;
		background: rgba(251, 251, 248, 0.92);
	}
	.rv-names {
		align-items: flex-start;
	}
	.rv-place {
		display: none;
	}
	.rv-place-sm {
		display: block;
		color: var(--wp--preset--color--text);
	}
	.rv-pc-message {
		padding-top: 40px;
	}
	.rv-nav {
		order: 3;
		flex: 1 1 100% !important;
		justify-content: flex-start;
		margin-left: 0;
	}
	/* The weekend: each postcard's front, then its back, one under the other. */
	.rv-days {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
		grid-template-rows: none;
		grid-auto-rows: auto;
		row-gap: 0;
	}
	.rv-front {
		min-height: 400px !important;
	}
	.rv-front.is-day-1 { grid-area: 1 / 1 / 2 / 3; }
	.rv-back.is-day-1 { grid-area: 2 / 1 / 4 / 3; }
	.rv-days .amx-day:nth-child(1) { grid-area: 2 / 1 / 3 / 2; }
	.rv-front.is-day-2 { grid-area: 5 / 1 / 6 / 3; margin-top: 56px !important; }
	.rv-back.is-day-2 { grid-area: 6 / 1 / 8 / 3; }
	.rv-days .amx-day:nth-child(2) { grid-area: 6 / 1 / 7 / 2; }
	.rv-front.is-day-3 { grid-area: 9 / 1 / 10 / 3; margin-top: 56px !important; }
	.rv-back.is-day-3 { grid-area: 10 / 1 / 12 / 3; }
	.rv-days .amx-day:nth-child(3) { grid-area: 10 / 1 / 11 / 2; }
	.rv-back,
	.rv-days .amx-day:nth-child(-n + 3) {
		transform: none !important;
	}
	.rv-back-rows {
		grid-column: 1 / 3;
		grid-row: 2;
	}
	.rv-back-to {
		grid-column: 1 / 3;
		grid-row: 3;
		border-left: 0;
		border-top: 1.5px solid var(--wp--preset--color--border);
		min-height: 0;
		padding-top: 16px;
	}
	.rv-back {
		grid-template-rows: auto auto auto;
		grid-template-rows: subgrid;
	}
	.rv-back.is-day-1 { grid-area: 2 / 1 / 5 / 3; }
	.rv-back.is-day-2 { grid-area: 6 / 1 / 9 / 3; }
	.rv-back.is-day-3 { grid-area: 10 / 1 / 13 / 3; }
	.rv-front.is-day-2 { grid-area: 5 / 1 / 6 / 3; }
	.rv-front.is-day-3 { grid-area: 9 / 1 / 10 / 3; }
	.rv-days .amx-day:nth-child(1) { grid-area: 2 / 1 / 3 / 3; }
	.rv-days .amx-day:nth-child(2) { grid-area: 6 / 1 / 7 / 3; }
	.rv-days .amx-day:nth-child(3) { grid-area: 10 / 1 / 11 / 3; }
	.rv-back-rows { grid-row: 2; }
	.rv-back-to { grid-row: 3; }
	.rv-days .amx-day {
		padding: 32px 25px 0;
	}
	/* The stamp and the postmark move down to the address side, above the "To:" lines. */
	.rv-back::after {
		top: auto;
		bottom: 128px;
		right: 22px;
	}
	.rv-back::before {
		top: auto;
		bottom: 150px;
		right: 78px;
	}
	.rv-back-to {
		padding-top: 150px !important;
	}
	.rv-back-rows {
		padding: 14px 16px 16px;
	}
	.rv-back-to {
		padding: 16px;
	}
	.rv-back::before {
		width: 140px;
		height: 76px;
	}
	.rv-rsvp-photo {
		display: none;
	}
	.rv-news-list .rv-note-grid,
	.rv-note-grid,
	.rv-note-cards.is-two .rv-note-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}
	body:not(.paged) .rv-news-list li:first-child .rv-note-card {
		grid-template-columns: minmax(0, 1fr);
	}
	body:not(.paged) .rv-news-list li:first-child .rv-note-photo {
		min-height: 220px;
	}
	body:not(.paged) .rv-news-list li:first-child .rv-note-photo + .rv-note-body {
		grid-column: 1;
		border-left: 0;
		border-top: 1.5px solid var(--wp--preset--color--border);
	}
	body:not(.paged) .rv-news-list li:first-child .rv-note-card::after {
		top: auto;
		bottom: auto;
		top: 244px;
	}
	.rv-letter {
		padding: 20px 16px;
	}
	.rv-letter::before {
		width: 100px;
		height: 54px;
		top: 16px;
		right: 12px;
	}
	.rv-prose .rv-fromto,
	.rv-letter .rv-prose > :first-child:not(.rv-fromto) {
		padding-right: 96px;
	}
	.rv-reply-card {
		padding: 24px 20px;
	}
}

@media (max-width: 600px) {
	.rv-hero-photo {
		min-height: 390px !important;
	}
	.rv-hero-photo .wp-block-cover__inner-container {
		padding-top: 168px;
	}
	.rv-names {
		font-size: 62px;
	}
	.rv-lift {
		margin-top: -64px !important;
	}
	.rv-pc-message {
		padding: 24px 20px;
		gap: 12px;
	}
	.rv-pc-lead {
		font-size: 20px;
	}
	.rv-pc-date {
		font-size: 30px;
	}
	.rv-pc-address {
		padding: 24px 20px;
		min-height: 300px;
	}
	.rv-pc-address:has(> .rv-stamp.has-postmark)::after {
		width: 150px;
		height: 82px;
		top: 26px;
		right: 36px;
	}
	/* On a phone the floating header gets a scrim so its pills read on any photograph. */
	body:has(.rv-hero) .rv-header {
		background: linear-gradient(180deg, rgba(251, 251, 248, 0.92), rgba(251, 251, 248, 0.6) 80%, rgba(251, 251, 248, 0));
		padding-bottom: 24px;
	}
	.rv-nav .wp-block-navigation-item__content {
		padding: 0 11px;
		font-size: 0.875rem;
	}
	.rv-download.is-wide {
		grid-template-columns: minmax(0, 1fr);
	}
	.rv-download-art img {
		max-width: 150px;
	}

	.rv-days .amx-agenda.is-empty .amx-empty {
		padding: 132px 20px 24px;
	}
	.rv-days .amx-agenda.is-empty .amx-empty::before {
		right: auto;
		left: 20px;
	}
	.rv-guide-card .rv-pc-message,
	.rv-guide-card .rv-pc-address,
	.rv-registry-card {
		padding: 24px 20px;
	}
	.rv-card-title {
		font-size: 28px;
	}
	.rv-stay h3,
	.rv-leg-title {
		font-size: 25px;
	}
	.rv-reply-head {
		flex-direction: column-reverse;
	}
	.rv-stamp-box {
		width: 64px;
		height: 76px;
		font-size: 8px;
	}
	.rv-reply-head .rv-stamp-box {
		align-self: flex-end;
	}
	.rv-gate-card {
		padding: 24px 20px;
	}
	.rv-gate-title {
		padding-right: 72px;
	}
	.rv-gate-stamp {
		width: 64px;
		padding: 5px;
	}
	.rv-gate-stamp span {
		display: none;
	}
	.rv-gate-text {
		padding-right: 0;
	}
	.rv-returned {
		width: 120px;
		height: 103px;
		top: 16px;
		right: 12px;
	}
	.rv-empty-card .rv-stamp-box {
		top: 16px;
		right: 16px;
	}
	.rv-footer {
		padding-top: 72px;
	}
	.rv-spots li {
		grid-template-columns: 32px minmax(0, 1fr);
	}
	.rv-spots li::before {
		width: 32px;
		height: 32px;
	}
	.rv-stamp.is-pinned {
		right: -4px;
		top: -20px;
		width: 72px;
	}
}
