/*
 * PAGES B - about, news, news-article, contact: what the blocks cannot carry.
 * Every value is read from the reference code (reference/src/pages/AboutPage.tsx, NewsPage.tsx,
 * NewsArticlePage.tsx, ContactPage.tsx, index.css). Every selector is scoped to one of those pages'
 * own section wrappers (data-dc-section), so nothing here reaches another page.
 */

/* ---------- shared: the reference's .hover-line (index.css - plain CSS, not a Tailwind hover: variant,
   so deliberately NOT inside @media (hover: hover): the reference's touch behaviour is the same) ---------- */
[data-dc-section="grp:about/div/div/main/div/div[1]/div"] .wp-block-button__link,
[data-dc-section="grp:news/div/div/main/div/div[2]/div"] .is-layout-grid:has(> figure.wp-block-image) > .wp-block-group > .wp-block-paragraph:last-child,
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wp-block-buttons:not(.wp-block-cover .wp-block-buttons) .wp-block-button__link {
	position: relative;
}
[data-dc-section="grp:about/div/div/main/div/div[1]/div"] .wp-block-button__link::after,
[data-dc-section="grp:news/div/div/main/div/div[2]/div"] .is-layout-grid:has(> figure.wp-block-image) > .wp-block-group > .wp-block-paragraph:last-child::after,
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wp-block-buttons:not(.wp-block-cover .wp-block-buttons) .wp-block-button__link::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 0;
	height: 1px;
	background: currentColor;
	transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-dc-section="grp:about/div/div/main/div/div[1]/div"] .wp-block-button__link:hover::after,
[data-dc-section="grp:news/div/div/main/div/div[2]/div"] .is-layout-grid:has(> figure.wp-block-image) > .wp-block-group > .wp-block-paragraph:last-child:hover::after,
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wp-block-buttons:not(.wp-block-cover .wp-block-buttons) .wp-block-button__link:hover::after {
	width: 100%;
}

/* ---------- shared: photo frames draw #182619 while the photo loads (all four pages) ---------- */
:is([data-dc-section^="sec:about/"], [data-dc-section^="grp:news/"], [data-dc-section^="grp:news-article/"]) figure.wp-block-image {
	background-color: #182619;
	overflow: hidden;
}
:is([data-dc-section^="sec:about/"], [data-dc-section^="grp:news/"], [data-dc-section^="grp:news-article/"]) :is(figure.wp-block-image, .wp-block-cover) img {
	background-color: #182619;
}
/* A cropped photo fills its frame at any width: without a width it is drawn at its sizes width, which
   stops growing at the last band, and the frame's colour showed beside it on wide screens (client 2026-10-28). */
:is([data-dc-section^="sec:about/"], [data-dc-section^="grp:news/"], [data-dc-section^="grp:news-article/"]) figure.wp-block-image img[style*="aspect-ratio"] { /* also inside the AVIF <picture> (inc/perf.php) */
	width: 100%;
}

/* ---------- shared: the scrolling tab / anchor rows (about section nav, news categories) ----------
   Reference: overflowX auto on the padded row, flex gap-6 md:gap-8, every item flex-shrink-0. */
:is([data-dc-section="grp:about/div/div/main/div/div[1]/div"], [data-dc-section="grp:news/div/div/main/div/div[1]/div"]) > .wp-block-group {
	overflow-x: auto;
	scrollbar-width: none;
}
:is([data-dc-section="grp:about/div/div/main/div/div[1]/div"], [data-dc-section="grp:news/div/div/main/div/div[1]/div"]) > .wp-block-group::-webkit-scrollbar {
	display: none;
}
:is([data-dc-section="grp:about/div/div/main/div/div[1]/div"], [data-dc-section="grp:news/div/div/main/div/div[1]/div"]) > .wp-block-group > :is(.wp-block-buttons, .wp-block-group) {
	flex-wrap: nowrap;
	margin: 0;
}
:is([data-dc-section="grp:about/div/div/main/div/div[1]/div"], [data-dc-section="grp:news/div/div/main/div/div[1]/div"]) > .wp-block-group > :is(.wp-block-buttons, .wp-block-group) > * {
	flex-shrink: 0;
	margin: 0;
}

/* ---------- shared: hero labels ("Apie mus", article category) ----------
   The reference's label is an inline <span> on a 24px line, so its glyphs sit 3px higher above the
   title than a 15px block paragraph's; shifted visually, the layout box is unchanged. */
:is([data-dc-section="grp:about/div/div/main/div/div[0]"], [data-dc-section="grp:news-article/div/div/main/div/div[0]"]) .wp-block-cover p:has(+ h1) {
	position: relative;
	top: -3px;
}

/* ---------- shared: the hairline under the news title, the news categories and the about nav ----------
   Drawn on the section wrapper (the reference's own padded row), not on the inner group. */
:is([data-dc-section="grp:news/div/div/main/div/div[0]/div"], [data-dc-section="grp:news/div/div/main/div/div[1]/div"], [data-dc-section="grp:about/div/div/main/div/div[1]/div"]) {
	border-bottom: 1px solid rgba(240, 232, 214, 0.08);
}
:is([data-dc-section="grp:news/div/div/main/div/div[0]/div"], [data-dc-section="grp:news/div/div/main/div/div[1]/div"], [data-dc-section="grp:about/div/div/main/div/div[1]/div"]) > .wp-block-group {
	border-bottom: 0 !important;
}

/* ---------- shared: page titles (news "Zurnalas", contact "Kontaktai") ----------
   The label is an inline span on a 24px line, the h1 has mt-2: the h1 starts 32px under the
   line top, one pixel more than the 6px + 15px label + 10px gap of the block layout. */
:is([data-dc-section="grp:news/div/div/main/div/div[0]/div"], [data-dc-section="grp:contact/div/div/main/div/div[0]/div"]) p:has(+ h1) {
	margin-bottom: 1px !important;
}

/* ================= ABOUT ================= */
/* Hero: img saturate(0.5) under linear-gradient(to bottom, rgba(14,24,18,0.2), rgba(14,24,18,0.85)). */
[data-dc-section="grp:about/div/div/main/div/div[0]"] .wp-block-cover__image-background {
	filter: saturate(0.5);
}
[data-dc-section="grp:about/div/div/main/div/div[0]"] .wp-block-cover__background {
	background: linear-gradient(to bottom, rgba(14, 24, 18, 0.2) 0%, rgba(14, 24, 18, 0.85) 100%) !important;
	opacity: 1 !important;
}
/* Section nav: the link is the whole row height (label-xs, 15px line), not a 21px inline line box. */
[data-dc-section="grp:about/div/div/main/div/div[1]/div"] .wp-block-button {
	display: flex;
}
[data-dc-section="grp:about/div/div/main/div/div[1]/div"] .wp-block-button__link {
	display: block;
	background: transparent !important;
	transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), outline-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), text-decoration-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), fill 0.2s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
/* The anchors land on the section top, as the reference's section ids do. */
[data-dc-section^="sec:about/div/div/main/div/section["] {
	scroll-margin-top: 0;
}
/* Photos: 01 Istorija and 02 Vieta saturate(0.55), 03 Zmones saturate(0.5) grayscale(0.3), 04 Gamyba saturate(0.6). */
[data-dc-section="sec:about/div/div/main/div/section[0]"] .wp-block-cover {
	background-color: #182619;
}
:is([data-dc-section="sec:about/div/div/main/div/section[0]"], [data-dc-section="sec:about/div/div/main/div/section[1]"]) img {
	filter: saturate(0.55);
}
[data-dc-section="sec:about/div/div/main/div/section[2]"] img {
	filter: saturate(0.5) grayscale(0.3);
}
[data-dc-section="sec:about/div/div/main/div/section[3]"] img {
	filter: saturate(0.6);
}

/* "Algirdas Jonaitis · 1947" badge: label-xs at 9px keeps the 13.5px (1.5) line. */
[data-dc-section="sec:about/div/div/main/div/section[0]"] .wp-block-cover__inner-container p {
	/* An inline span on a 24px line (py-3 box 48px tall): the glyphs sit 8px below the line top. */
	line-height: 13.5px !important;
	margin: 8px 0 2.5px !important;
}
/* 02 Vieta, 03 Zmones, 06 Tvarumas: the label is an inline span on a 24px line and the heading has
   mt-2, so the heading starts 32px under the line top - 11px under the 15px label, not 10. */
:is([data-dc-section="sec:about/div/div/main/div/section[1]"], [data-dc-section="sec:about/div/div/main/div/section[2]"], [data-dc-section="sec:about/div/div/main/div/section[4]"]) p:has(+ h2) {
	margin-bottom: 11px !important;
}
/* "Musu komanda" and "Gamta - musu partneris": text-3xl md:text-4xl with Tailwind's own leading
   (36px at 30px, 40px at 36px), not the 1.15 of the other about headings. */
:is([data-dc-section="sec:about/div/div/main/div/section[2]"], [data-dc-section="sec:about/div/div/main/div/section[4]"]) h2 {
	line-height: 36px !important;
}
@media (min-width: 768px) {
	:is([data-dc-section="sec:about/div/div/main/div/section[2]"], [data-dc-section="sec:about/div/div/main/div/section[4]"]) h2 {
		line-height: 40px !important;
	}
}

/* 02 Vieta and 04 Gamyba: the section itself carries #0a100c, as the reference's <section> does. */
:is([data-dc-section="sec:about/div/div/main/div/section[1]"], [data-dc-section="sec:about/div/div/main/div/section[3]"]) {
	background-color: #0a100c;
}

/* ================= NEWS ================= */
/* Cards: saturate(0.55) photos that zoom to 1.05 over 700ms on hover, titles fade to 0.7. */
[data-dc-section="grp:news/div/div/main/div/div[2]/div"] img {
	filter: saturate(0.55);
	transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), translate 0.7s cubic-bezier(0.4, 0, 0.2, 1), scale 0.7s cubic-bezier(0.4, 0, 0.2, 1), rotate 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-dc-section="grp:news/div/div/main/div/div[2]/div"] :is(.is-layout-grid:has(> figure.wp-block-image), .is-layout-grid > .wp-block-group:has(> figure.wp-block-image)) {
	cursor: pointer;
}
@media (hover: hover) {
	[data-dc-section="grp:news/div/div/main/div/div[2]/div"] :is(.is-layout-grid:has(> figure.wp-block-image), .is-layout-grid > .wp-block-group:has(> figure.wp-block-image)):hover img {
		scale: 1.05;
	}
}
[data-dc-section="grp:news/div/div/main/div/div[2]/div"] :is(h2, h3) {
	transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) {
	[data-dc-section="grp:news/div/div/main/div/div[2]/div"] :is(.is-layout-grid:has(> figure.wp-block-image), .is-layout-grid > .wp-block-group:has(> figure.wp-block-image)):hover :is(h2, h3) {
		opacity: 0.7;
	}
}
[data-dc-section="grp:news/div/div/main/div/div[2]/div"] .is-layout-grid:has(> figure.wp-block-image) > .wp-block-group > .wp-block-paragraph:last-child {
	width: fit-content;
}
/* Divider: the reference's 1px border-top rgba(240,232,214,0.08), not a 2px rule. */
[data-dc-section="grp:news/div/div/main/div/div[2]/div"] hr.wp-block-separator {
	border: 0;
	border-top: 1px solid rgba(240, 232, 214, 0.08);
	height: 0;
	background: none !important;
	opacity: 1;
	margin-left: 0;
	margin-right: 0;
}

/* ================= NEWS ARTICLE ================= */
/* Hero: img saturate(0.5) under linear-gradient(to bottom, rgba(14,24,18,0.4), rgba(14,24,18,0.85)). */
[data-dc-section="grp:news-article/div/div/main/div/div[0]"] .wp-block-cover__image-background {
	filter: saturate(0.5);
}
[data-dc-section="grp:news-article/div/div/main/div/div[0]"] .wp-block-cover__background {
	background: linear-gradient(to bottom, rgba(14, 24, 18, 0.4) 0%, rgba(14, 24, 18, 0.85) 100%) !important;
	opacity: 1 !important;
}
/* Back link: ivory at opacity 0.6, 1 on hover (150ms), 16px above the category label. */
[data-dc-section="grp:news-article/div/div/main/div/div[0]"] .wp-block-buttons {
	margin-bottom: 16px;
}
[data-dc-section="grp:news-article/div/div/main/div/div[0]"] .wp-block-button {
	display: flex;
}
[data-dc-section="grp:news-article/div/div/main/div/div[0]"] .wp-block-button__link {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #f0e8d6 !important;
	opacity: 0.6;
	transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	top: -1px;
}
@media (hover: hover) {
	[data-dc-section="grp:news-article/div/div/main/div/div[0]"] .wp-block-button__link:hover {
		opacity: 1;
	}
}
/* Meta row separators: a 16px / 24px line, as the reference's bare <span>. */
[data-dc-section="grp:news-article/div/div/main/div/div[0]"] h1 + .wp-block-group > .wp-block-paragraph:not(.has-s-0-9-font-size),
[data-dc-section="grp:news/div/div/main/div/div[2]/div"] .is-nowrap > .wp-block-paragraph.has-reed-color,
[data-dc-section="grp:news/div/div/main/div/div[2]/div"] .is-layout-flex > .wp-block-paragraph.has-reed-color {
	line-height: 24px !important;
}

/* ================= CONTACT ================= */
/* Map: the photo at opacity 0.4, saturate(0.3), on #182619 - no overlay colour. */
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wp-block-cover {
	background-color: #182619;
}
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wp-block-cover__image-background {
	opacity: 0.4;
	filter: saturate(0.3);
}
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wp-block-cover__background {
	opacity: 0 !important;
	/* the reference card has no overlay layer at all: remove the invisible one from the box tree */
	display: none;
}
/* The reference lays the pin, place name and link in an absolute inset-0 flex column centred over
   the photo (a 485x278 layer inside the 1px border), not a padded 452px column. Same geometry here,
   so every layer of the card has its reference twin. */
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wp-block-cover > .wp-block-cover__inner-container {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: auto;
	max-width: none;
	margin: 0;
}
/* the pin (w-3 h-3): a 12px circle and a direct item of the centred column, as in the reference -
   its one-item row wrapper generates no box of its own */
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wp-block-cover__inner-container > .wp-block-group:has(> .has-amber-background-color:only-child) {
	display: contents;
}
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wp-block-cover__inner-container > .wp-block-group > .has-amber-background-color {
	width: 12px;
}
/* "Atidaryti zemelapyje": hover:opacity-70 with transition-colors duration-200. */
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wp-block-cover .wp-block-button__link {
	text-align: left;
	/* transition-colors duration-200: the hover opacity itself is not animated. */
	transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), outline-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), text-decoration-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), fill 0.2s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) {
	[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wp-block-cover .wp-block-button__link:hover {
		opacity: 0.7;
	}
}
/* Social links: flex gap-5, each a 15px label-xs line (not a 21px inline line box). */
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wp-block-buttons:not(.wp-block-cover .wp-block-buttons) .wp-block-button {
	display: flex;
}
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wp-block-buttons:not(.wp-block-cover .wp-block-buttons) .wp-block-button__link {
	display: block;
	background: transparent !important;
}

/* Form: flex-col gap-6; row 1 grid-cols-1 md:grid-cols-2 gap-6; each field flex-col gap-2. */
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form > .is-layout-flow {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form > .is-layout-flow > *,
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form .wp-block-columns,
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form .wp-block-column,
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form p {
	margin: 0 !important;
	padding: 0;
}
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form .wp-block-columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}
@media (min-width: 768px) {
	[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form .wp-block-columns:has(> .wp-block-column + .wp-block-column) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form .wp-block-column {
	min-width: 0;
	flex-basis: auto !important;
}
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form label {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form label > span:first-child {
	display: block;
	font-size: var(--lbs-t-label);
	line-height: 13.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 500;
	color: #5a6b5e;
}
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form .wpcf7-form-control-wrap {
	display: block;
}
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form :is(input[type="text"], input[type="email"], select, textarea) {
	display: block;
	width: 100%;
	margin: 0;
	background: transparent;
	border: 1px solid rgba(240, 232, 214, 0.15);
	border-radius: 0;
	padding: 14px 16px;
	font-size: var(--lbs-t-field);
	line-height: 20px;
	color: #f0e8d6;
	box-sizing: border-box;
	transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
/* focus:outline-none, and no focus colour: the reference keeps the same border. */
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form :is(input, select, textarea):focus {
	outline: none;
	border-color: rgba(240, 232, 214, 0.15);
}
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form :is(input, select, textarea).wpcf7-not-valid {
	border-color: rgba(240, 232, 214, 0.15);
}
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form select {
	appearance: none;
	-webkit-appearance: none;
	background-image: none;
	height: 50px;
}
/* The select shows its placeholder in #5a6b5e until a topic is chosen. */
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form select:has(option[value=""]:checked) {
	color: #5a6b5e !important;
}
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form select option {
	background: #0e1812;
	color: #f0e8d6;
}
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form input:not([type="hidden"]) {
	height: 50px;
	min-height: 0;
}
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form textarea {
	resize: none;
	height: 150px;
	min-height: 0;
}
/* Tailwind preflight placeholder: currentColor at 50%. */
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form ::placeholder {
	color: color-mix(in oklab, currentColor 50%, transparent);
	opacity: 1;
}
/* Submit: self-start px-10 py-4 label-xs (10px, 15px line, 0.2em). */
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form button[type="submit"] {
	display: block;
	align-self: flex-start;
	margin: 0;
	padding: 16px 40px;
	font-size: var(--lbs-t-ui);
	line-height: 15px;
	letter-spacing: 0.2em;
	font-weight: 500;
	text-transform: uppercase;
	background: #c08b52;
	color: #0e1812;
	border: 0;
	border-radius: 0;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
/* CF7's spinner and messages take no room until they are used. */
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form p:has(> button[type="submit"]) {
	display: flex;
	align-items: center;
}
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form .wpcf7-spinner {
	position: absolute;
	margin-left: 195px;
}
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form .wpcf7-response-output:empty,
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form.init .wpcf7-response-output {
	display: none;
}
[data-dc-section="grp:contact/div/div/main/div/div[1]/div"] .wpcf7-form .wpcf7-not-valid-tip {
	font-size: var(--lbs-t-meta);
	line-height: 16px;
	color: #c08b52;
	margin-top: 8px;
}

/* ---------- about: the third Vieta paragraph wraps where the reference renders it ----------
   The reference serves DM Sans split so that its Lithuanian letters (č, š, ž) come from a wider
   fallback subset; "Čia paukščiai ... kopos" measures 273.52px there against 272.81px here, so at
   390 the reference cannot fit "egzistuoja" on line one (342.29 > 342) and wraps to 3 lines where
   this build fitted 2 (341.58 <= 342). The rendered reference is the design: the measure is 1px
   narrower on the stacked (mobile) layout, which breaks line one before "egzistuoja" exactly as
   the reference does and changes nothing else (line two, 333.69px, still fits). */
@media (max-width: 781px) {
	[data-dc-section="sec:about/div/div/main/div/section[1]"] .wp-block-columns + .wp-block-columns > .wp-block-column:last-child > p {
		max-width: calc(100% - 1px);
	}
}
