/*
Theme Name: Reprovet
Theme URI: https://www.reprovet.fi
Description: Reprovet Oy — block child theme replicating the Webflow design. Brand palette + self-hosted Open Sans / HK Grotesk Pro.
Author: Reprovet
Template: twentytwentyfive
Version: 0.1.0
Text Domain: reprovet
*/

/* Links: no focus outline on click/tap, but keep it for keyboard navigation (a11y) */
a:focus:not(:focus-visible),
summary:focus:not(:focus-visible) { outline: none; box-shadow: none; }

/* Content section headings: extra top margin to separate from the previous section */
h2.wp-block-heading { margin-top: 2.5rem; }

/* Mobile: slightly larger body text + tighter horizontal page margin (1.5rem -> 1rem) */
@media (max-width: 600px) {
	body {
		font-size: 1.15rem;
		--wp--style--root--padding-left: 1rem;
		--wp--style--root--padding-right: 1rem;
	}
}

/* Top utility strip — iOS light grey band (black contact text) */
.rv-topbar-strip { background: #f2f2f7; border-bottom: 1px solid rgba(0,0,0,.07); }
.rv-topbar-inner { font-size: 0.84rem; }
.rv-footer { font-size: 1rem; background: #f2f2f7; }
.rv-footer-cols { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.rv-footer-col { flex: 1 1 260px; }
.rv-footer-col h3 { font-size: 1.125rem; margin: 0 0 0.6rem; }
.rv-footer-col p { margin: 0 0 0.85rem; }
/* "Palvelemme" column right-aligned on desktop (left edge of contact info stays left) */
@media (min-width: 601px) {
	.rv-footer-col--end { text-align: right; }
}
/* Legal links — now a row at the bottom of the footer */
.rv-footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 1.6rem; font-size: 0.88rem; }
.rv-footer-legal a { color: var(--wp--preset--color--slate-blue); text-decoration: none; }
.rv-footer-legal a:hover { text-decoration: underline; }
.rv-footer-legal__sep { color: #b8b8b8; }
.rv-contact { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; color: var(--wp--preset--color--contrast); }
.rv-contact:hover { text-decoration: none; color: var(--wp--preset--color--link-blue); }
.rv-contact svg { width: 15px; height: 15px; fill: currentColor; flex: 0 0 auto; }
.rv-topbar-contacts { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
@media (max-width: 600px) {
	.rv-topbar-contacts { gap: 0.9rem; }
}

/* Language switcher — flag dropdown (details/summary, no JS) */
.rv-langselect { position: relative; }
.rv-langselect summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; color: var(--wp--preset--color--contrast); position: relative; top: 1px; }
.rv-langselect summary::-webkit-details-marker { display: none; }
/* Fixed box + object-fit so all flags render the same size despite differing aspect ratios (UK is 2:1, FI/SE ~1.6:1) */
.rv-langselect summary img { width: 27px; height: 18px; object-fit: cover; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.10); }
.rv-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .6; transition: transform .15s; }
.rv-langselect[open] .rv-caret { transform: rotate(180deg); }
.rv-langselect__menu { position: absolute; right: 0; top: calc(100% + 10px); list-style: none; margin: 0; padding: 0.4rem; min-width: 160px; background: #fff; border: 1px solid var(--wp--preset--color--light-gray); border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.14); z-index: 1100; }
.rv-langselect__menu li { margin: 0; }
.rv-langselect__menu a { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0.6rem; text-decoration: none; color: var(--wp--preset--color--contrast); border-radius: 6px; white-space: nowrap; }
.rv-langselect__menu a:hover { background: var(--wp--preset--color--light-gray); }
.rv-langselect__menu img { width: 24px; height: 16px; object-fit: cover; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.10); }
.rv-lang-current a { font-weight: 600; }

/* Main navigation — white nav row (dark uppercase links + section dropdowns) */
.rv-nav { position: relative; background: #fff; }
.rv-mainnav { display: flex; align-items: center; }
.rv-nav-toggle { display: none; }
.rv-burger { display: none; }
.rv-menu { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.rv-navlink { position: relative; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.02em; text-decoration: none; color: var(--wp--preset--color--contrast); white-space: nowrap; padding: 0.4rem 0; }
.rv-navlink:hover { color: var(--wp--preset--color--navy); }
.rv-navlink--label { cursor: pointer; user-select: none; }
/* Desktop CTA button (after the nav menu) */
.rv-bookcta { display: inline-flex; align-items: center; margin-left: 1.5rem; padding: 0.55rem 1.4rem; background: var(--wp--preset--color--salmon-pink); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; border-radius: 10rem; white-space: nowrap; transition: background .15s; }
.rv-bookcta:hover { background: #ec7373; color: #fff; }
/* Mobile: keep the CTA visible, placed between the logo and the burger */
@media (max-width: 900px) {
	.rv-bookcta { order: -1; margin-left: 0; margin-right: 0.7rem; padding: 0.42rem 0.95rem; font-size: 0.82rem; }
}
/* Current-section indicator: Reprovet-pink underline */
.rv-navlink--active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--wp--preset--color--salmon-pink); border-radius: 2px; }

/* Section dropdowns */
.rv-navitem { position: relative; display: inline-flex; align-items: center; gap: 1px; }
.rv-subtoggle { background: none; border: 0; margin: 0; padding: 4px 2px; cursor: pointer; color: var(--wp--preset--color--contrast); display: inline-flex; align-items: center; line-height: 0; }
.rv-navcaret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .55; transition: transform .15s; }
.rv-submenu { display: none; list-style: none; margin: 0; padding: 0.4rem; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--wp--preset--color--light-gray); border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.13); z-index: 1100; }
.rv-submenu li { margin: 0; }
.rv-submenu a { display: block; padding: 0.55rem 0.7rem; text-decoration: none; color: var(--wp--preset--color--contrast); border-radius: 6px; white-space: nowrap; font-size: 0.92rem; }
.rv-submenu a:hover { background: var(--wp--preset--color--light-gray); color: var(--wp--preset--color--navy); }
.rv-navitem.is-open .rv-submenu { display: block; }
.rv-navitem.is-open .rv-navcaret { transform: rotate(180deg); }

@media (min-width: 901px) {
	.rv-has-sub:hover .rv-submenu, .rv-has-sub:focus-within .rv-submenu { display: block; }
	.rv-has-sub:hover .rv-navcaret { transform: rotate(180deg); }
}

@media (max-width: 900px) {
	.rv-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; cursor: pointer; }
	.rv-burger span { display: block; height: 2px; width: 24px; background: var(--wp--preset--color--contrast); border-radius: 2px; transition: .2s; }
	.rv-menu {
		display: none; position: absolute; top: 100%; right: 0; left: 0;
		flex-direction: column; align-items: stretch; gap: 0.55rem;
		background: #fff; padding: 1.1rem 1.5rem; box-shadow: 0 12px 28px rgba(0,0,0,.16);
		border-top: 1px solid var(--wp--preset--color--light-gray); z-index: 1000;
	}
	.rv-nav-toggle:checked ~ .rv-menu { display: flex; }
	.rv-navlink { font-size: 1.05rem; padding: 0.5rem 0; }
	.rv-navlink--active::after { right: auto; width: 2.2rem; }
	/* dropdowns become inline accordions inside the hamburger */
	.rv-navitem { width: 100%; justify-content: space-between; flex-wrap: wrap; }
	.rv-subtoggle { padding: 0.5rem 0.4rem; }
	.rv-submenu { position: static; box-shadow: none; border: 0; border-radius: 0; padding: 0.1rem 0 0.3rem 0.9rem; min-width: 0; width: 100%; }
	.rv-navcaret { border-top-width: 6px; border-left-width: 5px; border-right-width: 5px; }
}

/* Screen-reader-only (visually hidden, still announced) */
.rv-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Hero: left-anchored text column inside the wide container */
.rv-hero-text { max-width: 720px; }

/* Frontpage founder section: quote left, image right filling the column height. */
.rv-founder__media { display: flex; flex-direction: column; }
.rv-founder__media .wp-block-image { position: relative; flex: 1 1 auto; min-height: 0; margin: 0; }
.rv-founder__media .wp-block-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
@media (min-width: 782px) {
	/* desktop: drop the image down so it starts level with the intro text, not the quote mark;
	   it then fills down to the bottom of the quote column (image height = textbox height). */
	.rv-founder__media { padding-top: 59px; }
	/* indent the quote text + attribution, but let the quotation mark hang flush-left */
	.rv-founder__text > *:not(:first-child) { padding-left: 2.5rem; }
}
@media (max-width: 781px) {
	/* stacked: natural image height */
	.rv-founder__media .wp-block-image { position: static; flex: 0 0 auto; }
	.rv-founder__media .wp-block-image img { position: static; height: auto; }
}

/* Contact form (CF7) */
.wpcf7-form .rv-field { margin-bottom: 1.1rem; }
.wpcf7-form .rv-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
	width: 100%; box-sizing: border-box; padding: 0.6rem 0.85rem;
	border: 1px solid #d0d5dd; border-radius: 6px; font-size: 1rem;
	font-family: inherit; background: #fff;
}
.wpcf7-form textarea { min-height: 170px; resize: vertical; }
.wpcf7-form input[type="submit"] {
	background: var(--wp--preset--color--link-blue); color: #fff; border: 0;
	border-radius: 6px; padding: 0.7rem 2rem; font-size: 1rem; cursor: pointer;
	margin-top: 0.3rem;
}
.wpcf7-form input[type="submit"]:hover { background: var(--wp--preset--color--navy); }

/* Left side-nav pills (Palvelut) */
.rv-side-nav .wp-block-button__link { width: 100%; }

/* Service / pricing groups */
.rv-pricing { margin: 1.5rem 0 0; }
.rv-price-group { background: var(--wp--preset--color--slate-blue); color: #fff; font-family: var(--wp--preset--font-family--body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.75rem 1.2rem; margin: 2.2rem -4px 0; border-radius: 4px; }
.rv-price-row { padding: 0.5rem 0; border-bottom: 1px solid var(--wp--preset--color--light-gray); }
.rv-price-main { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.rv-price-row .rv-price-name { font-size: 1.05rem; }
.rv-price-row .rv-price { white-space: nowrap; font-weight: 400; }
.rv-price-desc { color: #808080; font-size: 0.88rem; line-height: 1.45; margin-top: 0.15rem; max-width: 90%; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
/* click-to-reveal full description */
.rv-price-row--has-desc { cursor: pointer; }
.rv-price-row--has-desc .rv-price-name::after { content: "\203A"; display: inline-block; transform: rotate(90deg); color: var(--wp--preset--color--muted-blue); margin-left: 0.45rem; font-weight: 700; transition: transform .2s; }
.rv-price-row.is-open .rv-price-name::after { transform: rotate(-90deg); }
.rv-price-row.is-open .rv-price-desc { -webkit-line-clamp: unset; overflow: visible; }
/* "See full price list" link (service-page pricing excerpt) */
.rv-pricing-more { margin: 1rem 0 0; }
.rv-pricing-more a { font-size: 0.9rem; font-weight: 600; color: var(--wp--preset--color--slate-blue); text-decoration: none; }
.rv-pricing-more a:hover { color: var(--wp--preset--color--salmon-pink, #f28b8b); text-decoration: underline; }

/* Mobile tuning */
@media (max-width: 600px) {
	.rv-price-desc { max-width: 100%; }
	.rv-price-row { padding: 0.7rem 0; }
	.rv-price-group { padding: 0.7rem 0.8rem; }
	h1 { font-size: 2.1rem; }
	.rv-staff-card .rv-staff-photo { height: 360px; }
	.wpcf7-form textarea { min-height: 130px; }
}

/* Staff grid */
.rv-staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 1.5rem; }
.rv-staff-card { display: block; background: #fff; border: 1px solid var(--wp--preset--color--light-gray); border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .18s, transform .18s; }
.rv-staff-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.10); transform: translateY(-3px); }
.rv-staff-meta { font-weight: 600; color: var(--wp--preset--color--slate-blue); margin: 0.2rem 0 0.4rem; }
.rv-staff-meta-extra { color: #808080; margin: 0 0 1rem; }

/* Single staff page: full-bleed hero photo on mobile (2-col stays on desktop) */
@media (max-width: 781px) {
	.rv-staff-single .wp-block-columns { gap: 0; }
	.rv-staff-single .wp-block-post-featured-image {
		width: 100vw; max-width: 100vw;
		margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
		margin-bottom: 1.4rem; border-radius: 0;
	}
	.rv-staff-single .wp-block-post-featured-image img { width: 100%; display: block; border-radius: 0 !important; }
}
.rv-staff-card .rv-staff-photo { width: 100%; height: 300px; object-fit: cover; display: block; }
.rv-staff-body { padding: 0.9rem 1.1rem 1.2rem; }
.rv-staff-name { margin: 0 0 0.2rem; font-size: 1.25rem; font-weight: 600; }
.rv-staff-suffix { font-size: 0.8rem; color: var(--wp--preset--color--muted-blue); font-weight: 400; }
.rv-staff-title { margin: 0; color: #667085; }
@media (max-width: 900px) { .rv-staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rv-staff-grid { grid-template-columns: 1fr; } }

/* FAQ list — grouped by section, click-to-reveal answers */
.rv-faq { margin-top: 1.5rem; }
.rv-faq-group { margin: 0 0 2.5rem; }
.rv-faq-section {
	font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--wp--preset--color--slate-blue);
	margin: 0 0 0.4rem; padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--wp--preset--color--salmon-pink, #f28b8b);
}
.rv-faq-item { margin: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.rv-faq-q {
	list-style: none; cursor: pointer;
	display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
	font-size: 1.05rem; font-weight: 400; line-height: 1.45; color: inherit;
	padding: 0.85rem 0;
}
.rv-faq-q::-webkit-details-marker { display: none; }
.rv-faq-q::after {
	content: ""; flex: 0 0 auto; width: 0.55rem; height: 0.55rem;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); transform-origin: center; transition: transform 0.18s ease;
	margin-right: 0.35rem; opacity: 0.55;
}
.rv-faq-item[open] > .rv-faq-q::after { transform: rotate(-135deg); }
.rv-faq-q:hover { color: var(--wp--preset--color--salmon-pink, #f28b8b); }
.rv-faq-a { color: #333; padding: 0 0.25rem 1.1rem; }
.rv-faq-a p { margin: 0; }
.rv-faq-a p + p { margin-top: 0.8rem; }

/* ===== Image scroller (horizontal scroll-snap strip) ===== */
.rv-scroller-wrap { position: relative; margin: 1.5rem 0; }
.rv-scroller { display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.rv-scroller::-webkit-scrollbar { display: none; }
.rv-scroller__thumb { flex: 0 0 auto; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; scroll-snap-align: start; border-radius: 8px; overflow: hidden; line-height: 0; }
.rv-scroller__thumb img { height: 220px; width: auto; max-width: none; object-fit: cover; display: block; border-radius: 8px; transition: transform .25s ease, filter .25s ease; }
.rv-scroller__thumb:hover img { transform: scale(1.03); filter: brightness(1.04); }
.rv-scroller__thumb:focus-visible { outline: 2px solid var(--wp--preset--color--salmon-pink, #f28b8b); outline-offset: 2px; }
@media (max-width: 600px) { .rv-scroller__thumb img { height: 160px; } }
.rv-scroller__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.16); color: var(--wp--preset--color--navy); font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 5; }
.rv-scroller__arrow--prev { left: 8px; }
.rv-scroller__arrow--next { right: 8px; }
@media (max-width: 600px) { .rv-scroller__arrow { display: none; } }

/* ===== Lightbox (full-screen, swipe/scroll between images) ===== */
/* max-width:none/margin:0 override WP's constrained-layout cap (it applies even to fixed children) */
.rv-lightbox { position: fixed; inset: 0; width: 100vw; max-width: none; margin: 0; z-index: 99990; background: rgba(0,0,0,.93); }
.rv-lightbox[hidden] { display: none; }
.rv-lightbox__track { display: flex; height: 100%; width: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.rv-lightbox__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; margin: 0; padding: 4vh 5vw; box-sizing: border-box; }
.rv-lightbox__slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.rv-lightbox__close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; z-index: 3; }
.rv-lightbox__close:hover { background: rgba(255,255,255,.26); }
.rv-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 2.1rem; line-height: 1; cursor: pointer; z-index: 3; }
.rv-lightbox__nav:hover { background: rgba(255,255,255,.26); }
.rv-lightbox__nav--prev { left: 16px; }
.rv-lightbox__nav--next { right: 16px; }
@media (max-width: 600px) { .rv-lightbox__nav { display: none; } }

/* ===== Sub-header: breadcrumbs + scrollable section tabs ===== */
.rv-subheader { background: #fff; }
.rv-subheader__inner { max-width: 960px; margin: 0 auto; padding: 0.5rem 0 0.25rem; }
@media (max-width: 1000px) { .rv-subheader__inner { padding-left: 1.2rem; padding-right: 1.2rem; } }
.rv-breadcrumbs { font-size: 0.85rem; color: #8a8a8a; }
.rv-breadcrumbs a { color: var(--wp--preset--color--slate-blue); text-decoration: none; }
.rv-breadcrumbs a:hover { text-decoration: underline; }
.rv-breadcrumbs .separator { color: #b8b8b8; padding: 0 0.35rem; }
/* Real tabs: square segments on a shared baseline rail; active = inverted navy. */
.rv-subnav { margin-top: 0.55rem; }
.rv-subnav__scroll {
	display: flex; gap: 0;
	overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
	background: #fff;
	border-bottom: 1px solid var(--wp--preset--color--light-gray);
}
.rv-subnav__scroll::-webkit-scrollbar { display: none; }
.rv-subnav__tab {
	flex: 0 0 auto; white-space: nowrap;
	padding: 0.8rem 1.25rem; border-radius: 0;
	background: transparent; color: var(--wp--preset--color--slate-blue);
	text-decoration: none; font-size: 0.9rem; font-weight: 500; line-height: 1.2;
	border-right: 1px solid var(--wp--preset--color--light-gray);
	transition: background .15s, color .15s;
}
.rv-subnav__tab:first-child { border-left: 1px solid var(--wp--preset--color--light-gray); }
.rv-subnav__tab:hover { background: rgba(39,72,131,.06); color: var(--wp--preset--color--navy); }
.rv-subnav__tab.is-active { background: var(--wp--preset--color--navy); color: #fff; border-color: var(--wp--preset--color--navy); }

/* Section-nav strip spans the full viewport on mobile (drop the band's side padding). */
@media (max-width: 600px) {
	.rv-subheader__inner { padding-left: 0; padding-right: 0; }
	.rv-subnav__tab:first-child { border-left: 0; }
}

/* Hero quick-links: same tab strip, centered under the hero text. */
.rv-hero-nav { margin-top: 3.5rem; }
.rv-hero-nav .rv-subnav__scroll { justify-content: center; border-top: 1px solid var(--wp--preset--color--light-gray); }
@media (max-width: 600px) {
	.rv-hero-nav { margin-top: 2.5rem; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
	/* Four fixed links → spread them evenly across the full-width strip. */
	.rv-hero-nav .rv-subnav__tab { flex: 1 1 0; text-align: center; padding-left: 0.4rem; padding-right: 0.4rem; }
	.rv-hero-nav .rv-subnav__tab:first-child { border-left: 0; }
	.rv-hero-nav .rv-subnav__tab:last-child { border-right: 0; }
}

/* ===== Sticky header with scroll behavior ===== */
/* WP wraps the header part in <header class="wp-block-template-part"> — make THAT sticky
   (the inner .rv-header alone only sticks within its 88px wrapper). */
header.wp-block-template-part { position: sticky; top: 0; z-index: 1000; background: #fff; }
/* Logged-in: offset the sticky header below the fixed WP admin bar (desktop only;
   on ≤782px the admin bar is position:absolute and scrolls away). */
@media screen and (min-width: 783px) {
	.admin-bar header.wp-block-template-part { top: 32px; }
}
.rv-header { background: #fff; }
.rv-header.rv-scrolled { box-shadow: 0 2px 14px rgba(0,0,0,.10); }
/* overflow visible at rest so the language dropdown isn't clipped; clip only while collapsing on scroll */
.rv-topbar-strip { overflow: visible; transition: max-height .25s ease, opacity .2s ease, padding .2s ease; max-height: 60px; }
.rv-header.rv-scrolled .rv-topbar-strip { overflow: hidden; max-height: 0; opacity: 0; padding-top: 0 !important; padding-bottom: 0 !important; }
/* Header logo (positive variant) — nudged down slightly (transform doesn't change the
   layout box, so the header height is unaffected) to balance the dog-tail on the "O". */
.rv-logo { display: inline-flex; align-items: center; transform: translateY(4px); }
.rv-logo img { width: 140px; height: auto; display: block; transition: width .2s ease; }
.rv-nav { transition: padding .2s ease; }
.rv-burger { transition: width .2s ease, height .2s ease; }
.rv-burger span { transition: width .2s ease, .2s; }
@media (max-width: 900px) {
	/* Smaller logo on mobile to make room for the CTA + burger */
	.rv-logo img { width: 108px; }
	/* Keep ~10px breathing room above the logo when the top bar has collapsed away. */
	.rv-header.rv-scrolled .rv-nav { padding-top: 10px !important; padding-bottom: 6px !important; }
	.rv-header.rv-scrolled .rv-logo img { width: 94px !important; }
	/* Shrink the hamburger in step with the logo (~22%). */
	.rv-header.rv-scrolled .rv-burger { width: 28px; height: 28px; gap: 4px; }
	.rv-header.rv-scrolled .rv-burger span { width: 19px; }
}

/* Breadcrumbs rendered inline just above the page title (no band) */
.rv-breadcrumbs--inline { margin: 0 0 0.45rem; }
/* Section-nav band now carries only the tabs */
.rv-subnav { margin-top: 0; }

/* ===== Facebook feed as a horizontal swiper (scroll-snap + arrows) ===== */
.rv-fb-swiper { position: relative; }
.rv-fb-swiper .fts-jal-fb-group-display {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: flex-start;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 0.5rem 0 1rem;
	margin-top: 1.2rem;
}
.rv-fb-swiper .fts-jal-fb-group-display::-webkit-scrollbar { display: none; }
.rv-fb-swiper .fts-jal-single-fb-post {
	flex: 0 0 340px !important;
	width: 340px !important;
	max-width: 82vw;
	margin: 0 !important;
	padding: 0 !important;
	scroll-snap-align: start;
	display: flex; flex-direction: column;
	border: 1px solid var(--wp--preset--color--light-gray);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}
.rv-fb-swiper .fts-jal-fb-right-wrap { display: flex; flex-direction: column; flex: 1; }
/* Hide the per-card avatar+name header AND the feed-level page-name header */
.rv-fb-swiper .fts-jal-fb-top-wrap,
.rv-fb-swiper .fts-jal-fb-header,
.rv-fb-swiper .fts-jal-fb-group-header-desc { display: none !important; }
/* Post time overlaid on the image */
.rv-fb-swiper .rv-fb-time {
	position: absolute; top: 10px; left: 10px; z-index: 2;
	background: rgba(0,0,0,.62); color: #fff !important;
	font-size: 0.72rem; padding: 0.24rem 0.6rem; border-radius: 10rem; line-height: 1; white-space: nowrap;
}
.rv-fb-swiper .rv-fb-time a { color: #fff !important; text-decoration: none; }
/* Image box (cover); show only the first photo of an album */
.rv-fb-swiper .fts-jal-fb-link-wrap { height: 240px !important; overflow: hidden; margin: 0 !important; position: relative; width: 100%; }
.rv-fb-swiper .fts-jal-fb-link-wrap a.fts-jal-fb-picture { display: block; width: 100% !important; height: 240px !important; margin: 0 !important; float: none !important; }
.rv-fb-swiper .fts-jal-fb-link-wrap a.fts-jal-fb-picture ~ a.fts-jal-fb-picture { display: none !important; }
.rv-fb-swiper .fts-jal-fb-link-wrap img { width: 100% !important; height: 240px !important; object-fit: cover !important; max-height: none !important; }
.rv-fb-swiper .slicker-facebook-album-photoshadow,
.rv-fb-swiper .fts-jal-fb-description-wrap { display: none !important; }
/* Message under the image (truncated to ~120 chars by JS) */
.rv-fb-swiper .fts-jal-fb-message { padding: 0.85rem 0.9rem 0 !important; font-size: 0.92rem; line-height: 1.45; color: #333; min-height: 3.9em; }
/* Reactions / view-on-fb pinned to the bottom */
.rv-fb-swiper .fts-likes-shares-etc-wrap { margin-top: auto; padding: 0.7rem 0.9rem !important; }
.rv-fb-arrow {
	position: absolute; top: 55%; transform: translateY(-50%); z-index: 5;
	width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
	background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.16); color: var(--wp--preset--color--navy);
	font-size: 1.4rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.rv-fb-arrow--prev { left: 8px; }
.rv-fb-arrow--next { right: 8px; }
@media (max-width: 600px) { .rv-fb-arrow { display: none; } }
