/* ==========================================================================
   RIMM Festival — content styles (front-end + block editor)
   ========================================================================== */

:root {
	--c-orange: #E8621A;
	--c-orange-deep: #C24D0C;
	--c-night: #231B3D;
	--c-night-deep: #150F27;
	--c-lilac: #C7B6FF;
	--c-paper: #F6F4F1;
	--c-sun: #F4B63F;
	--c-ink: #18131F;
	--c-muted: #5E5868;
	--c-line: rgba(24, 19, 31, .13);
	--c-overlay: 21, 15, 39;
	--f-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
	--f-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--section-y: clamp(4rem, 9vw, 7.5rem);
	--radius-lg: 28px;
	--radius-md: 18px;
	--wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22C50 22 50 6 100 6s50 16 100 16 50-16 100-16 50 16 100 16 50-16 100-16 50 16 100 16v18H0z'/%3E%3C/svg%3E");
	--bars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12'%3E%3Crect x='0' y='4' width='4' height='8' rx='2'/%3E%3Crect x='6.5' y='0' width='4' height='12' rx='2'/%3E%3Crect x='13' y='3' width='4' height='9' rx='2'/%3E%3Crect x='19.5' y='6' width='4' height='6' rx='2'/%3E%3Crect x='26' y='2' width='4' height='10' rx='2'/%3E%3C/svg%3E");
	--mark: var(--bars);
	--squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 10'%3E%3Cpath d='M1 6c3.5 0 3.5-4 7-4s3.5 4 7 4 3.5-4 7-4 3.5 4 7 4' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

body {
	font-family: var(--f-body);
	color: var(--c-ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-display);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-wrap: balance;
	margin-block: 0 .5em;
}
h1 { font-size: clamp(2.5rem, 6.5vw, 5.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
p { text-wrap: pretty; }
.entry-content p, .entry-content li { max-width: 68ch; }
/* Text stays left-aligned inside wide sections; centred text stays centred. */
.entry-content .is-layout-constrained > p:not(.has-text-align-center),
.entry-content .is-layout-constrained > h1:not(.has-text-align-center),
.entry-content .is-layout-constrained > h2:not(.has-text-align-center),
.entry-content .is-layout-constrained > h3:not(.has-text-align-center),
.entry-content .is-layout-constrained > .wp-block-list,
.entry-content .is-layout-constrained > .wp-block-buttons {
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size, 1240px)) / 2)) !important;
}
.entry-content .is-layout-constrained > h1, .entry-content .is-layout-constrained > h2 { max-width: 22ch; }
.entry-content .is-layout-constrained > h2.has-text-align-center { max-width: 26ch; }
.rimm-hero h1 { max-width: 15ch !important; }

a { color: var(--c-orange-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-sun); outline-offset: 3px; border-radius: 4px; }

img { max-width: 100%; height: auto; }
.wp-block-image { margin-block: 0; }
.wp-block-image img { border-radius: var(--radius-md); display: block; }

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

.entry-content > .alignfull,
.wp-block-group.rimm-section {
	padding-inline: var(--gutter);
}
.wp-block-group.rimm-section { padding-block: var(--section-y); }
.wp-block-group.rimm-section.is-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.entry-content > * + * { margin-block-start: 0; }
.entry-content > .wp-block-group.alignfull { margin-block: 0; }

/* Dark sections: text and links */
.has-night-background-color,
.has-night-deep-background-color,
.has-ink-background-color { color: var(--c-paper); }
.has-night-background-color a:not(.wp-block-button__link),
.has-night-deep-background-color a:not(.wp-block-button__link) { color: var(--c-lilac); }
.has-orange-background-color a:not(.wp-block-button__link) { color: #fff; }

/* Wave edge on top of a section — takes the section's own background colour */
.rimm-wave { position: relative; }
.rimm-hero + .rimm-wave::before, .rimm-ribbon + .rimm-wave::before { display: none; }
.theme-kerkennah .rimm-wave::before {
	content: "";
	position: absolute;
	left: 0; right: 0;
	top: -39px;
	height: 40px;
	background: inherit;
	-webkit-mask: var(--wave) repeat-x bottom / 600px 40px;
	mask: var(--wave) repeat-x bottom / 600px 40px;
	pointer-events: none;
}

/* Kicker: short line above a heading, with a small wave mark */
p.rimm-kicker {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin: 0 0 1rem;
	font-weight: 600;
	font-size: 1rem;
	color: var(--c-orange-deep);
}
p.rimm-kicker::before {
	content: "";
	width: 30px; height: 10px; flex: none;
	background: currentColor;
	-webkit-mask: var(--mark) no-repeat center / contain;
	mask: var(--mark) no-repeat center / contain;
}
.has-night-background-color p.rimm-kicker,
.has-night-deep-background-color p.rimm-kicker,
.rimm-hero p.rimm-kicker { color: var(--c-sun); }
p.rimm-kicker.has-text-align-center { justify-content: center; }

p.rimm-lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; }
.rimm-muted { color: var(--c-muted); }
.has-night-background-color .rimm-muted, .has-night-deep-background-color .rimm-muted { color: rgba(242, 246, 245, .72); }

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

.wp-block-buttons { gap: .75rem; margin-top: 1.75rem; }
.wp-block-button__link,
.wp-element-button {
	font-family: var(--f-display);
	font-weight: 600;
	font-size: .95rem;
	letter-spacing: 0;
	border-radius: 999px;
	padding: 1em 1.6em;
	background: var(--c-orange);
	color: #fff;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background-color .2s ease, color .2s ease;
}
.wp-block-button__link:hover { background: var(--c-orange-deep); color: #fff; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: inherit;
	border-color: currentColor;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255,255,255,.12); }
.has-salt-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.has-white-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(16,36,41,.06); }
.wp-block-button.is-sun > .wp-block-button__link { background: var(--c-sun); color: var(--c-ink); }

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

.wp-block-group.rimm-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: min(92vh, 920px);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: clamp(8rem, 18vh, 11rem) var(--gutter) clamp(4.5rem, 10vh, 7rem);
	color: #fff;
	background: var(--c-night-deep);
}
.wp-block-group.rimm-hero.is-short { min-height: min(68vh, 640px); }
.rimm-hero > .rimm-hero__bg {
	position: absolute !important;
	inset: 0;
	z-index: -2;
	margin: 0 !important;
	max-width: none !important;
	width: 100%;
	height: 100%;
}
.rimm-hero > .rimm-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}
.wp-block-group.rimm-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(var(--c-overlay),.7) 0%, rgba(var(--c-overlay),.15) 38%, rgba(var(--c-overlay),.55) 70%, rgba(var(--c-overlay),.95) 100%);
}
.theme-kerkennah .wp-block-group.rimm-hero::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 40px;
	background: var(--hero-wave, var(--c-paper));
	-webkit-mask: var(--wave) repeat-x bottom / 600px 40px;
	mask: var(--wave) repeat-x bottom / 600px 40px;
}
.rimm-hero:has(+ .rimm-ribbon)::after { display: none; }
.rimm-hero.wave-night { --hero-wave: var(--c-night); }
.rimm-hero.wave-night-deep { --hero-wave: var(--c-night-deep); }
.rimm-hero.wave-white { --hero-wave: #fff; }
.rimm-hero > :not(.rimm-hero__bg) { position: relative; width: 100%; }
.rimm-hero h1 { color: #fff; max-width: 15ch; margin-bottom: .35em; }
.rimm-hero p { color: rgba(255,255,255,.88); }
.rimm-hero .rimm-lead { max-width: 52ch; }
.rimm-hero .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; }

/* Facts under the hero title (dates, place) */
.rimm-facts {
	display: flex !important;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 1.25rem 0 0 !important;
	padding: 0;
	list-style: none;
}
.rimm-facts li {
	margin: 0;
	padding: .45rem .95rem;
	border-radius: 999px;
	background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.25);
	color: #fff;
	font-weight: 600;
	font-size: .95rem;
	backdrop-filter: blur(6px);
}

/* ---------- Ribbon (tilted wristband marquee) --------------------------- */

.wp-block-group.rimm-ribbon {
	position: relative;
	z-index: 3;
	margin: -2.6rem -2vw 0 !important;
	width: 104vw;
	max-width: none !important;
	transform: rotate(-2deg);
	background: var(--c-orange);
	color: #fff;
	overflow: hidden;
	padding: 1rem 0;
	box-shadow: 0 12px 30px -12px rgba(var(--c-overlay),.45);
}
.rimm-ribbon p {
	margin: 0;
	max-width: none !important;
	white-space: nowrap;
	font-family: var(--f-display);
	font-weight: 700;
	font-size: clamp(1.05rem, 2vw, 1.5rem);
	letter-spacing: -0.01em;
	padding-inline-end: 2.5rem;
}
.rimm-marquee-track { display: flex; width: max-content; animation: rimm-marquee 38s linear infinite; }
.rimm-marquee-track > * { flex: none; }
@keyframes rimm-marquee { to { transform: translateX(-50%); } }

/* ---------- Grids of cards ---------------------------------------------- */

.wp-block-group.rimm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem);
	margin-top: 2.5rem;
}
.wp-block-group.rimm-grid.is-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.wp-block-group.rimm-grid > * { margin: 0 !important; max-width: none !important; }

/* Artist cards */
.wp-block-group.rimm-artist { display: flex; flex-direction: column; gap: .35rem; }
.rimm-artist .wp-block-image { margin-bottom: .6rem; width: 100%; }
.rimm-artist .wp-block-image a { display: block; }
.rimm-artist .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--radius-lg);
}
.rimm-artist h3 { margin: 0; font-size: 1.25rem; }
.rimm-artist p { margin: 0; }
p.rimm-tag {
	align-self: flex-start;
	padding: .25rem .7rem;
	border-radius: 999px;
	background: var(--c-night);
	color: var(--c-paper);
	font-size: .82rem;
	font-weight: 600;
}
.has-night-background-color p.rimm-tag,
.has-night-deep-background-color p.rimm-tag { background: var(--c-lilac); color: var(--c-ink); }
p.rimm-origin { color: var(--c-muted); font-size: .95rem; }
.has-night-background-color p.rimm-origin, .has-night-deep-background-color p.rimm-origin { color: rgba(242,246,245,.7); }
.rimm-artist p.rimm-bio { margin-top: .5rem; font-size: .98rem; line-height: 1.55; }

/* Horizontal scroller (home line-up) */
.wp-block-group.rimm-scroller {
	display: flex;
	gap: 1.25rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: .5rem 0 1.5rem;
	margin-top: 2.5rem;
	scrollbar-color: var(--c-orange) transparent;
	scrollbar-width: thin;
}
.wp-block-group.rimm-scroller > * {
	flex: 0 0 clamp(220px, 24vw, 280px);
	scroll-snap-align: start;
	margin: 0 !important;
}

/* ---------- Generic card ------------------------------------------------ */

.wp-block-group.rimm-card {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: var(--radius-lg);
	background: #fff;
	border: 1px solid var(--c-line);
}
.wp-block-group.rimm-card.has-background { border-color: transparent; }
.rimm-card > :first-child { margin-top: 0; }
.rimm-card > :last-child { margin-bottom: 0; }
.rimm-card h3 { margin-bottom: .6rem; }

/* Image + text split rows */
.wp-block-columns.rimm-split { gap: clamp(2rem, 5vw, 5rem); align-items: center !important; }
.rimm-split .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.rimm-split.is-reversed { flex-direction: row-reverse; }

/* Photo collage (2 images) */
.wp-block-group.rimm-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rimm-collage > * { margin: 0 !important; }
.rimm-collage .wp-block-image img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); }
.rimm-collage > :nth-child(2) { margin-top: 3rem !important; }

/* ---------- Stats ------------------------------------------------------- */

.wp-block-columns.rimm-stats { margin-top: 2.5rem; gap: 1rem; }
.rimm-stats .wp-block-column { border-top: 3px solid var(--c-orange); padding-top: 1rem; }
p.rimm-stat-num {
	margin: 0;
	font-family: var(--f-display);
	font-weight: 800;
	font-size: clamp(2.4rem, 5vw, 3.8rem);
	line-height: 1;
	letter-spacing: -0.03em;
}
p.rimm-stat-label { margin: .4rem 0 0; color: var(--c-muted); font-weight: 600; }

/* ---------- Tickets ----------------------------------------------------- */

.wp-block-group.rimm-ticket {
	position: relative;
	padding: 2rem 1.75rem;
	border-radius: var(--radius-md);
	background: #fff;
	color: var(--c-ink);
	/* Notches on both sides, like a real ticket stub */
	-webkit-mask: radial-gradient(circle 14px at 0 58%, transparent 98%, #000) left / 51% 100% no-repeat,
		radial-gradient(circle 14px at 100% 58%, transparent 98%, #000) right / 51% 100% no-repeat;
	mask: radial-gradient(circle 14px at 0 58%, transparent 98%, #000) left / 51% 100% no-repeat,
		radial-gradient(circle 14px at 100% 58%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.rimm-ticket > * { margin-block: 0 !important; }
.rimm-ticket p.rimm-ticket-phase { font-weight: 600; color: var(--c-muted); }
.rimm-ticket h3 { margin-top: .35rem !important; font-size: 1.4rem; }
.rimm-ticket p.rimm-price {
	margin-top: 1.4rem !important;
	padding-top: 1.1rem;
	border-top: 2px dashed var(--c-line);
	font-family: var(--f-display);
	font-weight: 800;
	font-size: 2.6rem;
	line-height: 1;
	letter-spacing: -0.03em;
}
.rimm-ticket p.rimm-price small { font-size: .9rem; font-weight: 600; letter-spacing: 0; }
.rimm-ticket .wp-block-buttons { margin-top: 1.4rem; }
.rimm-ticket.is-soldout { background: #e4ebea; }
.rimm-ticket.is-soldout h3, .rimm-ticket.is-soldout p.rimm-price { color: #7b8f93; }
.rimm-ticket.is-soldout p.rimm-price { text-decoration: line-through; text-decoration-thickness: 3px; }
p.rimm-stamp {
	display: inline-block;
	margin-top: 1rem !important;
	padding: .3rem .8rem;
	border: 2px solid var(--c-orange-deep);
	border-radius: 8px;
	color: var(--c-orange-deep);
	font-family: var(--f-display);
	font-weight: 700;
	font-size: .85rem;
	transform: rotate(-4deg);
}
.rimm-ticket.is-live { background: var(--c-sun); }
.rimm-ticket.is-live p.rimm-ticket-phase { color: var(--c-ink); }

/* ---------- Line-up by day (past editions) ------------------------------ */

.wp-block-columns.rimm-day {
	gap: clamp(1rem, 4vw, 4rem);
	padding-block: 2rem;
	border-top: 1px solid currentColor;
	border-color: rgba(255,255,255,.2);
	margin: 0 !important;
	align-items: flex-start !important;
}
.rimm-day:last-child { border-bottom: 1px solid rgba(242,246,245,.25); }
p.rimm-day-num {
	margin: 0;
	font-family: var(--f-display);
	font-weight: 800;
	font-size: clamp(3.5rem, 8vw, 6rem);
	line-height: .9;
	color: var(--c-orange);
	letter-spacing: -0.05em;
}
p.rimm-day-name { margin: .5rem 0 0; font-weight: 600; }
ul.rimm-day-acts { list-style: none; padding: 0; margin: 0; }
ul.rimm-day-acts li {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: clamp(1.25rem, 2.6vw, 2rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	padding: .35rem 0;
	max-width: none;
}
.has-salt-background-color .wp-block-columns.rimm-day,
.has-white-background-color .wp-block-columns.rimm-day { border-color: var(--c-line); }

/* ---------- Quotes / testimonials --------------------------------------- */

.wp-block-group.rimm-quote {
	position: relative;
	padding: 2.25rem 2rem 2rem;
	border-radius: var(--radius-lg);
	background: #fff;
}
.rimm-quote::before {
	content: "“";
	position: absolute;
	top: -.15em; left: 1.25rem;
	font-family: var(--f-display);
	font-size: 6rem;
	line-height: 1;
	color: var(--c-orange);
}
.rimm-quote p:first-child { font-size: 1.2rem; line-height: 1.5; margin-top: .75rem; }
p.rimm-quote-by { margin: 1.25rem 0 0; font-family: var(--f-display); font-weight: 600; font-size: .95rem; }

/* ---------- Partner logos ----------------------------------------------- */

.wp-block-group.rimm-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-top: 2.5rem;
	max-width: none !important;
}
.rimm-logos.is-marquee { flex-wrap: nowrap; overflow: hidden; justify-content: flex-start; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rimm-logos .rimm-marquee-track { gap: 1rem; animation-duration: 45s; }
.rimm-logos .wp-block-image {
	flex: none;
	width: 170px;
	height: 96px;
	margin: 0 !important;
	display: grid;
	place-items: center;
	padding: 1rem 1.25rem;
	background: #fff;
	border-radius: var(--radius-md);
	border: 1px solid var(--c-line);
}
.rimm-logos .wp-block-image img { max-height: 60px; width: auto; object-fit: contain; border-radius: 0; }

/* ---------- Video timeline ---------------------------------------------- */

.wp-block-group.rimm-year {
	display: grid;
	grid-template-columns: minmax(140px, 220px) 1fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	padding-block: 2.5rem;
	border-top: 1px solid var(--c-line);
}
.rimm-year > * { margin: 0 !important; max-width: none !important; }
.rimm-year > h2 {
	position: sticky;
	top: 6.5rem;
	align-self: start;
	font-size: clamp(2.4rem, 5vw, 4rem);
	color: var(--c-orange);
	letter-spacing: -0.04em;
}
.rimm-year > .rimm-grid { margin-top: 0; }
.wp-block-group.rimm-video { display: flex; flex-direction: column; gap: .35rem; }
.rimm-video > * { margin: 0 !important; }
.rimm-video .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rimm-video h3 { margin-top: .75rem !important; font-size: 1.1rem; }
.rimm-video p a { font-weight: 600; }

/* ---------- FAQ (Details block) ----------------------------------------- */

.wp-block-group.rimm-faq { margin-top: 2rem; }
.rimm-faq .wp-block-details {
	border-bottom: 1px solid var(--c-line);
	padding-block: 1.25rem;
	margin: 0;
}
.rimm-faq .wp-block-details:first-child { border-top: 1px solid var(--c-line); }
.has-night-background-color .rimm-faq .wp-block-details,
.has-night-deep-background-color .rimm-faq .wp-block-details { border-color: rgba(242,246,245,.22); }
.rimm-faq summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-family: var(--f-display);
	font-weight: 600;
	font-size: clamp(1.05rem, 1.8vw, 1.3rem);
	line-height: 1.3;
}
.rimm-faq summary::-webkit-details-marker { display: none; }
.rimm-faq summary::after {
	content: "+";
	flex: none;
	width: 2rem; height: 2rem;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--c-orange);
	color: #fff;
	font-family: var(--f-body);
	font-size: 1.4rem;
	line-height: 1;
	transition: transform .25s ease;
}
.rimm-faq details[open] summary::after { transform: rotate(45deg); }
.rimm-faq details > :not(summary) { margin-top: .9rem; margin-bottom: 0; }

/* ---------- Tables (food menu, packs) ----------------------------------- */

.wp-block-table.rimm-price-table { margin: .5rem 0 2rem; }
.rimm-price-table table { width: 100%; border-collapse: collapse; }
.rimm-price-table td {
	border: 0;
	border-bottom: 1px dotted var(--c-line);
	padding: .7rem 0;
	vertical-align: baseline;
}
.rimm-price-table td:last-child {
	text-align: right;
	white-space: nowrap;
	padding-left: 1rem;
	font-family: var(--f-display);
	font-weight: 600;
	font-size: .95rem;
	color: var(--c-orange-deep);
}
.rimm-price-table thead th, .rimm-price-table th {
	text-align: left;
	border: 0;
	border-bottom: 2px solid var(--c-ink);
	padding: .6rem 0;
	font-size: .9rem;
}
.rimm-price-table.is-soldout td { color: #7b8f93; }
.rimm-price-table.is-soldout td:last-child { text-decoration: line-through; color: #7b8f93; }

.wp-block-group.rimm-menu-board .wp-block-details { margin-block: 1rem; border: 0; }
.rimm-menu-board details > summary {
	cursor: pointer;
	font-family: var(--f-display);
	font-weight: 700;
	font-size: clamp(1.3rem, 2.4vw, 1.8rem);
	padding: 1rem 1.25rem;
	border-radius: var(--radius-md);
	background: var(--c-night);
	color: var(--c-paper);
}
.rimm-menu-board details[open] > summary { background: var(--c-orange); }
.rimm-menu-board details > :not(summary) { padding-inline: .25rem; }
.rimm-menu-board h3 { margin-top: 2.25rem; color: var(--c-night); }
.rimm-menu-board h4 { margin: 1.5rem 0 .25rem; color: var(--c-orange-deep); }

/* ---------- Embeds & shortcodes ----------------------------------------- */

.wp-block-embed { margin-block: 2rem 0; }
.wp-block-embed iframe, .rimm-map iframe { border-radius: var(--radius-lg); width: 100%; }
.wp-block-embed__wrapper { border-radius: var(--radius-lg); overflow: hidden; }
.rimm-map iframe { min-height: 380px; border: 0; display: block; }
.rimm-plugin-area { margin-top: 2rem; }

/* Social icons ([rimm_social]) */
ul.rimm-social { display: flex; gap: .6rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
ul.rimm-social a {
	width: 44px; height: 44px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--c-night);
	color: #fff;
}
ul.rimm-social a:hover { background: var(--c-orange); }
ul.rimm-social .icon { width: 20px; height: 20px; }

/* ---------- Utilities --------------------------------------------------- */

.rimm-center { text-align: center; }
.rimm-mt-0 { margin-top: 0 !important; }
.wp-block-columns { margin-bottom: 0; }

@media (max-width: 781px) {
	.rimm-split.is-reversed { flex-direction: column; }
	.wp-block-group.rimm-year { grid-template-columns: 1fr; }
	.rimm-year > h2 { position: static; }
	.wp-block-group.rimm-hero { min-height: 82vh; }
}

@media (prefers-reduced-motion: reduce) {
	.rimm-marquee-track { animation: none; }
	.rimm-faq summary::after { transition: none; }
}

/* Card images: consistent crop, breathing room before the text */
.rimm-card > .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rimm-card > .wp-block-image + * { margin-top: 1.4rem; }
.wp-block-group.rimm-card { display: flex; flex-direction: column; }
.has-orange-background-color p.rimm-kicker { color: var(--c-ink); }
.has-orange-background-color .rimm-muted { color: rgba(255,255,255,.85); }
.rimm-quote::before { top: -.05em; }
.wp-block-group.rimm-grid.is-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.has-night-background-color p.rimm-stamp,
.has-night-deep-background-color p.rimm-stamp { color: var(--c-sun); border-color: var(--c-sun); }

/* ---------- Forms (WPForms, Spectra form on RIMM 360°, plugins) --------- */
.entry-content input[type="text"], .entry-content input[type="email"], .entry-content input[type="tel"],
.entry-content input[type="number"], .entry-content input[type="url"], .entry-content input[type="date"],
.entry-content select, .entry-content textarea {
	width: 100%;
	max-width: 100%;
	padding: .8rem 1rem;
	border: 1.5px solid var(--c-line);
	border-radius: 12px;
	background: #fff;
	color: var(--c-ink);
	font: inherit;
	font-size: 1rem;
}
.entry-content textarea { min-height: 130px; }
.entry-content input:focus, .entry-content select:focus, .entry-content textarea:focus {
	outline: none; border-color: var(--c-orange); box-shadow: 0 0 0 3px rgba(232,98,26,.2);
}
.entry-content label { font-weight: 600; }
.entry-content input[type="radio"], .entry-content input[type="checkbox"] { accent-color: var(--c-orange); width: 1.1em; height: 1.1em; }
.entry-content button[type="submit"], .entry-content input[type="submit"], .entry-content .wpforms-submit {
	font-family: var(--f-display); font-weight: 600; font-size: .95rem;
	padding: 1em 1.6em; border: 0; border-radius: 999px;
	background: var(--c-orange); color: #fff; cursor: pointer;
}
.entry-content button[type="submit"]:hover, .entry-content input[type="submit"]:hover { background: var(--c-orange-deep); }

/* ==========================================================================
   Edition theme — "Kerkennah 2026" (wave, sea). Only on pages whose hero
   has the class `theme-kerkennah` (RIMM 2026 and Hébergement).
   ========================================================================== */
body.theme-kerkennah {
	--c-night: #0E4655;
	--c-night-deep: #082F3A;
	--c-lilac: #8FD0C6;
	--c-paper: #F2F6F5;
	--c-ink: #102429;
	--c-muted: #4F6A70;
	--c-line: rgba(16, 36, 41, .14);
	--c-overlay: 8, 47, 58;
	--mark: var(--squiggle);
	--wp--preset--color--night: #0E4655;
	--wp--preset--color--night-deep: #082F3A;
	--wp--preset--color--lilac: #8FD0C6;
	--wp--preset--color--paper: #F2F6F5;
	--wp--preset--color--ink: #102429;
	background: var(--c-paper);
}

/* Sea hero without a photo: sunset over the Kerkennah flats, felucca sail, layered waves */
.wp-block-group.rimm-hero.is-sea { background: linear-gradient(180deg, #F08A3C 0%, #E8621A 22%, #B8466A 46%, #0E4655 72%, #082F3A 100%); }
.rimm-hero.is-sea::before {
	background:
		radial-gradient(circle at 78% 34%, rgba(255,214,120,.95) 0 70px, rgba(255,214,120,.35) 71px 120px, transparent 121px),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 220'%3E%3Cpath d='M98 20 L100 170 L30 170 Z' fill='%23082F3A' opacity='.85'/%3E%3Cpath d='M104 40 L106 170 L170 170 Z' fill='%23082F3A' opacity='.6'/%3E%3Cpath d='M20 178 Q100 196 186 178 L176 192 Q100 206 30 192 Z' fill='%23082F3A'/%3E%3C/svg%3E") no-repeat 70% 72% / clamp(160px, 22vw, 300px) auto,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40C50 40 50 20 100 20s50 20 100 20 50-20 100-20 50 20 100 20 50-20 100-20 50 20 100 20v40H0z' fill='%230E4655' opacity='.55'/%3E%3C/svg%3E") repeat-x 0 100% / 600px 120px,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 80' preserveAspectRatio='none'%3E%3Cpath d='M0 46C60 46 60 26 120 26s60 20 120 20 60-20 120-20 60 20 120 20 60-20 120-20v54H0z' fill='%23082F3A' opacity='.8'/%3E%3C/svg%3E") repeat-x 140px 100% / 600px 80px;
	animation: rimm-tide 18s linear infinite;
}
@keyframes rimm-tide { to { background-position: 78% 34%, 70% 72%, 600px 100%, 740px 100%; } }

/* Photo strip of Kerkennah stays (accommodation page) */
.wp-block-group.rimm-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-top: 2rem; }
.rimm-strip > * { margin: 0 !important; max-width: none !important; }
.rimm-strip .wp-block-image img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-md); }
.rimm-strip > :nth-child(even) { transform: translateY(1.5rem); }
@media (max-width: 781px) { .wp-block-group.rimm-strip { grid-template-columns: repeat(2, 1fr); } }

/* Big "open the options" call-to-action card */
.wp-block-group.rimm-opener {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1.5rem 2.5rem;
	align-items: center;
	margin-top: 2.5rem;
	padding: clamp(1.75rem, 4vw, 3rem);
	border-radius: var(--radius-lg);
	background: var(--c-night);
	color: #fff;
}
.rimm-opener > * { margin: 0 !important; max-width: none !important; }
.rimm-opener h3 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.rimm-opener p { color: rgba(255,255,255,.82); }
.rimm-opener > .wp-block-group { display: flex; flex-direction: column; gap: .5rem; }
.rimm-opener .wp-block-buttons { margin: 0; }
ul.rimm-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .75rem 0 0 !important; }
ul.rimm-chips li { padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.12); font-weight: 600; font-size: .9rem; color: #fff; }
@media (max-width: 781px) { .wp-block-group.rimm-opener { grid-template-columns: 1fr; } }

/* ==========================================================================
   Edition highlight (home: RIMM 2026)
   ========================================================================== */
.wp-block-columns.rimm-feature { gap: clamp(2rem, 5vw, 4.5rem); align-items: center !important; }
.rimm-feature .wp-block-image img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); }
p.rimm-names { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; line-height: 1.6; color: var(--c-sun); }

/* ==========================================================================
   Pop-ups (any group with class `rimm-modal` + an anchor; buttons link to #anchor)
   ========================================================================== */
.js .entry-content .wp-block-group.rimm-modal { display: none; }
.rimm-modal-shell {
	position: fixed; inset: 0; z-index: 1000;
	display: none;
	align-items: flex-start; justify-content: center;
	padding: clamp(0rem, 3vw, 2.5rem);
	background: rgba(var(--c-overlay), .78);
	backdrop-filter: blur(4px);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.rimm-modal-shell.is-open { display: flex; animation: rimm-fade .2s ease; }
@keyframes rimm-fade { from { opacity: 0; } }
.rimm-modal-panel {
	position: relative;
	width: min(1180px, 100%);
	margin: auto;
	background: var(--c-paper);
	color: var(--c-ink);
	border-radius: var(--radius-lg);
	box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
	animation: rimm-rise .28s cubic-bezier(.2,.8,.2,1);
	overflow: hidden;
}
@keyframes rimm-rise { from { transform: translateY(24px); opacity: 0; } }
.rimm-modal-head {
	position: sticky; top: 0; z-index: 2;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 1.1rem clamp(1.25rem, 3vw, 2rem);
	background: var(--c-night);
	color: #fff;
}
.rimm-modal-head p { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1rem; }
.theme-kerkennah .rimm-modal-head::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -15px; height: 16px;
	background: var(--c-night);
	-webkit-mask: var(--wave) repeat-x top / 300px 16px; mask: var(--wave) repeat-x top / 300px 16px;
	transform: scaleY(-1);
}
.rimm-modal-close {
	flex: none;
	display: grid; place-items: center;
	width: 44px; height: 44px; padding: 0;
	border: 0; border-radius: 50%;
	background: var(--c-orange); color: #fff; cursor: pointer;
}
.rimm-modal-close:hover { background: var(--c-orange-deep); }
.rimm-modal-body { padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem); }
.rimm-modal-body > .rimm-modal { display: block !important; margin: 0 !important; max-width: none !important; }
.rimm-modal-body .rimm-modal > h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.rimm-modal-lock { overflow: hidden; }
@media (max-width: 600px) {
	.rimm-modal-shell { padding: 0; }
	.rimm-modal-panel { border-radius: 0; min-height: 100%; }
}

/* Filters (built by JS from the `cat-*` classes on the artist cards) */
.rimm-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 .5rem; }
.rimm-filter {
	padding: .6rem 1.05rem;
	border: 1.5px solid var(--c-line);
	border-radius: 999px;
	background: #fff;
	color: var(--c-ink);
	font: 600 .92rem/1 var(--f-body);
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.rimm-filter:hover { border-color: var(--c-orange); }
.rimm-filter.is-active { background: var(--c-orange); border-color: var(--c-orange); color: #fff; }
.rimm-filter span { opacity: .7; margin-left: .3rem; font-weight: 500; }
.rimm-artist.is-hidden { display: none !important; }
.rimm-filterable .rimm-grid { margin-top: 1.5rem; }

/* Line-up strip that scrolls by itself (pauses on hover) */
.wp-block-group.rimm-scroller.is-marquee { display: block; overflow: hidden; scroll-snap-type: none; padding-bottom: .5rem;
	-webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rimm-scroller.is-marquee .rimm-marquee-track { gap: 1.25rem; animation-duration: 60s; }
.rimm-scroller.is-marquee .rimm-marquee-track > * { width: clamp(210px, 22vw, 270px); margin: 0 !important; }
.rimm-scroller.is-marquee:hover .rimm-marquee-track,
.rimm-scroller.is-marquee:focus-within .rimm-marquee-track { animation-play-state: paused; }
.rimm-scroller .rimm-artist a { display: block; }
.rimm-scroller .rimm-artist img { transition: transform .3s ease; }
.rimm-scroller .rimm-artist a:hover img { transform: scale(1.03); }

/* ==========================================================================
   Mobile polish
   ========================================================================== */
@media (max-width: 600px) {
	:root { --section-y: 3.5rem; }
	.wp-block-buttons { flex-direction: column; align-items: stretch !important; gap: .65rem; }
	.wp-block-buttons > .wp-block-button { width: 100%; }
	.wp-block-buttons > .wp-block-button > .wp-block-button__link { display: block; width: 100%; text-align: center; }
	.wp-block-group.rimm-hero { min-height: auto; padding-top: 8.5rem; padding-bottom: 4rem; }
	.wp-block-group.rimm-hero.is-short { min-height: auto; }
	.rimm-hero h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); }
	.rimm-facts li { font-size: .88rem; padding: .4rem .8rem; }
	p.rimm-lead { font-size: 1.1rem; }
	.wp-block-group.rimm-ribbon { margin-top: -1.6rem !important; }
	.rimm-collage > :nth-child(2) { margin-top: 1.5rem !important; }
	.wp-block-columns.rimm-day { gap: .25rem; }
	p.rimm-day-num { font-size: 3.2rem; }
	.wp-block-group.rimm-ticket { padding: 1.6rem 1.4rem; }
	.wp-block-group.rimm-card { padding: 1.4rem; }
}

/* ==========================================================================
   Plugin skins — RIMM Hébergement & Song Requests use the theme look
   ========================================================================== */
.entry-content .rimm-heb,
.rimm-modal-body .rimm-heb {
	--rh-sand: #D9D4CC; --rh-sand-lt: var(--c-paper); --rh-sand-dk: var(--c-muted);
	--rh-sea: var(--c-night); --rh-sea-lt: var(--c-lilac); --rh-sea-dp: var(--c-night-deep);
	--rh-terra: var(--c-orange); --rh-terra-lt: var(--c-orange-deep);
	--rh-olive: var(--c-night);
	--rh-ink: var(--c-ink); --rh-ink-soft: var(--c-muted);
	--rh-cream: var(--c-paper); --rh-white: #fff;
	--rh-fd: var(--f-display); --rh-fb: var(--f-body); --rh-fc: var(--f-body);
	font-family: var(--f-body);
}
.rimm-heb .rh-title { font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.1; }
.rimm-heb .rh-title em { font-style: normal; color: var(--c-orange); }
.rimm-heb .rh-section-eyebrow, .rimm-heb .rh-subtitle, .rimm-heb .rh-progress-label,
.rimm-heb .rh-tag, .rimm-heb .rh-cat-badge, .rimm-heb .rh-mode-badge, .rimm-heb .rh-sold-out-banner,
.rimm-heb .rh-room-price-badge, .rimm-heb .rh-form-group label, .rimm-heb .rh-summary-label {
	text-transform: none; letter-spacing: 0; font-family: var(--f-body);
}
.rimm-heb .rh-section-eyebrow, .rimm-heb .rh-subtitle { font-size: .95rem; font-weight: 600; color: var(--c-orange-deep); opacity: 1; }
.rimm-heb .rh-section-eyebrow::after { display: none; }
.rimm-heb .rh-progress-label { font-size: .75rem; }
.rimm-heb .rh-progress-dot { font-family: var(--f-display); font-size: .75rem; }
.rimm-heb .rh-tag, .rimm-heb .rh-cat-badge, .rimm-heb .rh-mode-badge, .rimm-heb .rh-room-price-badge, .rimm-heb .rh-sold-out-banner {
	border-radius: 999px; font-size: .8rem; font-weight: 600; padding: .3rem .7rem;
}
.rimm-heb .rh-btn, .rimm-heb .rh-back {
	border-radius: 999px; text-transform: none; letter-spacing: 0;
	font-family: var(--f-display); font-weight: 600; font-size: .9rem;
}
.rimm-heb .rh-btn { padding: .95rem 1.5rem; }
.rimm-heb .rh-category-card, .rimm-heb .rh-hotel-card, .rimm-heb .rh-room-card, .rimm-heb .rh-summary,
.rimm-heb .rh-form-section, .rimm-heb .rh-person-section, .rimm-heb .rh-ticket-warning,
.rimm-heb .rh-success-email-note, .rimm-heb .rh-empty {
	border-radius: var(--radius-md); overflow: hidden;
}
.rimm-heb .rh-category-card, .rimm-heb .rh-hotel-card, .rimm-heb .rh-room-card { background: #fff; border: 1px solid var(--c-line); box-shadow: none; }
.rimm-heb .rh-category-card::before, .rimm-heb .rh-hotel-card::before, .rimm-heb .rh-room-card::before { display: none; }
.rimm-heb .rh-cat-body h3, .rimm-heb .rh-hotel-body h3, .rimm-heb .rh-room-top h4, .rimm-heb .rh-form-section h3, .rimm-heb .rh-person-section h3 {
	font-family: var(--f-display); font-weight: 600; letter-spacing: -0.01em;
}
.rimm-heb .rh-form-group input, .rimm-heb .rh-form-group select, .rimm-heb .rh-form-group textarea { border-radius: 12px; font-family: var(--f-body); }
.rimm-heb .rh-categories-grid, .rimm-heb .rh-hotels-grid, .rimm-heb .rh-rooms-grid { gap: 1rem; }
.rimm-modal-body .rimm-heb .rh-step { padding-top: 1rem; }

#rimm-req-app {
	--rr-orange: var(--c-orange); --rr-orange-h: var(--c-orange-deep);
	--rr-blue: var(--c-night); --rr-dark: var(--c-ink); --rr-muted: var(--c-muted);
	--rr-border: var(--c-line); --rr-bg: var(--c-paper);
	font-family: var(--f-body);
	max-width: 720px;
}
#rimm-req-app .rr-title, #rimm-req-app h2, #rimm-req-app h3 { font-family: var(--f-display); letter-spacing: -0.01em; }
#rimm-req-app .rr-btn-primary, #rimm-req-app .rr-tab, #rimm-req-app .rr-lang-btn { border-radius: 999px; font-family: var(--f-display); font-weight: 600; text-transform: none; letter-spacing: 0; }
#rimm-req-app .rr-input { border-radius: 12px; font-family: var(--f-body); }
#rimm-req-app .rr-panel { border-radius: var(--radius-lg); }
@media (max-width: 600px) {
	.rimm-hero.is-sea::before {
		background-image:
			radial-gradient(circle at 86% 16%, rgba(255,214,120,.95) 0 34px, rgba(255,214,120,.3) 35px 60px, transparent 61px),
			url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 220'%3E%3Cpath d='M98 20 L100 170 L30 170 Z' fill='%23082F3A' opacity='.85'/%3E%3Cpath d='M104 40 L106 170 L170 170 Z' fill='%23082F3A' opacity='.6'/%3E%3Cpath d='M20 178 Q100 196 186 178 L176 192 Q100 206 30 192 Z' fill='%23082F3A'/%3E%3C/svg%3E"),
			url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40C50 40 50 20 100 20s50 20 100 20 50-20 100-20 50 20 100 20 50-20 100-20 50 20 100 20v40H0z' fill='%230E4655' opacity='.55'/%3E%3C/svg%3E"),
			url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 80' preserveAspectRatio='none'%3E%3Cpath d='M0 46C60 46 60 26 120 26s60 20 120 20 60-20 120-20 60 20 120 20 60-20 120-20v54H0z' fill='%23082F3A' opacity='.8'/%3E%3C/svg%3E");
		background-repeat: no-repeat, no-repeat, repeat-x, repeat-x;
		background-size: auto, 150px auto, 600px 90px, 600px 60px;
		background-position: 88% 14%, 92% 78%, 0 100%, 140px 100%;
		animation: none;
	}
	.wp-block-group.rimm-hero.is-sea { background: linear-gradient(180deg, #E8621A 0%, #B8466A 38%, #0E4655 70%, #082F3A 100%); }
}

/* The hero always spans the full screen width, whatever wraps it */
.entry-content .wp-block-group.rimm-hero {
	width: 100vw;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	margin-top: 0;
	border-radius: 0;
}
.entry-content > p:empty { display: none; }

/* ---------- Scrollable carousels (line-up, partners) -------------------- */
.rimm-carousel { position: relative; }
.rimm-carousel > .is-scrollable {
	overflow-x: auto !important;
	scrollbar-width: none;
	cursor: grab;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	user-select: none;
}
.rimm-carousel > .is-scrollable::-webkit-scrollbar { display: none; }
.rimm-carousel > .is-scrollable.is-dragging { cursor: grabbing; }
.rimm-carousel > .is-scrollable .rimm-marquee-track { animation: none !important; }
.rimm-carousel > .is-scrollable img { -webkit-user-drag: none; pointer-events: auto; }
.rimm-carousel-btn {
	position: absolute;
	top: 38%;
	z-index: 3;
	display: grid; place-items: center;
	width: 48px; height: 48px; padding: 0;
	border: 0; border-radius: 50%;
	background: var(--c-orange); color: #fff;
	box-shadow: 0 10px 24px -10px rgba(0,0,0,.5);
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.rimm-carousel-btn:hover { background: var(--c-orange-deep); transform: scale(1.06); }
.rimm-carousel-btn.is-prev { left: clamp(.5rem, 2vw, 1.5rem); }
.rimm-carousel-btn.is-prev svg { transform: rotate(180deg); }
.rimm-carousel-btn.is-next { right: clamp(.5rem, 2vw, 1.5rem); }
.rimm-carousel.is-logos .rimm-carousel-btn { top: 50%; width: 40px; height: 40px; transform: translateY(-30%); }
.rimm-carousel.is-logos .rimm-carousel-btn:hover { transform: translateY(-30%) scale(1.06); }
.rimm-carousel.is-logos { margin-top: 2.5rem; }
.rimm-carousel.is-logos > .rimm-logos { margin-top: 0; padding-block: .25rem; }
@media (max-width: 600px) {
	.rimm-carousel-btn { width: 40px; height: 40px; }
}

/* ---------- Pop-ups: always above everything, close button always visible ---------- */
.rimm-modal-shell {
	z-index: 2147483000;
	top: var(--wp-admin--admin-bar--height, 0px);
}
@media (max-width: 600px) {
	/* the admin bar scrolls away on phones */
	.rimm-modal-shell { top: 0; }
}
.rimm-modal-lock .site-header,
.rimm-modal-lock .mob-menu-header-holder,
.rimm-modal-lock .mobmenu-left-bt,
.rimm-modal-lock .mobmenu-right-bt { visibility: hidden; }
.rimm-modal-close {
	display: inline-flex; align-items: center; gap: .45rem;
	width: auto; height: 46px;
	padding: 0 1rem 0 1.15rem;
	border-radius: 999px;
	font: 600 .95rem/1 var(--f-display);
	box-shadow: 0 6px 18px -6px rgba(0,0,0,.45);
}
.rimm-modal-close svg { width: 22px; height: 22px; }
.rimm-modal-foot {
	display: flex; justify-content: center;
	padding: 0 1.5rem 2rem;
}
.rimm-modal-close.is-foot { padding: 0 1.6rem; background: var(--c-night); }
.rimm-modal-close.is-foot:hover { background: var(--c-night-deep); }

/* If something sits above the hero (editor leftovers), the hero still starts under the header correctly */
.has-hero .entry-content > :first-child:not(.rimm-hero) { margin-top: 0; padding-top: 6.5rem; }
.has-hero .entry-content > :first-child:not(.rimm-hero):empty { display: none; }
