/* ==========================================================================
   Šilalės meno mokykla: theme styles
   Source of truth: approved design (2026-11-20), inline styles converted
   to tokens and components.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--green: #237A2C;
	--green-2: #71AD27;     /* header underline */
	--ink: #14201A;
	--ink-2: #33423A;       /* body copy secondary */
	--ink-3: #4A5A51;       /* meta, breadcrumbs */
	--bg: #F2F8EC;
	--bg-2: #E9F0E6;
	--line: #CFD5C9;
	--line-2: #E3E6DF;
	--white: #FFFFFF;
	--accent: #C8421C;
	--focus: #C8421C;

	--serif: 'DM Serif Display', Georgia, serif;
	--sans: Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;

	--wrap: 1240px;
	--gutter: 24px;
	--r-sm: 10px;
	--r: 18px;
	--r-lg: 24px;
	--r-xl: 28px;
	--shadow: 0 16px 34px rgba(20, 32, 26, .14);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
svg { flex: none; }
a { color: var(--green); }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.1; }
p { margin: 0; }
button { font: inherit; color: inherit; }
main { display: block; }
main:focus { outline: none; }
table { border-collapse: collapse; }

a, button, summary {
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .25s ease, transform .25s ease;
}
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.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;
}
.skip {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--green); color: var(--white) !important;
	padding: 12px 18px; font: 600 16px var(--sans);
}
.skip:focus { left: 8px; top: 8px; }

.container { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 44px; padding: 0 20px; border-radius: 999px;
	font-weight: 600; text-decoration: none; border: 0; cursor: pointer;
}
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--green { background: var(--green); color: var(--white); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--outline { color: var(--ink); border: 2px solid var(--ink); background: transparent; }
.btn--lg.btn--outline { min-height: 52px; padding: 0 28px; }
.btn--accent:hover, .btn--green:hover { color: var(--white); }
.btn--white:hover, .btn--outline:hover { color: var(--ink); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20, 32, 26, .2); }
.btn:active { transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn svg { transition: transform .25s ease; }
.btn:hover svg { transform: translateX(5px); }

/* ---------- Utility bar ---------- */
.topbar { background: var(--green); color: var(--white); font-size: 14px; }
.topbar__in { min-height: 44px; display: flex; align-items: center; justify-content: flex-end; }
.topbar__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.topbar a, .topbar button { color: var(--white); text-decoration: none; }
.topbar__icon { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.topbar__link {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
	background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px;
}
.topbar a:hover, .topbar button:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.topbar :focus-visible { outline-color: var(--white); }
/* Phones: icons only, one row (labels stay for screen readers). */
@media (max-width: 900px) {
	.topbar__links { flex-wrap: nowrap; gap: 4px; justify-content: flex-end; }
	.topbar__link { min-width: 44px; justify-content: center; }
	.topbar__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Header ---------- */
.header { background: var(--white); border-bottom: 4px solid var(--green-2); }
.header__in {
	position: relative; padding-top: 14px; padding-bottom: 14px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
}
.logo { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; min-height: 48px; }
.logo__img { width: 68px; height: 68px; object-fit: contain; flex: none; }
@media (max-width: 600px) { .logo__img { width: 52px; height: 52px; } }
.logo span { font-family: var(--serif); font-size: 20px; line-height: 1.1; }
.logo:hover { color: var(--green); }

.nav { font-weight: 500; }
.nav__list, .nav__sub { list-style: none; margin: 0; padding: 0; }
.nav .nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
/* Red hover line only on items without a dropdown: there the opening dropdown (green top edge) is the hover cue. */
.nav .nav__list > .nav__item:not(.has-sub) > .nav__link:not(.btn):not([aria-current]):hover { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.nav .nav__list > .nav__item > .nav__link[aria-current]:not(.btn) { box-shadow: inset 0 -3px 0 var(--green); font-weight: 600; }
/* Menu item with CSS class "btn btn--accent" in Appearance > Menus. */
.nav .btn, .nav-mob .btn { padding: 0 20px; color: var(--white); }

/* Submenu toggle: a separate button, so the parent item stays a normal link. */
.nav__toggle {
	flex: none; width: 28px; height: 44px; margin-left: 2px; padding: 0; border: 0; border-radius: var(--r-sm);
	background: none; color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.nav__toggle svg { transition: transform .15s ease; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__toggle:hover { color: var(--accent); }
/* Narrow desktops: keep the menu on one line as long as possible. */
@media (max-width: 1120px) {
	.nav .nav__list { column-gap: 14px; }
	.nav .nav__list > .nav__item > .nav__toggle { width: 22px; margin-left: 0; }
}
@media (max-width: 960px) { .nav .nav__list { column-gap: 8px; } }

/* ---- Desktop dropdowns ---- */
.nav .nav__sub {
	position: absolute; top: 100%; left: -14px; z-index: 70; min-width: 260px; max-width: 340px; padding: 8px;
	background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--green-2); border-radius: 0 0 var(--r-sm) var(--r-sm);
	box-shadow: 0 16px 30px rgba(20, 32, 26, .16);
	visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
/* Long lists (e.g. Administracinė informacija) in two columns. */
/* Filled column by column, so the visual order matches the keyboard order. */
.nav .nav__sub--cols {
	display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 8), auto); grid-template-columns: repeat(2, minmax(290px, 1fr));
	column-gap: 8px; min-width: 610px; max-width: none;
}
.nav .nav__sub.is-right { left: auto; right: -14px; }
.nav .nav__item.is-open > .nav__sub { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
@media (hover: hover) {
	.nav .nav__item:not(.no-hover):hover > .nav__sub { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
}
.nav .nav__sub .nav__item { align-items: stretch; }
.nav .nav__sub .nav__link {
	flex: 1; min-height: 40px; padding: 8px 12px; border-radius: 8px; line-height: 1.3; font-weight: 500;
}
.nav .nav__sub .nav__link:hover { background: var(--bg); color: var(--ink); }
.nav .nav__sub .nav__link[aria-current] { background: var(--bg); color: var(--green); font-weight: 600; }
.nav .nav__sub .nav__item.has-sub > .nav__link { border-radius: 8px 0 0 8px; }
.nav .nav__sub .nav__toggle { height: auto; min-height: 40px; width: 36px; margin: 0; border-radius: 0 8px 8px 0; }
.nav .nav__sub .nav__toggle svg { transform: rotate(-90deg); }
.nav .nav__sub .nav__item.is-open > .nav__toggle, .nav .nav__sub .nav__item:hover > .nav__toggle { background: var(--bg); }
/* Third level and deeper: fly out to the side. */
.nav .nav__sub .nav__sub { top: -9px; left: 100%; border-top-width: 1px; border-radius: var(--r-sm); }
.nav .nav__sub .nav__sub.is-right { left: auto; right: 100%; }

.nav-mob { display: none; }
.nav-mob summary { cursor: pointer; list-style: none; }
.nav-mob summary::-webkit-details-marker { display: none; }

@media (max-width: 900px) {
	.nav { display: none; }
	/* Zero-size flex item on the logo row: no extra row (and gap) under the logo. */
	.nav-mob { display: block; width: 0; height: 0; }
	.nav-mob summary {
		position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
		width: 48px; height: 48px; border-radius: 999px; border: 2px solid var(--ink);
		display: flex; align-items: center; justify-content: center;
	}
	.nav-mob[open] summary { background: var(--ink); color: var(--white); }
	/* Opens over the page content instead of pushing it down. */
	.nav-mob__list {
		position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60;
		display: flex; flex-direction: column; padding: 8px var(--gutter) 16px; font-weight: 500; font-size: 18px;
		background: var(--white); border-bottom: 4px solid var(--green-2); box-shadow: 0 16px 30px rgba(20, 32, 26, .18);
		max-height: calc(100vh - 140px); overflow-y: auto;
	}
	.nav-mob__list .nav__list { display: flex; flex-direction: column; }
	.nav-mob__list .nav__item { flex-wrap: wrap; }
	.nav-mob__list .nav__link { min-height: 48px; display: flex; flex: 1; }
	.nav-mob__list .nav__link[aria-current]:not(.btn) { color: var(--green); font-weight: 600; }
	.nav-mob__list .btn { flex: none; align-self: flex-start; margin-top: 8px; min-height: 44px; }
	/* 42px circle inside the 48px row: neighbouring buttons keep a visible gap. */
	.nav-mob__list .nav__list { gap: 4px; }
	.nav-mob__list .nav__toggle { width: 42px; height: 42px; margin: 3px 0 3px 8px; border: 2px solid var(--line); border-radius: 999px; }
	/* Submenus open in place (accordion), indented one step per level. */
	.nav-mob__list .nav__sub { display: none; flex-basis: 100%; margin: 0 0 6px 6px; padding-left: 14px; border-left: 2px solid var(--line); font-size: 17px; }
	.nav-mob__list .nav__item.is-open > .nav__sub { display: block; }
	.nav-mob__list .nav__sub .nav__link { min-height: 44px; }
}

/* ---------- Page heading band ---------- */
.page-hero { background: var(--bg); }
.page-hero__in { padding-top: 40px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.page-hero__title { font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.02em; max-width: 900px; overflow-wrap: anywhere; }
.page-hero__lead { font-size: 20px; color: var(--ink-2); max-width: 760px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Page body: content + side navigation ---------- */
.page-body { background: var(--white); }
.page-body__in { padding-top: 56px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 64px; }
.content { flex: 999 1 560px; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 28px; }
.content--wide { max-width: none; }

.sidenav { flex: 1 1 260px; max-width: 340px; display: flex; flex-direction: column; gap: 2px; }
.sidenav nav { display: flex; flex-direction: column; gap: 2px; }
.sidenav__title { font-family: var(--serif); font-size: 20px; margin-bottom: 12px; color: var(--ink); text-decoration: none; }
.sidenav__title:hover { color: var(--green); }
.sidenav nav a {
	color: var(--ink); text-decoration: none; min-height: 44px; padding: 8px 16px; border-radius: var(--r-sm);
	display: flex; align-items: center; line-height: 1.3; transition: background-color .2s ease, padding .2s ease;
}
.sidenav nav a.is-sub { padding-left: 32px; font-size: 15px; }
.sidenav nav a:not([aria-current]):hover { background: var(--bg); padding-left: 22px; }
.sidenav nav a.is-sub:not([aria-current]):hover { padding-left: 38px; }
.sidenav nav a[aria-current] { color: var(--white); background: var(--green); font-weight: 600; }

/* ---------- Prose (editor content and text blocks) ---------- */
.prose { overflow-wrap: break-word; }
.prose > * { margin: 0; }
.note p, .note li { overflow-wrap: anywhere; }
.prose .lead, .prose > p:first-child { font-size: 20px; color: var(--ink-2); }
.prose h2 { font-size: 32px; margin-top: 12px; }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 21px; line-height: 1.3; }
.prose p, .prose li { font-size: 18px; }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose a { color: var(--green); font-weight: 500; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose a.btn { color: var(--white); font-weight: 600; text-decoration: none; }
.prose a.btn:hover { color: var(--white); }
.prose a.btn--white, .prose a.btn--outline, .prose a.btn--white:hover, .prose a.btn--outline:hover { color: var(--ink); }
.prose strong { font-weight: 600; }
.prose blockquote, .note {
	background: var(--bg); border-radius: var(--r); padding: 24px 28px;
	display: flex; flex-direction: column; gap: 10px; margin: 0;
}
.prose blockquote p { font-size: 17px; }
.prose img { border-radius: var(--r); }
.prose figure { margin: 0; }
.prose figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.updated { font-size: 14px !important; color: var(--ink-3); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table, .table { width: 100%; min-width: 480px; font-size: 17px; }
.prose th, .table th {
	text-align: left; padding: 14px 16px; background: var(--green); color: var(--white); font-weight: 600;
}
.prose thead th:first-child, .table thead th:first-child { border-radius: 12px 0 0 0; }
.prose thead th:last-child, .table thead th:last-child { border-radius: 0 12px 0 0; }
.prose td, .table td { padding: 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.prose td:first-child, .table td:first-child { font-weight: 600; }

/* ---------- Invitation band ---------- */
.cta { background: var(--accent); color: var(--white); }
.cta__in { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta__title { flex: 1 1 420px; font-size: clamp(32px, 4vw, 52px); line-height: 1.02; letter-spacing: -.02em; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); }
.footer--flush { border-top: 0; }
.footer__in { padding-top: 72px; padding-bottom: 96px; /* room for the "Į viršų" button */ display: flex; flex-direction: column; gap: 48px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.footer__org { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.footer__org p { color: var(--ink-2); }
.footer__reg { color: var(--ink-2); }
.footer__reg p { margin: 0; }
.contact__legal p { margin: 0; }
.footer__logo { width: 96px; height: 96px; object-fit: contain; }
.footer__phone { font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; }
.footer__phone:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.footer__mail { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer__mail:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.footer__nav { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.footer__nav--wide { flex-basis: 240px; }
.footer__title { font-weight: 600; margin-bottom: 8px; }
.footer__nav a { color: var(--ink); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; align-self: flex-start; }
.footer__nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.social { display: flex; align-items: center; gap: 10px; }
.social a {
	width: 44px; height: 44px; border-radius: 999px; background: var(--green); color: var(--white);
	display: inline-flex; align-items: center; justify-content: center;
}
.social a:hover { color: var(--white); background: var(--ink); transform: translateY(-2px); }
.footer__bottom {
	border-top: 1px solid var(--line); padding-top: 24px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
	font-size: 14px; color: var(--ink-2);
}
.footer__bottom > span { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; }
.footer__bottom a { color: var(--ink-2); text-decoration: none; }
.footer__bottom span a { font-weight: 600; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__legal a, .footer__legal .linkbtn { min-height: 44px; display: inline-flex; align-items: center; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: none; cursor: pointer; }
.footer__bottom a:hover, .linkbtn:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Sections and grids (shared) ---------- */
.section__in { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 44px; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.section__title { font-size: clamp(36px, 4.4vw, 60px); line-height: 1; letter-spacing: -.02em; }
.section__title--sm { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.01em; }
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--full { grid-column: 1 / -1; }
/* Front page areas (as in the design): 3 cards + link tiles as the 4th column on wide screens, wrapping below on narrower ones. */
.home-areas .grid--3, .grid--tiles { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--tiles { display: grid; gap: 24px; align-content: start; }
.btn--outline-white { color: var(--white); border: 2px solid var(--white); background: transparent; }
.btn--outline-white:hover { color: var(--ink); background: var(--white); }
.round-btn {
	flex: none; width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); color: var(--ink);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.round-btn:hover { background: var(--ink); color: var(--white); }
.round-btn--lg { width: 52px; height: 52px; }
.round-btn--green { background: var(--green); border-color: var(--green); color: var(--white); }
.round-btn[disabled] { opacity: .4; cursor: default; }

/* ---------- Front page ---------- */
.home-hero, .home-video, .home-areas, .home-quick { background: #E3F0D8; }
.home-hero__in { padding-top: 32px; padding-bottom: 80px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 56px; }
.home-hero__intro { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.home-hero__logo { width: clamp(200px, 28vw, 360px); height: auto; }
.home-hero__text { font-size: 20px; line-height: 1.5; max-width: 520px; color: var(--ink-2); }
.home-hero__media { flex: 1.3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.slides { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: #E3EEDA; }
.slides__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.slides__img.is-on { opacity: 1; }
.slides__ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.slides__dot { width: 14px; height: 14px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; cursor: pointer; padding: 0; position: relative; }
.slides__dot::before { content: ""; position: absolute; inset: -15px; }
.slides__dot[aria-current] { background: var(--green); }
.slides__pause { font-size: 15px; font-weight: 600; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.slides__pause:hover { background: var(--ink); color: var(--white); }
.home-hero__words {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px clamp(18px, 3vw, 44px);
	font-family: var(--serif); font-size: clamp(26px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -.01em;
}
.home-hero__words a { text-decoration: none; }
.home-hero__words a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.home-hero__words .is-ink { color: var(--ink); }
.home-hero__words .is-green { color: var(--green); }
.home-hero__words .is-accent { color: var(--accent); }

.home-video__in { padding-top: 8px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.home-video__title { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.02em; }
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #2A3A30; text-decoration: none; }
.video__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.video:hover .video__img { transform: scale(1.03); }
.video--player { border: 0; height: auto; }
.video__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 24, 18, 0) 45%, rgba(14, 24, 18, .55) 100%); }
.video__play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(72px, 9vw, 112px); height: clamp(72px, 9vw, 112px);
	border-radius: 999px; background: var(--accent); color: var(--white); display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .35); transition: transform .3s var(--ease);
}
.video__play svg { width: 40%; height: 40%; }
.video:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
.video__label { position: absolute; left: clamp(20px, 3vw, 40px); bottom: clamp(18px, 3vw, 36px); color: var(--white); font-weight: 600; font-size: clamp(16px, 1.6vw, 20px); }

.acard { text-decoration: none; color: var(--white); background: var(--green); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.acard:hover { color: var(--white); transform: translateY(-4px); box-shadow: var(--shadow); }
.acard__img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center top; }
.acard__body { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.acard__title { font-size: 30px; }
.acard__body p { color: var(--bg); }
.acard__more { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.acard__more svg, .tile > svg { transition: transform .25s ease; }
.acard:hover .acard__more svg, .tile:hover > svg { transform: translateX(5px); }

.tile { text-decoration: none; color: var(--white); background: var(--green); border-radius: 20px; padding: 20px 24px; display: flex; align-items: center; gap: 16px; min-height: 64px; }
.tile:hover { color: var(--white); transform: translateY(-3px); box-shadow: var(--shadow); }
.tile__icon { flex: none; width: 52px; height: 52px; border-radius: 999px; background: var(--white); color: var(--green); display: flex; align-items: center; justify-content: center; }
.tile__label { flex: 1 1 auto; min-width: 0; font-family: var(--serif); font-size: 22px; line-height: 1.15; }

.home-news { background: var(--green); color: var(--white); }

/* ---------- News cards ---------- */
.ncard { text-decoration: none; color: var(--ink); background: var(--bg); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.ncard:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); }
.ncard__img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center 30%; }
.ncard__img--empty { background: var(--bg-2); }
.ncard__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.ncard__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 14px; color: var(--ink-3); }
.ncard__tag { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.ncard__title { font-size: 25px; line-height: 1.15; }
.ncard__text { color: var(--ink-2); }
.ncard--dark { color: var(--white); background: #1C6A25; }
.ncard--dark:hover { color: var(--white); }
.ncard--dark .ncard__meta, .ncard--dark .ncard__tag { color: #EAF3E5; }
.ncard--dark .ncard__title { font-size: 26px; }
.ncard--dark .ncard__text { color: #EEF6EA; }
.ncard--row { background: var(--white); flex-direction: row; flex-wrap: wrap; }
.ncard--row .ncard__img { flex: 1 1 180px; width: 180px; min-height: 180px; aspect-ratio: auto; }
.ncard--row .ncard__body { flex: 2 1 240px; padding: 24px; gap: 10px; }
.ncard--row .ncard__title { font-size: 22px; }

.home-quick__row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 24px; }
.qlinks { flex: 3 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); grid-auto-rows: 1fr; gap: 14px; }
.qlink { text-decoration: none; color: var(--ink); border: 2px solid var(--ink); border-radius: 16px; padding: 14px 18px; min-height: 68px; display: flex; align-items: center; gap: 16px; font-weight: 600; font-size: 17px; line-height: 1.25; }
.qlink:hover { color: var(--ink); background: var(--white); transform: translateY(-2px); }
.qlink__icon { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--green); }
.lessons { flex: 2 1 360px; min-width: 0; background: var(--green); color: var(--white); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.lessons__head { display: flex; align-items: center; gap: 12px; }
.lessons__head h3 { font-size: 26px; }
.lessons table { width: 100%; font-size: 16px; }
.lessons th { text-align: left; padding: 0 12px 10px; font-size: 14px; font-weight: 600; color: #EEF6EA; border-bottom: 2px solid var(--white); }
.lessons td { padding: 9px 12px; border-bottom: 1px solid #5FA36A; font-weight: 600; }
.lessons td:first-child { font-weight: 400; color: #EEF6EA; }

/* ---------- Lists: filters, pagination ---------- */
.section__in--list { padding-top: 56px; gap: 48px; }
.section__in--album { padding-top: 48px; gap: 36px; }
.grid--news { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 28px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chip {
	font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; background: transparent;
	border: 2px solid var(--ink); border-radius: 999px; min-height: 44px; padding: 0 20px; display: inline-flex; align-items: center;
}
.chip:hover { color: var(--ink); background: var(--white); }
.chip[aria-current] { background: var(--ink); color: var(--white); }
.filters__rss { margin-left: auto; color: var(--ink); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; }
.filters__rss:hover { color: var(--green); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.pager .page-numbers {
	width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
	color: var(--ink); font-weight: 600; text-decoration: none;
}
.pager a.page-numbers:hover { background: var(--bg); }
.pager .page-numbers.current { background: var(--ink); color: var(--white); }
.pager .page-numbers.dots { border: 0; width: auto; }
.pager__range { text-align: center; font-size: 14px; color: var(--ink-3); margin-top: -32px; }
.empty { font-size: 18px; color: var(--ink-2); }

.page-hero--green { background: var(--green); color: var(--white); }
.page-hero--green .crumbs, .page-hero--green .crumbs a { color: #EEF6EA; }
.page-hero--green .crumbs [aria-current] { color: var(--white); }
.page-hero--green .page-hero__lead { color: #EEF6EA; font-size: 19px; max-width: 560px; }
.page-hero--green :focus-visible { outline-color: var(--white); }
.page-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.page-hero__col { display: flex; flex-direction: column; gap: 12px; }
.page-hero__title--md { font-size: clamp(36px, 4.4vw, 64px); }
.page-hero__note { color: var(--ink-2); font-size: 17px; }

/* ---------- Single news ---------- */
.article { background: var(--white); }
.article__in { max-width: 920px; margin: 0 auto; padding: 40px var(--gutter) 80px; display: flex; flex-direction: column; gap: 28px; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 15px; color: var(--ink-3); }
.badge { background: var(--green); color: var(--white); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 6px 14px; }
.article__title { font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -.02em; }
.article__lead { font-size: 22px; line-height: 1.45; color: var(--ink-2); }
.article__img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; border-radius: var(--r-xl); }
.article__text { max-width: 760px; gap: 20px; display: flex; flex-direction: column; }
.article__text p, .article__text li { font-size: 19px; line-height: 1.65; }
.article__text > p:first-child { font-size: 19px; color: var(--ink); }
.article__text .quote, .article__text p.quote { font-family: var(--serif); font-size: 28px; line-height: 1.2; color: var(--green); padding: 20px 0; }
.article__gallery { display: flex; flex-direction: column; gap: 16px; }
.article__gallery h2 { font-size: 26px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 45%), 1fr)); gap: 14px; }
.thumbs__item { display: block; border-radius: 16px; overflow: hidden; cursor: zoom-in; }
.thumbs__item img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; transition: transform .5s var(--ease); }
.thumbs__item:hover img { transform: scale(1.04); }

.related { background: var(--bg); }
.related__in { padding-top: 72px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.related__title { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.02; letter-spacing: -.02em; }
.slider { display: flex; align-items: center; gap: 16px; }
.slider__track { flex: 1 1 0; min-width: 0; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.slider__track > [hidden] { display: none; }
.slider__track > div { display: flex; }
.slider__track .ncard { flex: 1; }
@media (max-width: 640px) {
	.slider { flex-wrap: wrap; justify-content: center; }
	.slider__track { flex-basis: 100%; order: -1; }
}

/* ---------- Gallery ---------- */
.album { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; }
.album:hover { color: var(--green); }
.album__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border-radius: var(--r-lg); overflow: hidden; }
.album__pair img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; object-position: center top; transition: transform .5s var(--ease); }
.album:hover .album__pair img { transform: scale(1.04); }
.album__body { display: flex; flex-direction: column; gap: 2px; }
.album__body span { color: var(--ink-3); }
.album__title { font-size: 24px; line-height: 1.15; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.photos__item { position: relative; display: block; background: var(--bg-2); border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.photos__item img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; transition: transform .5s var(--ease); }
.photos__item:hover img { transform: scale(1.04); }
.photos__zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 999px; background: var(--white); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 210; background: rgba(11, 20, 16, .96); color: var(--white); display: flex; flex-direction: column; padding: 16px 20px 20px; gap: 14px; }
.lb[hidden] { display: none; }
.lb__top, .lb__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.lb__pos { font-size: 15px; color: #EAF3E5; }
.lb__x { font-size: 16px; font-weight: 600; cursor: pointer; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--white); background: transparent; color: var(--white); display: inline-flex; align-items: center; gap: 10px; }
.lb__stage { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb__stage { touch-action: pan-y; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; transition: opacity .2s ease; }
.lb__stage img.is-loading { opacity: .35; }
.lb__cap { font-size: 17px; color: #EEF6EA; flex: 1 1 200px; }
.lb__nav { display: flex; gap: 12px; }
.lb__nav button { width: 52px; height: 52px; border-radius: 999px; border: 2px solid var(--white); background: transparent; color: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lb__nav .lb__next { background: var(--white); color: var(--ink); }
.lb :focus-visible { outline-color: #FFEB3B; }

/* Share row (news, albums) */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.share__label { font-weight: 600; font-size: 16px; }
.share__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.share__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease; }
.share__btn:hover { background: var(--ink); color: var(--white); }
.share__btn[hidden] { display: none; }
.share__msg { font-size: 15px; color: var(--green); font-weight: 600; }

/* ---------- Page layout variants ---------- */
.content--solo { flex-basis: 100%; max-width: 820px; }
.content--solo.content--full { max-width: none; }
@media (max-width: 900px) { .page-body__in > .sidenav { order: 2; flex-basis: 100%; max-width: none; } }
.content--solo:has(> .childlist, > .cards, > .faq) { max-width: none; }
.page-body__in > .figure--wide { flex: 1 1 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip--sm { min-height: 40px; padding: 0 18px; font-weight: 500; }
.chip--sm[aria-current] { background: var(--green); border-color: var(--green); color: var(--white); min-height: 44px; }

/* ---------- Content blocks ---------- */
.b-text { display: flex; flex-direction: column; gap: 22px; }
.b-text > * { margin: 0; }
.prose h2 { font-size: 28px; line-height: 1.1; margin-top: 8px; }
.prose > h2 { margin-top: 8px; }
.prose .b-text > p:first-child { font-size: 18px; color: var(--ink); }
.prose > .b-text:first-child > p:first-child { font-size: 19px; color: var(--ink-2); max-width: 680px; }

.note { border-radius: var(--r); padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.note > * { margin: 0; }
.note h2 { font-size: 22px; line-height: 1.2; }
.note p, .note li { font-size: 18px; }
.note--fonas { background: var(--bg); }
.note--didelis { background: var(--bg); }
.note--didelis p, .note--didelis li { font-size: 20px; line-height: 1.7; }
.note--remelis { border: 2px solid var(--ink); }
.note--zalia { background: var(--green); color: var(--white); border-radius: var(--r-lg); padding: 32px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.note--zalia p { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.note--zalia a { background: var(--white); color: var(--ink); text-decoration: none; min-height: 52px; padding: 0 26px; border-radius: 999px; display: inline-flex; align-items: center; font-family: var(--sans); font-size: 17px; font-weight: 600; }
.note--zalia a:hover { color: var(--ink); transform: translateY(-2px); }
.note--zalia p:has(> a:only-child) { font-size: 17px; }
.note:not(.note--zalia) a { color: inherit; }
.note--zalia a:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.note--fonas a, .note--didelis a, .note--remelis a { color: var(--green); }

.rows { display: flex; flex-direction: column; gap: 14px; }
.row {
	text-decoration: none; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r);
	padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px;
}
.prose .row { color: var(--ink); font-weight: 400; }
.row:hover { color: var(--ink); background: var(--bg); transform: translateY(-2px); }
.row__badge { flex: none; background: var(--accent); color: var(--white); font-weight: 600; font-size: 13px; letter-spacing: .06em; border-radius: 8px; padding: 6px 10px; }
.row__main { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row__title { font-family: var(--serif); font-size: 21px; line-height: 1.2; overflow-wrap: anywhere; }
.row__sub { font-size: 15px; color: var(--ink-3); }
.row__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green); min-height: 44px; }
.row:hover .row__go svg { transform: translateY(2px); }
.row__go svg { transition: transform .25s ease; }

.fcards { display: flex; flex-direction: column; gap: 14px; } /* As in the design: one full-width row per document. */
.fcard { text-decoration: none; color: var(--ink); background: var(--bg); border-radius: var(--r); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.prose .fcard { color: var(--ink); }
.fcard:hover { color: var(--ink); background: var(--bg-2); transform: translateY(-2px); }
.fcard__title { font-weight: 600; }
.fcard__type { flex: none; font-size: 14px; font-weight: 600; color: var(--green); }

.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 14px; border-radius: var(--r-lg); overflow: hidden; }
.prose .card { font-weight: 400; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__body { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.card__title { font-size: 28px; line-height: 1.1; }
.card__kicker { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.card__text { flex: 1 1 auto; }
.card__more { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.card__more svg { transition: transform .25s ease; }
a.card:hover .card__more svg { transform: translateX(5px); }
.cards--ikona .card { color: var(--ink); background: var(--bg); padding: 28px; }
.cards--ikona .card:hover { color: var(--ink); }
.cards--ikona .card__icon { width: 64px; height: 64px; border-radius: 999px; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; }
.cards--ikona .card__text { color: var(--ink-2); }
.cards--ikona .card__more { color: var(--green); }
.cards--zalios { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.cards--zalios .card { background: var(--green); color: var(--white); border-radius: 20px; padding: 26px; gap: 8px; }
.cards--zalios .card:hover { color: var(--white); }
.cards--zalios .card__body { gap: 8px; }
.cards--zalios .card__kicker { color: #EAF3E5; }
.cards--zalios .card__icon { color: var(--white); }
.cards--nuotrauka .card { background: var(--bg); color: var(--ink); gap: 0; }
.cards--nuotrauka .card:hover { color: var(--ink); }
.cards--nuotrauka .card__img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.cards--nuotrauka .card__body { padding: 24px 28px 28px; }
.cards--nuotrauka .card__title { font-size: 24px; }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--bg); border-radius: var(--r); padding: 0 24px; }
.faq__item summary { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--serif); font-size: 22px; line-height: 1.2; cursor: pointer; list-style: none; padding: 12px 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; width: 36px; height: 36px; border-radius: 999px; border: 2px solid var(--ink); position: relative; transition: transform .25s ease; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s ease; }
.faq__item[open] .faq__icon::after, .person[open] > summary .faq__icon::after, .acard2__more[open] > summary .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 0 24px; display: flex; flex-direction: column; gap: 12px; }
.faq__a > * { margin: 0; }
.faq__a p, .faq__a li { font-size: 18px; color: var(--ink-2); }

.childlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.childlist__item {
	text-decoration: none; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r); padding: 22px 24px; min-height: 84px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--serif); font-size: 20px; line-height: 1.2;
}
.prose .childlist__item { color: var(--ink); font-weight: 400; }
.childlist__item:hover, .prose .childlist__item:hover { color: var(--white); background: var(--green); border-color: var(--green); }
.childlist__item svg { transition: transform .25s ease; }
.childlist__item:hover svg { transform: translateX(5px); }

.figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.figure img { width: 100%; height: auto; border-radius: var(--r-lg); }
.figure--wide img { aspect-ratio: 21 / 9; object-fit: cover; object-position: center 30%; }
.figure figcaption { font-size: 14px; color: var(--ink-3); }

.timeline { flex: 1 1 300px; min-width: 0; max-width: 380px; background: var(--bg); border-radius: var(--r-lg); padding: 32px 28px 12px; }
.timeline h2 { font-size: 28px; margin-bottom: 24px; }
.timeline ol { list-style: none; margin: 0; padding: 0 0 0 8px; }
.timeline li { display: flex; flex-direction: column; gap: 4px; padding: 0 0 22px 24px; border-left: 2px solid var(--green-2); position: relative; }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 999px; background: var(--green); }
.timeline__year { font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--green); }

/* ---------- Contacts ---------- */
.section__in--md { padding-top: 72px; padding-bottom: 96px; gap: 32px; }
.contact { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 32px; }
.contact__card { flex: 1 1 380px; min-width: 0; background: var(--green); color: var(--white); border-radius: var(--r-xl); padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.contact__card h2 { font-size: 30px; }
.contact__card > div { display: flex; flex-direction: column; gap: 4px; }
.contact__card > div > span:first-child { font-size: 14px; color: #EEF6EA; }
.contact__val { font-size: 19px; color: var(--white); text-decoration: none; }
a.contact__val { min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; }
a.contact__val:hover { color: var(--white); text-decoration: underline; }
.contact__card :focus-visible { outline-color: var(--white); }
.contact__legal { border-top: 1px solid #5FA36A; padding-top: 18px; font-size: 15px; color: #EEF6EA; }
.map { flex: 2 1 480px; min-width: 0; min-height: 420px; position: relative; overflow: hidden; background: #E8EDE4; border-radius: var(--r-xl); }
.map > span { position: absolute; }
.map__road { background: var(--white); }
.map__road--1 { left: -10%; top: 46%; width: 120%; height: 26px; transform: rotate(-8deg); }
.map__road--2 { left: 34%; top: -10%; width: 22px; height: 120%; transform: rotate(12deg); }
.map__road--3 { left: -10%; top: 18%; width: 120%; height: 12px; background: #F7F9F5; transform: rotate(4deg); }
.map__road--4 { left: 68%; top: -10%; width: 12px; height: 120%; background: #F7F9F5; transform: rotate(-6deg); }
.map__park { left: 6%; top: 56%; width: 22%; height: 16%; background: #D3E2CC; border-radius: 14px; transform: rotate(-8deg); }
.map__pond { left: 74%; top: 22%; width: 18%; height: 20%; background: #CFE0EA; border-radius: 40px; }
.map__street { left: 8%; top: 37%; font-size: 13px; color: #5B6B61; transform: rotate(-8deg); }
.map__pin { left: 50%; top: 44%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--accent); }
.map__pin span { background: var(--white); color: var(--ink); border-radius: 12px; padding: 8px 14px; font-weight: 600; font-size: 15px; box-shadow: 0 4px 14px rgba(20, 32, 26, .18); white-space: nowrap; }
.map__pin svg { fill: var(--accent); stroke: var(--white); }
.map__bar { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; background: var(--white); border-radius: var(--r); padding: 14px 18px; box-shadow: 0 4px 14px rgba(20, 32, 26, .12); }
.map__bar > span { font-size: 15px; color: var(--ink-2); }
.map--live { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); }
.map__frame { display: block; flex: 1 1 auto; width: 100%; min-height: 360px; border: 0; }
.map--live .map__bar { position: static; border-radius: 0; box-shadow: none; }
.map__consent { flex: 1 1 auto; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px 24px; text-align: center; background: var(--bg); color: var(--ink-2); }
.map__consent svg { fill: var(--accent); stroke: var(--white); }
.map__consent p { max-width: 420px; margin: 0; }
.map__frame:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }

.staff-admin { background: var(--bg); }
.acards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 20px; align-items: stretch; }
.acard2 { background: var(--white); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.acard2__img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: center top; border-radius: 14px; margin-bottom: 10px; }
.acard2__img--empty { background: var(--bg-2); color: var(--green); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 64px; }
.acard2__pos { font-weight: 600; color: var(--green); min-height: 50px; }
.acard2 h3 { font-size: 24px; line-height: 1.15; }
.acard2__tel { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; font-weight: 500; }
.acard2__more { border-top: 1px solid var(--line-2); }
.acard2__more:first-of-type { margin-top: auto; }
.acard2__more summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--green); cursor: pointer; list-style: none; }
.acard2__more summary::-webkit-details-marker, .person summary::-webkit-details-marker, .people__more > summary::-webkit-details-marker { display: none; }
.acard2__more .faq__icon, .person .faq__icon { width: 30px; height: 30px; }
.acard2__more > div, .person__body { padding: 0 0 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); font-size: 16px; }
.acard2__more > div > *, .person__body > * { margin: 0; }
.acard2__more h4, .person__body h3, .person__body h4 { font-family: var(--sans); font-weight: 600; font-size: 16px; color: var(--ink); }
.acard2__more ul, .person__body ul { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.acard2__more .small, .person__body .small { font-size: 14px; color: var(--ink-3); }

.people { display: flex; flex-direction: column; gap: 10px; }
.person { border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; background: var(--white); }
.person summary { min-height: 64px; padding: 8px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.person[open] { border-color: var(--green); }
.person__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 40px; min-width: 0; }
.person__name { font-weight: 600; font-size: 18px; flex: 0 0 260px; }
.person__pos { color: var(--ink-2); font-size: 17px; flex: 1 1 260px; }
.person__contacts { flex: 1 1 100%; font-size: 15px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 2px 40px; }
/* Phone column as wide as the name column, so position and e-mail start on the same line. */
.person__contacts > span:first-child { flex: 0 0 260px; }
.people__toggle { margin: 8px 0 10px; align-self: flex-start; }
.people__toggle[hidden], .people[hidden] { display: none; }
.people__toggle .l2, .people__toggle[aria-expanded="true"] .l1 { display: none; }
.people__toggle[aria-expanded="true"] .l2 { display: inline; }
@media (max-width: 640px) { .person__name { flex-basis: 100%; } .person__contacts > span:first-child { flex-basis: auto; } }

/* ---------- Org chart ---------- */
.org-page { padding-top: 48px; gap: 24px; }
.org-page__title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; letter-spacing: -.02em; }
.org-page__hint { font-size: 16px; color: var(--ink-2); }
.org-page__scroll { display: none; font-size: 14px; color: var(--ink-3); }
.org { overflow-x: auto; padding-bottom: 8px; }
.org__in { min-width: 1040px; max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 44px; }
.org__tree { display: flex; flex-direction: column; align-items: center; }
.org__tree + .org__tree { width: 56%; min-width: 420px; align-self: flex-start; margin-left: 2%; }
.org__v { display: block; width: 2px; height: 24px; background: var(--green); flex: none; }
.org__row { width: 100%; display: grid; }
.org__col { position: relative; display: flex; flex-direction: column; align-items: center; padding: 26px 8px 0; min-width: 0; }
.org__col::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--green); }
.org__col:first-child::before { left: 50%; }
.org__col:last-child::before { right: 50%; }
.org__col:only-child::before { display: none; }
.org__col::after { content: ""; position: absolute; top: 0; left: calc(50% - 1px); width: 2px; height: 26px; background: var(--green); }
.org__box {
	display: block; max-width: 100%; text-align: center; overflow-wrap: break-word; hyphens: manual; text-decoration: none;
	background: var(--bg); color: var(--ink); border-radius: 14px; padding: 10px 8px; font-weight: 500; font-size: 14px;
}
.org__box span { display: block; font-size: 13px; color: var(--ink-3); font-weight: 400; }
.org__box--main, .org__box--root { background: var(--green); color: var(--white); font-weight: 600; }
.org__box--main span { color: #EAF3E5; }
.org__box--main { padding: 12px 14px; }
.org__box--root { font-family: var(--serif); font-weight: 400; font-size: 20px; padding: 14px 32px; border-radius: 16px; }
a.org__box:hover { background: var(--ink); color: var(--white); }
a.org__box:hover span { color: #E3EAE5; }
.org__list { background: var(--bg); border-radius: 14px; padding: 10px 8px; display: flex; flex-direction: column; gap: 8px; text-align: center; font-weight: 500; font-size: 14px; }
.org__item { color: var(--ink); text-decoration: none; border-radius: 8px; padding: 2px 6px; }
a.org__item:hover { background: var(--white); color: var(--ink); }
.org-page__blocks { margin-top: 24px; max-width: none; }
@media (max-width: 1100px) { .org-page__scroll { display: block; } }

/* ---------- Site map ---------- */
.tree { padding-top: 56px; padding-bottom: 96px; display: flex; flex-direction: column; }
.tree__root { display: flex; flex-direction: column; align-items: flex-start; }
.tree__home { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: var(--green); color: var(--white); text-decoration: none; font-family: var(--serif); font-size: 22px; }
.tree__home:hover { color: var(--white); background: var(--ink); }
.tree__stem { width: 2px; height: 28px; background: var(--green); margin-left: 11px; }
.tr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0 48px; border-top: 2px solid var(--ink); margin-left: 11px; }
.tr-col { position: relative; padding-top: 28px; }
.tr-col::before { content: ""; position: absolute; left: 0; top: 0; height: 28px; border-left: 2px solid var(--ink); }
.tr-col:last-child::after { content: ""; position: absolute; left: 2px; right: -48px; top: -2px; height: 2px; background: var(--white); }
.tr-sec { position: relative; padding: 0 0 28px 28px; }
.tr-sec::before { content: ""; position: absolute; left: 0; top: 19px; width: 22px; border-top: 2px solid var(--ink); }
.tr-sec::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 2px solid var(--ink); }
.tr-sec:last-child::after { bottom: auto; height: 20px; }
.tr-head { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--green); color: var(--white); text-decoration: none; font-weight: 600; }
a.tr-head:hover { color: var(--white); background: var(--ink); }
.tr-kids { margin: 8px 0 0 18px; display: flex; flex-direction: column; }
.tr-k { position: relative; padding-left: 26px; min-height: 38px; display: flex; align-items: center; color: var(--ink); text-decoration: none; }
.tr-k:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.tr-k::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; border-top: 2px solid #EAF3E5; }
.tr-k::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 2px solid #EAF3E5; }
.tr-k:last-child::after { bottom: 50%; }
@media (max-width: 1000px) {
	.tr-cols { border-top: 0; }
	.tr-col { padding-top: 0; }
	.tr-col::before, .tr-col:last-child::after { display: none; }
	.tr-col:not(:last-child) .tr-sec:last-child::after { bottom: 0; height: auto; }
}

/* ---------- Search ---------- */
.container--narrow { max-width: 920px; }
.search { display: flex; flex-wrap: wrap; gap: 12px; }
.search input { flex: 1 1 300px; min-width: 0; height: 60px; border: 2px solid var(--ink); border-radius: 999px; padding: 0 26px; font: inherit; font-size: 19px; background: var(--white); color: var(--ink); }
.search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.search .btn { height: 60px; padding: 0 32px; }
.search__status { color: var(--ink-2); }
.results { padding-top: 40px; padding-bottom: 96px; display: flex; flex-direction: column; }
.result { text-decoration: none; color: var(--ink); padding: 26px 0; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.result:hover .result__title { text-decoration: underline; text-underline-offset: 4px; }
.result__cat { font-size: 14px; color: var(--ink-3); }
.result__title { font-family: var(--serif); font-size: 24px; line-height: 1.2; color: #1E5B2E; }
.result__text { color: var(--ink-2); }
.results .pager { margin-top: 32px; }
.results .pager__range { margin-top: 12px; }
.results__empty { display: flex; flex-direction: column; gap: 18px; padding: 26px 0; }
.results__title { font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.results__empty > p:not(.results__title) { color: var(--ink-2); font-size: 18px; }
.chip--soft { background: #F4F1EA; border-color: #F4F1EA; }
.chip--soft:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------- Department pages ---------- */
.dept-hero { background: var(--bg); }
.dept-hero__in { padding-top: 40px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.dept-hero__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.dept-hero__title { font-size: clamp(44px, 6vw, 88px); line-height: .95; letter-spacing: -.02em; }
.dept-hero__text .page-hero__lead { max-width: 520px; }
.dept-hero .chip--sm { background: var(--white); border-color: var(--white); }
.dept-hero .chip--sm[aria-current] { background: var(--green); border-color: var(--green); }
.dept-hero__img { flex: 1 1 420px; min-width: 0; width: 100%; max-width: 580px; aspect-ratio: 5 / 4; height: auto; object-fit: cover; object-position: center top; border-radius: var(--r-xl); }
.dept { background: var(--white); }
.dept--soft { background: var(--bg); }
.dept__in { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.dept--tight .dept__in { padding-top: 0; }
.dept__title { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.02; letter-spacing: -.02em; }
.dept__title--sm { font-size: clamp(28px, 3vw, 38px); line-height: 1.05; }
.dept__text { max-width: 780px; }
.learn { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.learn__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.learn__img { width: 100%; max-width: 340px; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: var(--r-lg); }
.learn__cap { font-size: 14px; color: var(--ink-3); margin-top: -12px; }
.learn__main { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.level { background: var(--bg); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.level__kicker { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.level h3 { font-size: 24px; line-height: 1.15; }
.level p { color: var(--ink-2); }
.level--dark { background: var(--green); color: var(--white); }
.level--dark .level__kicker { color: #EEF6EA; }
.level--dark p { color: var(--bg); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { background: var(--bg); border-radius: 999px; padding: 10px 18px; font-weight: 500; }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.figs figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.figs img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: var(--r); }
.figs figcaption { font-size: 14px; color: var(--ink-3); }
.progs { display: flex; flex-wrap: wrap; gap: 20px; }
.prog { flex: 1 1 320px; min-width: 0; background: var(--bg); border-radius: 20px; padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.dept--soft .prog, .dept--soft .level:not(.level--dark), .dept--soft .tags li { background: var(--white); }
.prog h3 { font-size: 22px; line-height: 1.15; }
.prog ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.pgrid, .rot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.pgrid__item { display: block; border-radius: 20px; overflow: hidden; cursor: zoom-in; }
.pgrid__item img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center top; transition: transform .5s var(--ease); }
.pgrid__item:hover img { transform: scale(1.04); }
.rot { flex: 1 1 0; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rot > :nth-child(n+5) { display: none; }
@media (max-width: 900px) { .rot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rot > :nth-child(n+3) { display: none; } }
.tcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 20px; }
.tcard { background: var(--white); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.dept:not(.dept--soft) .tcard { background: var(--bg); }
.tcard:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.tcard h3 { font-size: 22px; line-height: 1.15; }
.tcard__role { font-weight: 600; color: var(--green); }
.tcard p { color: var(--ink-2); font-size: 15px; }
.tlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 0 32px; }
.tlist__item { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.tlist__item span:first-child { font-weight: 600; }
.tlist__item span:last-child { color: var(--ink-2); font-size: 15px; }
.tlist__item:hover span:first-child { color: var(--green); text-decoration: underline; }
.teach-side { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.teach-side__img { flex: 1 1 380px; min-width: 0; width: 100%; max-width: 520px; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: var(--r-xl); }
.teach-side__main { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.teach-side .tcards { grid-template-columns: 1fr; }
.dcards { display: grid; gap: 20px; }
.dcards--zalios { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.dcards--nuotrauka { grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 24px; }
.dcard { text-decoration: none; border-radius: 20px; overflow: hidden; display: flex; }
a.dcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dcard__body { display: flex; flex-direction: column; gap: 8px; padding: 26px; flex: 1 1 auto; }
.dcard h3 { font-size: 26px; line-height: 1.1; }
.dcard__kicker { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.dcards--zalios .dcard { background: var(--green); color: var(--white); flex-direction: column; }
.dcards--zalios .dcard:hover { color: var(--white); }
.dcards--zalios .dcard__kicker { color: #EAF3E5; }
.dcards--nuotrauka .dcard { background: var(--bg); color: var(--ink); flex-wrap: wrap; }
.dept--soft .dcards--nuotrauka .dcard { background: var(--white); }
.dcards--nuotrauka .dcard__img { flex: 1 1 220px; width: 220px; min-height: 240px; height: auto; object-fit: cover; }
.dcards--nuotrauka .dcard__body { flex: 1 1 240px; }
.dcards--nuotrauka .dcard__kicker { color: var(--green); }
.dcards--nuotrauka p { color: var(--ink-2); }

/* ---------- 404 ---------- */
.e404 { background: var(--bg); }
.e404__in { padding-top: 72px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.e404__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.e404__code { font-family: var(--serif); font-size: clamp(96px, 14vw, 200px); line-height: .85; letter-spacing: -.04em; color: var(--green); }
.e404__title { font-size: clamp(32px, 4vw, 52px); line-height: 1.02; letter-spacing: -.02em; }
.e404__lead { font-size: 19px; color: var(--ink-2); max-width: 480px; }
.e404__img { flex: 0 1 380px; min-width: 0; width: 100%; max-width: 380px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-xl); }

/* ---------- Accessibility panel ---------- */
.ap-back { position: fixed; inset: 0; z-index: 200; background: rgba(20, 32, 26, .55); display: flex; justify-content: flex-end; }
.ap-panel {
	width: min(460px, 100%); height: 100%; overflow: auto; background: var(--white); color: var(--ink);
	font-family: var(--sans); font-size: 17px; line-height: 1.5; padding: 28px 28px 32px;
	display: flex; flex-direction: column; gap: 22px;
}
.ap-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 16px; }
.ap-head h2 { font-size: 30px; }
.ap-x { width: 48px; height: 48px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.ap-row {
	display: flex; align-items: center; gap: 18px; width: 100%; text-align: left;
	background: var(--bg); border: 2px solid transparent; border-radius: var(--r); padding: 16px 18px; cursor: pointer;
}
.ap-row[aria-checked="true"] { border-color: var(--green); background: var(--bg-2); }
.ap-sw { flex: none; width: 56px; height: 32px; border-radius: 999px; background: #D5E3CD; position: relative; }
.ap-sw::after { content: ""; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 999px; background: var(--white); transition: left .2s ease; }
.ap-row[aria-checked="true"] .ap-sw { background: var(--green); }
.ap-row[aria-checked="true"] .ap-sw::after { left: 28px; }
.ap-row b { display: block; font-weight: 600; font-size: 18px; }
.ap-row small { display: block; font-size: 15px; color: var(--ink-2); }
.ap-reset { min-height: 52px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font-weight: 600; cursor: pointer; }
.ap-foot { font-size: 15px; color: var(--ink-2); text-align: center; }

/* Accessibility modes (classes on <html>, saved in localStorage "ap") */
html.a11y body { background: #000 !important; }
html.a11y .site { background: #000; }
html.a11y .site * {
	background-color: transparent !important; background-image: none !important; color: #fff !important;
	border-color: #fff !important; box-shadow: none !important; letter-spacing: normal !important;
}
html.a11y .site a, html.a11y .site a * { color: #FFEB3B !important; }
html.a11y .site a { text-decoration: underline !important; }
html.a11y .site button, html.a11y .site summary { border: 2px solid #fff !important; }
html.a11y .site [aria-current], html.a11y .site [aria-current] *, html.a11y .site [aria-selected="true"], html.a11y .site [aria-selected="true"] * { background-color: #FFEB3B !important; color: #000 !important; }
html.a11y .site svg [stroke]:not([stroke="none"]), html.a11y .site svg[stroke]:not([stroke="none"]) { stroke: currentColor !important; }
html.a11y .site svg [fill]:not([fill="none"]), html.a11y .site svg[fill]:not([fill="none"]) { fill: currentColor !important; }
html.a11y .site details, html.a11y .site a:has(img) { outline: 1px solid #fff; }
html.a11y .site .nav__sub { background-color: #000 !important; }
html.a11y .site img[src$=".png"] { filter: invert(1) grayscale(1) brightness(2); }
html.a11y .site ::before, html.a11y .site ::after { border-color: #fff !important; background-color: transparent !important; }
html.a11y :focus-visible { outline: 4px solid #FFEB3B !important; outline-offset: 3px; }
html.a11y .ap-panel { background: #000; color: #fff; }
html.a11y .ap-head { border-color: #fff; }
html.a11y .ap-x, html.a11y .ap-reset { background: #000; color: #fff; border-color: #fff; }
html.a11y .ap-row { background: #000; border-color: #fff; }
html.a11y .ap-row small, html.a11y .ap-foot { color: #fff; }
html.a11y .ap-row[aria-checked="true"] { background: #000; border-color: #FFEB3B; }
html.a11y .ap-row[aria-checked="true"] .ap-sw { background: #FFEB3B; }
html.a11y .ap-sw { background: #555; }
html.a11y .ap-foot a { color: #FFEB3B; }
html.a11y-text .site { zoom: 1.2; }
html.a11y-space .site :not(h1):not(h2):not(h3):not(h1 *):not(h2 *):not(h3 *) { line-height: 1.9 !important; letter-spacing: .04em !important; word-spacing: .14em !important; }
html.a11y-space .site p, html.a11y-space .site li { margin-bottom: .6em !important; }
html.a11y-motion *, html.a11y-motion ::before, html.a11y-motion ::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ---------- Motion ---------- */
@keyframes fxUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
	.page-hero__in > *, .e404__text > * { animation: fxUp .7s var(--ease) both; }
	.page-hero__in > :nth-child(2), .e404__text > :nth-child(2) { animation-delay: .08s; }
	.page-hero__in > :nth-child(3), .e404__text > :nth-child(3) { animation-delay: .16s; }
	.page-hero__in > :nth-child(n+4), .e404__text > :nth-child(n+4) { animation-delay: .24s; }
	@supports (animation-timeline: view()) {
		.reveal > * { animation: fxUp linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
	}
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
	.topbar, .nav, .nav-mob, .sidenav, .cta, .footer__nav, .footer__legal, .social, .sk-b { display: none !important; }
	body, .page-hero, .page-body, .footer { background: #fff; }
	a { color: #000; }
}

/* ---------- Job vacancies block ---------- */
.jobs { display: flex; flex-direction: column; gap: 16px; }
.job { border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: var(--white); }
.job__title { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; margin: 0; }
.job__meta { margin: 0; color: var(--ink-3); font-size: 15px; }
.job__text > * { margin: 0 0 8px; }
.job__text > *:last-child { margin-bottom: 0; }

/* ---------- Staff search ---------- */
.people-search { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; max-width: 520px; }
.people-search[hidden] { display: none; }
.people-search label { font-weight: 600; }
.people-search input { min-height: 52px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px; font: inherit; font-size: 17px; background: var(--white); color: var(--ink); }
.people-search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.people-search__status { margin: 0; min-height: 1.4em; font-size: 15px; color: var(--ink-3); }
.person[hidden] { display: none; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 52px; height: 52px; border-radius: 999px; border: 2px solid var(--white); background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 20px rgba(20, 32, 26, .25); }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--ink); }
.to-top:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 600px) { .to-top { right: 12px; bottom: 12px; width: 48px; height: 48px; } }
@media print { .to-top { display: none !important; } }
