/*
 * THE OTHER PAGES IN THE HOME'S NEW LOOK (2026-10-15 light redesign). The Figma redraws only the home;
 * every other page follows its pattern (operator 2026-10-15). This layer maps the pages' existing
 * blocks onto the home's system (assets/ui.css): headings, labels, buttons, photos, the first photo
 * band, forms. Page-specific rules live in assets/restyle-*.css. The home's own sections and the
 * lbs-* components are left alone (:not([class*="lbs-"]) and the home section ids).
 *
 * Mapping, each to the home node it follows:
 *   page heading h1/h2     Geist 400, -0.03em (section titles 18:698, nerija 18:808)
 *   card heading h3/h4     Geist 500, -0.01em (card names 85:4, 18:853)
 *   small uppercase label  Inter 500, .15em, #787e8a (stat labels 18:817)
 *   button                 the pill: navy (price pill 18:862) or outline (115:253)
 *   photo                  radius 20 desktop / 16 mobile (18:802, 108:207)
 *   first photo band       the hero card: 16 in, radius 24, dark shade, light words (18:642)
 */

/* ---------- Headings ---------- */

.wp-block-post-content :is(h1, h2).has-display-font-family:not([class*="lbs-"]),
.wp-site-blocks > main :is(h1, h2).wp-block-post-title {
	font-family: var(--lbs-geist) !important;
	font-style: normal !important;
	font-weight: 400 !important;
	letter-spacing: -0.03em !important;
}
.wp-block-post-content :is(h3, h4, h5).has-display-font-family:not([class*="lbs-"]) {
	font-family: var(--lbs-geist) !important;
	font-style: normal !important;
	font-weight: 500 !important;
	letter-spacing: -0.01em !important;
}
/* A word the client makes italic is the serif accent, as on the home. */
.wp-block-post-content :is(h1, h2, h3).has-display-font-family em {
	font-family: var(--lbs-serif);
	font-style: italic;
	font-weight: 400;
	font-size: 1.06em;
	letter-spacing: 0;
}

/* ---------- Small uppercase labels (eyebrows, facts, tabs) ---------- */

.wp-block-post-content p[style*="uppercase"]:not([class*="lbs-"]),
.wp-block-post-content .wp-block-button__link[style*="uppercase"]:not([class*="lbs-"]) {
	font-family: var(--lbs-inter) !important;
}
.wp-block-post-content p[style*="uppercase"]:not([class*="lbs-"]) {
	font-weight: 500 !important;
	letter-spacing: 0.15em !important;
}
.wp-block-post-content p[style*="uppercase"].has-s-0-9-font-size:not([class*="lbs-"]),
.wp-block-post-content p[style*="uppercase"].has-s-1-10-font-size:not([class*="lbs-"]) {
	font-size: var(--lbs-t-label) !important;
}
.wp-block-post-content p[style*="uppercase"]:is(.has-mist-color, .has-sand-color, .has-c-5-a-6-b-5-e-color):not([class*="lbs-"]) {
	color: var(--lbs-grey) !important;
}

/* ---------- Buttons: the home's pill ---------- */

.wp-block-post-content .wp-block-button:not([class*="lbs-"]) > .wp-block-button__link,
.wp-block-post-content .wp-block-button:not([class*="lbs-"]) > button.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px !important;
	border-radius: 999px !important;
	font-family: var(--lbs-inter) !important;
	font-weight: 500 !important;
	font-size: 15px !important;
	line-height: 18.2px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
/* Filled (the old amber fill is navy now): navy with cream words. */
.wp-block-post-content .wp-block-button:not([class*="lbs-"]) > .wp-block-button__link.has-amber-background-color {
	background-color: var(--lbs-navy) !important;
	color: var(--lbs-cream) !important;
	border: 1px solid var(--lbs-navy) !important;
}
.wp-block-post-content .wp-block-button:not([class*="lbs-"]) > .wp-block-button__link.has-amber-background-color:hover {
	background-color: var(--lbs-ink) !important;
}
/* Outline (no fill): the "Mygtukas - kontūrinis" component. */
.wp-block-post-content .wp-block-button:not([class*="lbs-"]) > .wp-block-button__link:not(.has-background) {
	background-color: transparent !important;
	border: 1px solid rgba(30, 45, 79, 0.35) !important;
	color: var(--lbs-navy) !important;
}
.wp-block-post-content .wp-block-button:not([class*="lbs-"]) > .wp-block-button__link:not(.has-background):hover {
	border-color: var(--lbs-navy) !important;
}

/* ---------- Photos: rounded as the home's ---------- */

.wp-block-post-content .wp-block-image:not([class*="lbs-"]) img,
.wp-block-post-content .wp-block-image:not([class*="lbs-"]) > a,
.wp-block-post-content .wp-block-cover:not([class*="lbs-"]) {
	border-radius: 16px;
	overflow: hidden;
}
@media (min-width: 1024px) {
	.wp-block-post-content .wp-block-image:not([class*="lbs-"]) img,
	.wp-block-post-content .wp-block-image:not([class*="lbs-"]) > a,
	.wp-block-post-content .wp-block-cover:not([class*="lbs-"]) {
		border-radius: calc(20 * var(--u));
	}
}

/* ---------- The first photo band of a page: the home's hero card (18:641) ---------- */

.wp-block-post-content > .dc-section:first-child:has(> .wp-block-cover:first-child:not([class*="lbs-"])) {
	padding: var(--lbs-inset) var(--lbs-inset) 0 !important;
}
.wp-block-post-content > .dc-section:first-child > .wp-block-cover:first-child:not([class*="lbs-"]) {
	border-radius: 20px !important;
	overflow: hidden;
}
@media (min-width: 1024px) {
	.wp-block-post-content > .dc-section:first-child > .wp-block-cover:first-child:not([class*="lbs-"]) {
		border-radius: calc(24 * var(--u)) !important;
	}
}
/* The home hero's shade (18:643) in place of the page's own overlay colour (cream now). */
.wp-block-post-content > .dc-section:first-child > .wp-block-cover:first-child:not([class*="lbs-"]) > .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(180deg, rgba(30, 25, 20, 0.45) 0%, rgba(30, 25, 20, 0.15) 30%, rgba(30, 25, 20, 0.2) 70%, rgba(30, 25, 20, 0.55) 100%) !important;
}
/* Words on it in the hero's light (#f0e8d6, the lead #f7e8cb). */
.wp-block-post-content > .dc-section:first-child > .wp-block-cover:first-child:not([class*="lbs-"]) :is(h1, h2, h3, p, a, li) {
	color: var(--lbs-light) !important;
}
.wp-block-post-content > .dc-section:first-child > .wp-block-cover:first-child:not([class*="lbs-"]) p:not([style*="uppercase"]) {
	color: var(--lbs-warm) !important;
}
.wp-block-post-content > .dc-section:first-child > .wp-block-cover:first-child:not([class*="lbs-"]) p[style*="uppercase"] {
	color: rgba(247, 232, 203, 0.75) !important;
}
/* The header pill keeps its glass over such a band (assets/chrome.css). */
body:has(.wp-block-post-content > .dc-section:first-child > .wp-block-cover:first-child:not([class*="lbs-"])) .lbs-hdr__bar {
	background-color: rgba(38, 32, 26, 0.45);
	border-color: rgba(240, 232, 214, 0.12);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
body:has(.wp-block-post-content > .dc-section:first-child > .wp-block-cover:first-child:not([class*="lbs-"])) .wp-site-blocks > main {
	padding-top: 0;
}

/* ---------- Forms: light fields in the home's newsletter style (18:960) ---------- */

:is(.wpcf7, .woocommerce, .wc-block-components-form, .wp-block-woocommerce-checkout, .wp-block-woocommerce-cart)
	:is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="password"], input[type="search"], select):not(.lbs-nl__input) {
	background-color: rgba(255, 255, 255, 0.35) !important;
	border: 1px solid rgba(27, 42, 71, 0.15) !important;
	border-radius: 999px !important;
	color: var(--lbs-ink) !important;
	font-family: var(--lbs-inter) !important;
	font-size: 15px !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
}
:is(.wpcf7, .woocommerce, .wc-block-components-form) textarea {
	background-color: rgba(255, 255, 255, 0.35) !important;
	border: 1px solid rgba(27, 42, 71, 0.15) !important;
	border-radius: 16px !important;
	color: var(--lbs-ink) !important;
	font-family: var(--lbs-inter) !important;
	font-size: 15px !important;
	padding: 14px 20px !important;
}
:is(.wpcf7, .woocommerce, .wc-block-components-form) :is(input, textarea, select):focus {
	border-color: var(--lbs-navy) !important;
	outline: none;
}
:is(.wpcf7, .woocommerce, .wc-block-components-form) :not(.lbs-nl__input)::placeholder {
	color: var(--lbs-slate) !important;
	opacity: 1;
}
:is(.wpcf7, .woocommerce, .wc-block-components-form) select option {
	background-color: var(--lbs-cream);
	color: var(--lbs-ink);
}
.wpcf7 :is(input[type="submit"], button[type="submit"]),
.woocommerce :is(button.button, input.button, a.button) {
	border: 0 !important;
	border-radius: 999px !important;
	background-color: var(--lbs-navy) !important;
	color: var(--lbs-cream) !important;
	font-family: var(--lbs-inter) !important;
	font-weight: 500 !important;
	font-size: 15px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	padding: 15px 32px !important;
}
