/* „Apie mane“ – Beaver Builder page design. Reference: docs/apie-mane/HANDOFF.md, docs/apie-mane/mockup.html.
   Every row carries the class mv-apie plus a section class; columns and modules carry mv-* classes (set in the
   editor under Advanced → CSS Class). Selectors are wrapped in :where() so they beat Beaver Builder's global
   defaults but lose to the per-node rules the editor writes when the client changes a setting.
   The press cards themselves are styled in spauda.css. */

body.mv-apie-page #content.site-content {
	background: #f9f6ed;
}

.fl-row.mv-apie {
	--mv-ink: #510000;
	--mv-accent: #f4af14;
	--mv-accent-hover: #ffd577;
	--mv-butter: #ffd577;
	--mv-peach: #ffc2b0;
	--mv-cream: rgba(249, 246, 237, .85);
	--mv-ground: #f9f6ed;
	--mv-eyebrow: rgba(81, 0, 0, .7);
	--mv-line: rgba(81, 0, 0, .10);
	font-family: 'Work Sans', sans-serif;
	color: var(--mv-ink);
	-webkit-font-smoothing: antialiased;
}

/* Fixed-width rows keep 24px side gutters below 1248px; the full-width strip does the same for its content. */
div.fl-row:where(.mv-apie.fl-row-fixed-width) {
	width: calc(100% - 48px);
}
:where(.mv-strip) div.fl-row-content-wrap > div.fl-row-content {
	flex: 0 1 auto; /* BB lets the content grow to the full wrap width */
	width: calc(100% - 48px);
}

/* Typography */
:where(.mv-eyebrow) div.fl-rich-text p,
:where(.mv-strip-label) div.fl-rich-text p {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mv-eyebrow);
}
:where(.mv-strip-label) div.fl-rich-text p {
	font-size: 13px;
}
:where(.mv-h1) :is(h1, h2, h3, h4, h5, h6).fl-heading,
:where(.mv-h2) :is(h1, h2, h3, h4, h5, h6).fl-heading,
:where(.mv-fact-value) :is(h1, h2, h3, h4, h5, h6).fl-heading {
	margin: 0;
	font-family: inherit;
	color: inherit;
	text-transform: none;
	font-weight: 700;
}
:where(.mv-h1) :is(h1, h2, h3, h4, h5, h6).fl-heading {
	font-size: clamp(42px, 5.5vw, 64px);
	line-height: 1.02;
	letter-spacing: -.02em;
}
:where(.mv-h2) :is(h1, h2, h3, h4, h5, h6).fl-heading {
	font-size: clamp(30px, 3.4vw, 40px);
	line-height: 1.12;
	letter-spacing: -.015em;
}
:where(.mv-h2--sm) :is(h1, h2, h3, h4, h5, h6).fl-heading {
	font-size: 28px;
	line-height: 1.2;
	letter-spacing: 0;
}
:where(.mv-lead) div.fl-rich-text p {
	margin: 0;
	max-width: 520px;
	font-size: clamp(18px, 1.6vw, 20px);
	line-height: 1.55;
}
:where(.mv-text) div.fl-rich-text p {
	margin: 0;
	font-size: 18px;
	line-height: 1.7;
}
:where(.mv-text) div.fl-rich-text p + p {
	margin-top: 20px;
}
:where(.mv-text--sm) div.fl-rich-text p {
	font-size: 16px;
	line-height: 1.65;
}
:where(.mv-signature) div.fl-rich-text p {
	margin: 0;
	font-family: 'Aguafina Script', cursive;
	font-size: 40px;
	font-weight: 400;
	line-height: 1;
}

/* Button groups: the first button is filled, the others outlined. Each rule also lists a:visited, because
   Beaver Builder paints visited button links grey with a rule that outranks the normal-state one; colours are
   written literally because browsers may ignore var() inside :visited rules. */
.fl-builder-content :where(.mv-btns) div.fl-button-group-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.fl-builder-content :where(.mv-btns) div.fl-button-group-button,
.fl-builder-content :where(.mv-btns) div.fl-button-wrap {
	margin: 0;
}
.fl-builder-content :where(.mv-btns) div > a.fl-button,
.fl-builder-content :where(.mv-btns) div > a.fl-button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 26px;
	border: 1.5px solid #f4af14;
	border-radius: 999px;
	background: #f4af14;
	color: #510000;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.fl-builder-content :where(.mv-btns) div > a.fl-button :where(span.fl-button-text),
.fl-builder-content :where(.mv-btns) div > a.fl-button:visited :where(span.fl-button-text) {
	color: inherit;
}
.fl-builder-content :where(.mv-btns) div > a.fl-button:hover,
.fl-builder-content :where(.mv-btns) div > a.fl-button:focus-visible {
	background: var(--mv-accent-hover);
	border-color: var(--mv-accent-hover);
	color: #510000;
}
.fl-builder-content :where(.mv-btns .fl-button-group-button:not(:first-child)) div > a.fl-button,
.fl-builder-content :where(.mv-btns .fl-button-group-button:not(:first-child)) div > a.fl-button:visited {
	background: transparent;
	border-color: #510000;
	color: #510000;
}
.fl-builder-content :where(.mv-btns .fl-button-group-button:not(:first-child)) div > a.fl-button:hover,
.fl-builder-content :where(.mv-btns .fl-button-group-button:not(:first-child)) div > a.fl-button:focus-visible {
	background: #510000;
	border-color: #510000;
	color: #f9f6ed;
}
.fl-builder-content :where(.mv-btns--lg) div > a.fl-button,
.fl-builder-content :where(.mv-btns--lg) div > a.fl-button:visited {
	min-height: 52px;
	padding: 0 28px;
}
.fl-builder-content :where(.mv-btns--dark .fl-button-group-button:not(:first-child)) div > a.fl-button,
.fl-builder-content :where(.mv-btns--dark .fl-button-group-button:not(:first-child)) div > a.fl-button:visited {
	border-color: #ffd577;
	color: #ffd577;
}
.fl-builder-content :where(.mv-btns--dark .fl-button-group-button:not(:first-child)) div > a.fl-button:hover,
.fl-builder-content :where(.mv-btns--dark .fl-button-group-button:not(:first-child)) div > a.fl-button:focus-visible {
	background: #ffd577;
	border-color: #ffd577;
	color: #510000;
}

/* 1. Hero: arched photo on a butter backdrop with the address card */
:where(.mv-hero-media) div.fl-col-content {
	position: relative;
	max-width: 460px;
	margin: 0 auto;
}
:where(.mv-hero-photo) .fl-photo {
	position: relative;
	text-align: left;
}
:where(.mv-hero-photo) .fl-photo::before {
	content: "";
	position: absolute;
	inset: 28px -18px -18px 28px;
	border-radius: 240px 240px 28px 28px;
	background: var(--mv-butter);
}
:where(.mv-hero-photo) div.fl-photo-content {
	position: relative;
	display: block;
	width: 100%;
}
:where(.mv-hero-photo) div.fl-photo-content img.fl-photo-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 240px 240px 28px 28px;
}
.fl-module.mv-hero-badge {
	position: absolute;
	left: -22px;
	bottom: 44px;
	z-index: 1;
}
:where(.mv-hero-badge) div.fl-rich-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 18px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(81, 0, 0, .12);
}
:where(.mv-hero-badge) div.fl-rich-text p {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}
:where(.mv-hero-badge) div.fl-rich-text p:first-child {
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--mv-eyebrow);
}

/* 2. „Apie mus rašė“ strip: a bulleted list rendered as one line of outlet names, alternating the brand's
   Satoshi bold with Work Sans italic */
:where(.mv-strip) > div.fl-row-content-wrap {
	border-top: 1px solid var(--mv-line);
	border-bottom: 1px solid var(--mv-line);
}
:where(.mv-outlets) div.fl-rich-text ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-end;
	gap: 12px 40px;
	color: rgba(81, 0, 0, .85);
}
:where(.mv-outlets) div.fl-rich-text li {
	margin: 0;
	padding: 0;
	font-family: satoshi, 'Work Sans', sans-serif;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -.01em;
}
:where(.mv-outlets) div.fl-rich-text li:nth-child(even) {
	font-family: 'Work Sans', sans-serif;
	font-size: 21px;
	font-style: italic;
	font-weight: 500;
	letter-spacing: 0;
}

/* 3. Story photos */
:where(.mv-photo) .fl-photo {
	text-align: left;
}
:where(.mv-photo) div.fl-photo-content {
	display: block;
	width: 100%;
}
:where(.mv-photo) div.fl-photo-content img.fl-photo-img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 28px;
}
:where(.mv-photo--tall) div.fl-photo-content img.fl-photo-img {
	aspect-ratio: 4 / 5;
}
:where(.mv-photo--square) div.fl-photo-content img.fl-photo-img {
	aspect-ratio: 1 / 1;
}

/* Boxed rows (quote, CTA, newsletter): background and padding come from the row settings, the rounding from here */
:where(.mv-box) > div.fl-row-content-wrap {
	border-radius: 32px;
}
:where(.mv-newsletter) > div.fl-row-content-wrap {
	border: 1px solid var(--mv-line);
	border-radius: 28px;
}
:where(.mv-quote-text) div.fl-rich-text p {
	margin: 0;
	max-width: 900px;
	font-size: clamp(24px, 2.8vw, 34px);
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: -.01em;
}
:where(.mv-cta) div.fl-row-content {
	color: var(--mv-ground);
}
:where(.mv-cta .mv-h2) :is(h1, h2, h3, h4, h5, h6).fl-heading {
	color: var(--mv-ground);
}
:where(.mv-cta .mv-text) div.fl-rich-text p {
	color: var(--mv-cream);
	line-height: 1.65;
}
:where(.mv-cta .mv-signature) div.fl-rich-text p {
	font-size: 44px;
	color: var(--mv-butter);
}

/* 4. Facts: four cells with hairlines */
:where(.mv-facts) div.fl-row-content {
	background: #fff;
	border: 1px solid rgba(81, 0, 0, .12);
	border-radius: 24px;
	overflow: hidden;
}
:where(.mv-fact) div.fl-col-content {
	gap: 6px;
	padding: 28px;
}
:where(.mv-fact:not(:first-child)) div.fl-col-content {
	border-left: 1px solid rgba(81, 0, 0, .12);
}
:where(.mv-fact-value) :is(h1, h2, h3, h4, h5, h6).fl-heading {
	font-size: clamp(28px, 2.6vw, 36px);
	line-height: 1.1;
}
:where(.mv-fact-label) div.fl-rich-text p {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

/* Editor hint when the press module has no cards yet */
.mv-spauda__empty {
	padding: 24px;
	border: 1px dashed rgba(81, 0, 0, .3);
	border-radius: 16px;
	font-size: 15px;
}

/* Phone */
@media (max-width: 768px) {
	:where(.mv-outlets) div.fl-rich-text ul {
		justify-content: flex-start;
		gap: 8px 24px;
	}
	:where(.mv-outlets) div.fl-rich-text li {
		font-size: 19px;
	}
	:where(.mv-outlets) div.fl-rich-text li:nth-child(even) {
		font-size: 18px;
	}
	:where(.mv-fact:not(:first-child)) div.fl-col-content {
		border-left: 0;
		border-top: 1px solid rgba(81, 0, 0, .12);
	}
	/* Beaver Builder zeroes every stacked column's side padding on phones (.fl-col[data-node] .fl-col-content), so this one has to outrank it */
	.fl-col.mv-fact[data-node] div.fl-col-content {
		padding: 22px 24px;
	}
	:where(.mv-box) > div.fl-row-content-wrap {
		border-radius: 24px;
	}
	:where(.mv-newsletter) > div.fl-row-content-wrap {
		border-radius: 22px;
	}
}
