/*
Theme Name: Lajų takas
Theme URI: https://lajutakas.lt/
Author: lajutakas.lt
Description: Išskirtinė, greita ir SEO optimizuota naujienų ir gidų tema portalui „Pasivaikščiojimas Lajų viršūnėmis“. Veikia be papildomų įskiepių: schema.org struktūriniai duomenys, Open Graph, kanoninės nuorodos, turinio rodyklė, skaitomiausių įrašų skaitiklis, aukščiamatis ir mygtukas į viršų, tamsus režimas, 404 peradresavimai.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lajutakas
Tags: news, blog, two-columns, right-sidebar, custom-menu, featured-images, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. Spalvos, šriftai, dydžiai
   ========================================================================== */
:root {
	--sky: #F2F7F4;          /* rytinis rūkas virš lajų */
	--bg: #E6EEE8;           /* miško rūkas */
	--bg-2: #D9E5DC;
	--surface: #F8FBF8;
	--ink: #14241C;
	--ink-soft: #4B5E54;
	--pine: #1E4D3B;         /* spygliai */
	--pine-2: #2C6A50;
	--birch: #C9E26B;        /* saulės apšviestas lapas */
	--resin: #D99A1E;        /* sakai */
	--river: #2F6E8E;        /* Šventoji */
	--peat: #13201A;         /* durpės, miško paklotė */
	--link: #1E4D3B;
	--line: rgba(30, 77, 59, .16);
	--line-strong: rgba(30, 77, 59, .38);
	--focus: #2F6E8E;
	--shadow: 0 18px 40px -22px rgba(19, 32, 26, .45);

	--font-sign: "Bahnschrift", "DIN Alternate", "DIN Next LT Pro", "D-DIN", "Barlow Semi Condensed", "Roboto Condensed", sans-serif-condensed, "Arial Narrow", "Liberation Sans Narrow", "Helvetica Neue", Arial, sans-serif;
	--font-text: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Noto Serif", "Droid Serif", Georgia, serif;
	--font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--header-h: 128px;
	--admin: var(--wp-admin--admin-bar--height, 0px);
	color-scheme: light;
}

:root[data-theme="dark"] {
	--sky: #0C1611;
	--bg: #0F1A15;
	--bg-2: #17261F;
	--surface: #15231C;
	--ink: #E4EDE7;
	--ink-soft: #A3B8AC;
	--pine: #2C6A50;
	--pine-2: #3F8566;
	--link: #B6DA82;
	--line: rgba(228, 237, 231, .12);
	--line-strong: rgba(228, 237, 231, .3);
	--focus: #C9E26B;
	--peat: #08100C;
	--shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--sky: #0C1611;
		--bg: #0F1A15;
		--bg-2: #17261F;
		--surface: #15231C;
		--ink: #E4EDE7;
		--ink-soft: #A3B8AC;
		--pine: #2C6A50;
		--pine-2: #3F8566;
		--link: #B6DA82;
		--line: rgba(228, 237, 231, .12);
		--line-strong: rgba(228, 237, 231, .3);
		--focus: #C9E26B;
		--peat: #08100C;
		--shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
		color-scheme: dark;
	}
}

/* ==========================================================================
   2. Pagrindai
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + var(--admin) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 1rem;
	line-height: 1.55;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-sign); font-weight: 700; line-height: 1.12; color: var(--ink); font-stretch: 92%; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 1rem; top: -100px;
	z-index: 1000;
	padding: .75rem 1.25rem;
	background: var(--pine);
	color: #fff;
	border-radius: 0 0 10px 10px;
	font-weight: 600;
}
.skip-link:focus { top: var(--admin); }

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* Tako žymė: balta–spalva–balta */
.blaze {
	display: inline-block;
	flex: none;
	width: 1.15em;
	height: .78em;
	margin-right: .45em;
	vertical-align: -.04em;
	background: linear-gradient(180deg, #fff 0 30%, var(--c, #2E7D4F) 30% 70%, #fff 70%);
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(20, 36, 28, .22);
}
.blaze--lg { width: 1.3em; height: .9em; }
.blaze--xl { width: .9em; height: .62em; vertical-align: .08em; margin-right: .3em; }

.chip {
	display: inline-flex;
	align-items: center;
	padding: .32em .8em .32em .65em;
	font: 600 .8rem/1.2 var(--font-ui);
	color: var(--ink);
	text-decoration: none;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 999px;
}
.chip:hover { border-color: var(--line-strong); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem 1.1rem;
	font: .84rem/1.4 var(--font-ui);
	color: var(--ink-soft);
}
.meta > * { display: inline-flex; align-items: center; gap: .35rem; }
.meta .icon { width: 1rem; height: 1rem; opacity: .75; }
.meta--tight { gap: .25rem .9rem; font-size: .8rem; }
.meta__cat { display: inline-flex; align-items: center; font: 600 .8rem/1.3 var(--font-ui); color: var(--ink-soft); }

.btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .7rem 1.2rem;
	font: 600 .92rem/1.2 var(--font-ui);
	color: #fff;
	background: var(--pine);
	border: 0;
	border-radius: 999px;
	text-decoration: none;
	cursor: pointer;
}
.btn:hover { background: var(--pine-2); }
.btn--ghost { color: inherit; background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px; height: 40px;
	padding: 0;
	color: var(--ink);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	text-decoration: none;
}
.icon-btn:hover { background: var(--bg-2); }

.section-title {
	display: flex;
	align-items: center;
	gap: .1rem;
	margin-bottom: 1.4rem;
	font-size: clamp(1.45rem, 2.4vw, 1.85rem);
	letter-spacing: -.01em;
}
.section-title a { color: inherit; text-decoration: none; }
.section-title a:hover { text-decoration: underline; }
.section-title--small { font-size: 1.3rem; margin-bottom: 1rem; }

.empty { padding: 2rem 0; color: var(--ink-soft); font-size: 1.05rem; }
.empty .chips { margin-top: 1rem; }

/* ==========================================================================
   3. Aukščiamatis (kairėje, plačiuose ekranuose)
   ========================================================================== */
.altimeter { display: none; }

@media (min-width: 1400px) {
	.altimeter {
		position: fixed;
		z-index: 30;
		left: 18px;
		top: calc(var(--admin) + 24vh);
		bottom: 18vh;
		width: 44px;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: .5rem;
		font: 600 .7rem/1 var(--font-ui);
		color: var(--ink-soft);
		pointer-events: none;
	}
	.altimeter__scale {
		position: relative;
		flex: 1;
		width: 10px;
		border-left: 1px solid var(--line-strong);
		background: repeating-linear-gradient(180deg, var(--line-strong) 0 1px, transparent 1px 10%);
		background-size: 6px 100%;
		background-repeat: no-repeat;
	}
	.altimeter__mark {
		position: absolute;
		left: -4px;
		top: calc(var(--p, 0) * 100%);
		transform: translateY(-50%);
		display: inline-flex;
		align-items: baseline;
		gap: 2px;
		padding: .3rem .45rem .3rem .55rem;
		color: #fff;
		background: var(--pine);
		border-radius: 0 6px 6px 0;
		white-space: nowrap;
		box-shadow: inset 3px 0 0 var(--birch);
	}
	.altimeter__mark b { font: 700 .8rem/1 var(--font-sign); }
}

/* ==========================================================================
   4. Antraštė
   ========================================================================== */
.site-header {
	position: sticky;
	top: var(--admin);
	z-index: 50;
	background: color-mix(in srgb, var(--sky) 88%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red, blue)) {
	.site-header { background: var(--sky); }
}

.site-header__bar {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: 72px;
	transition: min-height .2s ease;
}
.is-scrolled .site-header__bar { min-height: 60px; }

.brand { margin: 0; font: inherit; }
.brand__link {
	display: inline-flex;
	align-items: center;
	gap: .7rem;
	color: var(--ink);
	text-decoration: none;
}
.brand__mark { width: 44px; height: 44px; flex: none; border-radius: 12px; }
.is-scrolled .brand__mark { width: 38px; height: 38px; }
.brand__text { display: grid; line-height: 1; }
.brand__top {
	font: 600 .74rem/1 var(--font-ui);
	letter-spacing: .06em;
	color: var(--ink-soft);
}
.brand__name {
	margin-top: .22rem;
	font: 700 1.38rem/1 var(--font-sign);
	font-stretch: 92%;
	letter-spacing: -.01em;
}

.primary-nav { margin-left: auto; }
.primary-nav .menu { display: flex; gap: .25rem; list-style: none; }
.primary-nav a {
	display: block;
	padding: .5rem .8rem;
	font: 600 .92rem/1.2 var(--font-ui);
	color: var(--ink);
	text-decoration: none;
	border-radius: 999px;
}
.primary-nav a:hover { background: var(--bg-2); }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { box-shadow: inset 0 -3px 0 var(--birch); border-radius: 0; }
.primary-nav .sub-menu { display: none; }

.header-actions { display: flex; align-items: center; gap: .15rem; }
.today { margin-right: .6rem; font: .84rem/1 var(--font-ui); color: var(--ink-soft); white-space: nowrap; }
.today:first-letter { text-transform: uppercase; }

[data-theme-toggle] .icon--sun { display: none; }
:root[data-theme="dark"] [data-theme-toggle] .icon--sun { display: block; }
:root[data-theme="dark"] [data-theme-toggle] .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) [data-theme-toggle] .icon--sun { display: block; }
	:root:not([data-theme="light"]) [data-theme-toggle] .icon--moon { display: none; }
}

.menu-toggle { display: none; }
.menu-toggle .icon--close { display: none; }
.nav-open .menu-toggle .icon--close { display: block; }
.nav-open .menu-toggle .icon--menu { display: none; }

/* Temų juosta – takų žymės */
.trails { border-top: 1px solid var(--line); }
.trails__list {
	display: flex;
	gap: .15rem;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
	mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.trails__list::-webkit-scrollbar { display: none; }
.trails__link {
	display: flex;
	align-items: center;
	padding: .65rem .85rem;
	font: 600 .86rem/1.2 var(--font-ui);
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
}
.trails__list li:first-child .trails__link { padding-left: 0; }
.trails__link:hover { color: var(--link); text-decoration: underline; }
.trails__link[aria-current] { box-shadow: inset 0 -3px 0 var(--birch); }

@media (max-width: 1100px) {
	.today { display: none; }
}

@media (max-width: 900px) {
	.menu-toggle { display: inline-grid; }
	.primary-nav {
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		display: none;
		padding: .75rem var(--gutter) 1.25rem;
		background: var(--sky);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
	}
	.nav-open .primary-nav { display: block; }
	.primary-nav .menu { flex-direction: column; }
	.primary-nav a { padding: .8rem .25rem; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid var(--line); }
	.header-actions { margin-left: auto; }
	.brand__name { font-size: 1.15rem; }
	.brand__top { font-size: .66rem; }
	.brand__mark { width: 38px; height: 38px; }
}

@media (max-width: 420px) {
	.brand__top { display: none; }
	.brand__name { margin-top: 0; }
}

/* ==========================================================================
   5. Pagrindinis puslapis: „laja“ ir takas
   ========================================================================== */
.site-main { display: block; min-height: 50vh; }

.canopy {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	padding-top: clamp(1.5rem, 3vw, 2.75rem);
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.lead { position: relative; }
.lead__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 22px 22px 22px 4px;
	background: var(--bg-2);
}
.lead__media img, .lead__media .thumb-fallback { width: 100%; height: 100%; object-fit: cover; }
.lead__body {
	position: relative;
	display: grid;
	gap: .9rem;
	justify-items: start;
	width: min(88%, 680px);
	margin-top: -4.5rem;
	padding: 1.6rem 1.75rem 0 0;
	background: var(--bg);
	border-top-right-radius: 18px;
}
:root .lead__body::before {
	content: "";
	position: absolute;
	inset: 0 0 auto -1px;
	height: 4.5rem;
	border-top-right-radius: 18px;
	background: inherit;
	z-index: -1;
}
.lead__title { font-size: clamp(1.9rem, 3.6vw, 3.05rem); line-height: 1.04; letter-spacing: -.018em; text-wrap: balance; }
.lead__title a { color: inherit; text-decoration: none; }
.lead__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--birch); }
.lead__excerpt { max-width: 60ch; font: 1.1rem/1.6 var(--font-text); color: var(--ink-soft); }


/* Takas: naujausi įrašai kaip sustojimai */
.trail__head {
	margin-bottom: 1.1rem;
	font: 700 1.25rem/1.2 var(--font-sign);
	font-stretch: 92%;
}
.trail__list { position: relative; list-style: none; }
.trail__list::before {
	content: "";
	position: absolute;
	top: .6rem; bottom: 2rem; left: 6px;
	border-left: 2px dashed var(--line-strong);
}
.trail__stop {
	position: relative;
	padding: 0 0 1.5rem 2rem;
}
.trail__stop::before {
	content: "";
	position: absolute;
	left: 0; top: .3rem;
	width: 14px; height: 14px;
	border-radius: 50%;
	background: var(--sky);
	box-shadow: inset 0 0 0 3px var(--pine);
}
.trail__stop:first-child::before { background: var(--birch); }
.trail__when { display: block; margin-bottom: .35rem; font: 600 .78rem/1.2 var(--font-ui); color: var(--ink-soft); }
.trail__card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 1rem; align-items: start; }
.trail__text { display: grid; gap: .45rem; }
.trail__title { font-size: 1.12rem; line-height: 1.2; font-weight: 600; }
.trail__title a { color: inherit; text-decoration: none; }
.trail__title a::after { content: ""; position: absolute; inset: 0; }
.trail__card:hover .trail__title a { text-decoration: underline; }
.trail__thumb { display: block; width: 76px; aspect-ratio: 1; overflow: hidden; border-radius: 12px 12px 12px 3px; background: var(--bg-2); }
.trail__thumb img, .trail__thumb .thumb-fallback { width: 100%; height: 100%; object-fit: cover; }

/* Paveikslėlio nebuvimo atveju – topografinės linijos */
.thumb-fallback {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 60px;
	background-color: color-mix(in srgb, var(--c, #2E7D4F) 24%, var(--bg-2));
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120' viewBox='0 0 160 120' fill='none' stroke='%23ffffff' stroke-opacity='.5' stroke-width='1.2'%3E%3Cpath d='M-10 90c30-22 52 8 82-10s44-40 98-22'/%3E%3Cpath d='M-10 70c34-20 48 6 80-12s50-38 100-18'/%3E%3Cpath d='M-10 50c30-16 50 6 82-10s46-34 98-16'/%3E%3Cpath d='M-10 30c30-12 52 4 80-8s48-28 100-12'/%3E%3Cpath d='M-10 110c32-22 56 8 84-8s46-38 96-22'/%3E%3C/svg%3E");
	background-size: 160px 120px;
}

/* ==========================================================================
   6. Tinklelis ir kortelės
   ========================================================================== */
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(2rem, 4vw, 4rem);
	align-items: start;
	padding-bottom: 4rem;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 2.5rem 1.75rem;
}
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--stream { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--feature-first > :first-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; column-gap: 1.75rem; }
.grid--feature-first > :first-child .card__title { font-size: 1.6rem; line-height: 1.12; }
.grid__wide { grid-column: 1 / -1; margin-bottom: .5rem; }

.card { position: relative; display: grid; align-content: start; gap: .9rem; }
.card__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 14px 14px 14px 3px;
	background: var(--bg-2);
}
.card__media img, .card__media .thumb-fallback { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: grid; gap: .5rem; justify-items: start; }
.card__title { font-size: 1.22rem; line-height: 1.18; font-weight: 600; text-wrap: balance; }
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__link { text-decoration: underline; text-decoration-color: var(--pine-2); }
.card__excerpt { font: .98rem/1.55 var(--font-text); color: var(--ink-soft); }

.card--shelf .card__title { font-size: 1.08rem; }

/* Šoninė juosta */
.side { display: grid; gap: 1.75rem; min-width: 0; }
.peaks { padding: 1.5rem; background: var(--surface); border-radius: 18px; border: 1px solid var(--line); }
.peaks__list { list-style: none; counter-reset: peak; display: grid; gap: 1.1rem; }
.peaks__item {
	position: relative;
	display: grid;
	gap: .4rem;
	padding-left: 2.4rem;
	counter-increment: peak;
}
.peaks__item::before {
	content: counter(peak);
	position: absolute;
	left: 0; top: -.15rem;
	font: 700 1.9rem/1 var(--font-sign);
	color: var(--pine-2);
}
.peaks__title { font-size: 1rem; font-weight: 600; line-height: 1.25; }
.peaks__title a { color: inherit; text-decoration: none; }
.peaks__title a:hover { text-decoration: underline; }
.peaks__bar {
	display: block;
	height: 4px;
	width: calc(var(--v, 0) * 100%);
	background: var(--resin);
	border-radius: 4px;
}

.wander {
	display: flex;
	gap: .9rem;
	align-items: center;
	padding: 1.1rem 1.25rem;
	color: #EAF3EC;
	background: var(--pine);
	border-radius: 18px 18px 18px 4px;
	text-decoration: none;
	font: .92rem/1.4 var(--font-ui);
}
.wander strong { display: block; font: 700 1.05rem/1.2 var(--font-sign); color: #fff; }
.wander .icon { width: 28px; height: 28px; color: var(--birch); }
.wander:hover { background: var(--pine-2); }

.side__widgets { display: grid; gap: 1.75rem; }
.widget { font-size: .95rem; }
.widget__title, .widget h2 { font-size: 1.2rem; margin-bottom: .75rem; }
.widget ul, .widget ol { list-style: none; display: grid; gap: .55rem; padding: 0; }
.widget li a { color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.35; }
.widget li a:hover { text-decoration: underline; }
.widget .wp-block-search__inside-wrapper { gap: .4rem; }
.widget .wp-block-search__input { padding: .65rem .9rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; }
.widget .wp-block-search__button { margin: 0; padding: .65rem 1rem; color: #fff; background: var(--pine); border: 0; border-radius: 999px; font: 600 .9rem/1 var(--font-ui); cursor: pointer; }
.widget .wp-block-search__label { font: 700 1.2rem/1.2 var(--font-sign); margin-bottom: .6rem; }
.widget .no-comments { color: var(--ink-soft); }

/* Temų lentynos */
.shelf {
	padding-block: clamp(2rem, 4vw, 3rem);
	background: color-mix(in srgb, var(--c) 6%, transparent);
	border-top: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.shelf + .shelf { margin-top: 0; }
.shelf__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.shelf__head .section-title { margin: 0; }
.shelf__nav { display: flex; align-items: center; gap: .25rem; }
.shelf__all { margin-left: .5rem; font: 600 .88rem/1 var(--font-ui); white-space: nowrap; }
.shelf__list {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(230px, 270px);
	gap: 1.5rem;
	overflow-x: auto;
	padding-bottom: .75rem;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--line-strong) transparent;
	overscroll-behavior-x: contain;
}
.shelf__list > * { scroll-snap-align: start; }

/* Puslapiavimas */
.pager { margin-top: 3rem; }
.pager .nav-links, .pager { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.pager .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px; height: 44px;
	padding: 0 .75rem;
	font: 600 .95rem/1 var(--font-ui);
	color: var(--ink);
	text-decoration: none;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
}
.pager .page-numbers:hover { border-color: var(--line-strong); }
.pager .page-numbers.current { color: #fff; background: var(--pine); border-color: var(--pine); }
.pager .page-numbers.dots { border: 0; background: none; }

/* ==========================================================================
   7. Archyvų antraštės
   ========================================================================== */
.page-head { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.page-head__title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	margin-top: .75rem;
	font-size: clamp(2.2rem, 5.4vw, 3.8rem);
	letter-spacing: -.02em;
	line-height: 1;
}
.page-head__desc { max-width: 64ch; margin-top: 1rem; font: 1.1rem/1.6 var(--font-text); color: var(--ink-soft); }
.page-head__desc p + p { margin-top: .75rem; }
.page-head__sub { margin-top: .9rem; font: 600 .92rem/1.3 var(--font-ui); color: var(--ink-soft); }
.page-head__sub::before {
	content: "";
	display: block;
	width: 72px; height: 4px;
	margin-bottom: .9rem;
	background: var(--c, var(--pine-2));
	border-radius: 2px;
}
.page-head__search { max-width: 560px; margin-top: 1.5rem; }
.page-head--compact { padding: 0 0 1rem; }
.page-head--compact .page-head__title { margin-top: 0; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-head .chips { margin-top: 1.5rem; }

.page-head--lost { padding-top: 3rem; }
.lost__code {
	font: 700 clamp(6rem, 18vw, 12rem)/.85 var(--font-sign);
	color: transparent;
	-webkit-text-stroke: 2px var(--line-strong);
	letter-spacing: -.04em;
}

/* Naršymo kelias */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; font: .84rem/1.4 var(--font-ui); color: var(--ink-soft); }
.crumbs li { display: inline-flex; align-items: center; gap: .25rem; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); margin-right: .1rem; }
.crumbs a { color: var(--ink-soft); }
.crumbs [aria-current] { color: var(--ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   8. Įrašas
   ========================================================================== */
.entry-head,
.entry-layout {
	display: grid;
	grid-template-columns: 230px minmax(0, 720px);
	column-gap: clamp(2rem, 5vw, 4.5rem);
	justify-content: center;
}
.entry-head > * { grid-column: 1 / -1; }
.entry-head__title { max-width: 28ch; }
.entry-head__lede { max-width: 58ch; }
.entry-head { padding-top: clamp(1.25rem, 3vw, 2.25rem); padding-bottom: 2rem; }
.entry-head__cats { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; }
.entry-head__title {
	margin-top: 1rem;
	font-size: clamp(2.1rem, 4.8vw, 3.5rem);
	line-height: 1.04;
	letter-spacing: -.02em;
	text-wrap: balance;
}
.entry-head__lede { margin-top: 1.1rem; font: 1.25rem/1.55 var(--font-text); color: var(--ink-soft); }
.entry-head__meta { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.meta__author { font-weight: 600; color: var(--ink); }

.entry-hero { margin: 0 auto 2.75rem; }
.entry-hero img {
	width: 100%;
	max-height: 64vh;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 24px 24px 24px 4px;
}
.entry-hero figcaption { margin-top: .6rem; font: .84rem/1.4 var(--font-ui); color: var(--ink-soft); }

.entry-rail { position: relative; }
.entry-rail > * + * { margin-top: 1.75rem; }
@media (min-width: 1001px) {
	.entry-rail { align-self: start; position: sticky; top: calc(var(--header-h) + var(--admin) + 1.25rem); max-height: calc(100vh - var(--header-h) - var(--admin) - 2rem); overflow-y: auto; scrollbar-width: thin; }
}

.toc summary {
	cursor: pointer;
	font: 700 1.05rem/1.2 var(--font-sign);
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: .75rem;
	border-bottom: 2px solid var(--ink);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "−"; font: 400 1.2rem/1 var(--font-ui); color: var(--ink-soft); }
.toc:not([open]) summary::after { content: "+"; }
.toc__list { list-style: none; margin-top: .5rem; }
.toc__item a {
	display: block;
	padding: .45rem 0 .45rem .85rem;
	font: .88rem/1.35 var(--font-ui);
	color: var(--ink-soft);
	text-decoration: none;
	border-left: 2px solid var(--line);
}
.toc__item--h3 a { padding-left: 1.6rem; font-size: .83rem; }
.toc__item a:hover { color: var(--ink); }
.toc__item a.is-active { color: var(--ink); font-weight: 600; border-left-color: var(--pine-2); box-shadow: inset 2px 0 0 var(--birch); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.share__label { width: 100%; margin-bottom: .2rem; font: 600 .82rem/1.2 var(--font-ui); color: var(--ink-soft); }
.share__btn {
	display: inline-grid;
	place-items: center;
	width: 40px; height: 40px;
	padding: 0;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 50%;
	cursor: pointer;
	text-decoration: none;
}
.share__btn:hover { border-color: var(--pine-2); color: var(--link); }
.share__btn[hidden] { display: none; }
.share__status { width: 100%; font: .8rem/1.3 var(--font-ui); color: var(--pine-2); min-height: 1em; }

/* Turinio tipografija */
.prose {
	font-family: var(--font-text);
	font-size: 1.16rem;
	line-height: 1.72;
	color: var(--ink);
	overflow-wrap: break-word;
	min-width: 0;
}
.prose > * + * { margin-top: 1.25em; }
.prose h2, .prose h3, .prose h4 { scroll-margin-top: calc(var(--header-h) + var(--admin) + 1rem); }
.prose h2 {
	margin-top: 2.2em;
	font-size: 1.72rem;
	line-height: 1.15;
	letter-spacing: -.012em;
}
.prose h2::before {
	content: "";
	display: block;
	width: 34px; height: 4px;
	margin-bottom: .7rem;
	background: var(--birch);
	border-radius: 2px;
}
.prose h3 { margin-top: 1.9em; font-size: 1.32rem; line-height: 1.2; }
.prose h4 { margin-top: 1.6em; font-size: 1.1rem; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--pine-2); font-weight: 700; }
.prose blockquote {
	margin-inline: 0;
	padding: .2em 0 .2em 1.25em;
	border-left: 4px solid var(--birch);
	font-size: 1.22em;
	font-style: italic;
	color: var(--ink);
}
.prose blockquote cite { display: block; margin-top: .5em; font: normal .8rem/1.3 var(--font-ui); color: var(--ink-soft); }
.prose img { border-radius: 14px; }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-caption-text, .prose .wp-element-caption { margin-top: .5rem; font: .84rem/1.4 var(--font-ui); color: var(--ink-soft); }
.prose hr { margin: 2.5em 0; border: 0; height: 8px; background: radial-gradient(circle, var(--line-strong) 1.5px, transparent 2px) 0 50% / 16px 8px repeat-x; }
.prose table { width: 100%; border-collapse: collapse; font: .95rem/1.45 var(--font-ui); }
.prose th, .prose td { padding: .7rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-2); font-weight: 700; }
.prose .wp-block-table { overflow-x: auto; }
.prose .wp-block-table table, .prose .wp-block-table th, .prose .wp-block-table td { border: 0; border-bottom: 1px solid var(--line); }
.prose .wp-block-table thead { border-bottom: 2px solid var(--ink); }
.prose code { padding: .1em .35em; font-size: .88em; background: var(--bg-2); border-radius: 5px; }
.prose pre { padding: 1rem 1.2rem; overflow-x: auto; background: var(--bg-2); border-radius: 12px; font-size: .9rem; }
.prose pre code { padding: 0; background: none; }
.prose iframe { border-radius: 14px; }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignwide { margin-inline: calc(-1 * min(6vw, 120px)); max-width: none; }
.prose .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; border-radius: 0; }
.prose .alignfull img { border-radius: 0; }
.prose::after { content: ""; display: table; clear: both; }
.prose .wp-block-button__link { border-radius: 999px; font-family: var(--font-ui); text-decoration: none; }

.page-links { display: flex; gap: .4rem; font-family: var(--font-ui); }

.entry-foot { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--ink); display: grid; gap: 2rem; font-family: var(--font-ui); }
.entry-foot .share__label { width: auto; margin: 0 .5rem 0 0; }
.tags, .prose .tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.tags a { font: 600 .85rem/1 var(--font-ui); color: var(--ink-soft); text-decoration: none; padding: .45rem .75rem; background: var(--bg-2); border-radius: 8px; }
.tags a:hover { color: var(--ink); }
.prose .tags li + li { margin-top: 0; }

.about-box { display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }
.about-box__mark { width: 56px; height: 56px; border-radius: 14px; }
.about-box__name { margin-bottom: .3rem; font: 700 1.1rem/1.2 var(--font-sign); color: var(--ink); }
.about-box p { margin: 0; }
.prose .about-box p + p { margin-top: 0; }

/* Ankstesnis / naujesnis */
.stepper { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3.5rem; margin-bottom: 3.5rem; }
.stepper__link {
	display: grid;
	gap: .5rem;
	padding: 1.25rem 0 0;
	color: var(--ink);
	text-decoration: none;
	border-top: 2px solid var(--line-strong);
}
.stepper__link:hover { border-top-color: var(--pine-2); }
.stepper__link:hover .stepper__title { text-decoration: underline; }
.stepper__link--next { grid-column: 2; text-align: right; justify-items: end; }
.stepper__dir { display: inline-flex; align-items: center; gap: .4rem; font: 600 .82rem/1 var(--font-ui); color: var(--ink-soft); }
.stepper__title { font: 600 1.2rem/1.25 var(--font-sign); text-wrap: balance; }

.related { padding-bottom: 4.5rem; }

/* Pasiūlymas skaityti toliau */
.readnext {
	position: fixed;
	z-index: 40;
	left: 1.25rem;
	bottom: 1.25rem;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	gap: .9rem;
	align-items: center;
	width: min(390px, calc(100vw - 6.5rem));
	padding: .75rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 18px 18px 18px 4px;
	box-shadow: var(--shadow);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .3s ease, transform .3s ease;
}
.readnext[hidden] { display: none; }
.readnext.is-visible { opacity: 1; transform: none; }
.readnext__thumb { display: block; width: 64px; height: 64px; overflow: hidden; border-radius: 12px; }
.readnext__thumb img, .readnext__thumb .thumb-fallback { width: 100%; height: 100%; object-fit: cover; }
.readnext__label { font: 600 .76rem/1.2 var(--font-ui); color: var(--ink-soft); }
.readnext__title { display: block; margin-top: .2rem; font: 600 1rem/1.25 var(--font-sign); color: var(--ink); text-decoration: none; }
.readnext__title:hover { text-decoration: underline; }
.readnext__close { align-self: start; width: 32px; height: 32px; }

/* ==========================================================================
   9. Paieška
   ========================================================================== */
.search-form { display: flex; gap: .5rem; }
.search-form__input {
	flex: 1;
	min-width: 0;
	padding: .85rem 1.1rem;
	font: 1.05rem/1.2 var(--font-ui);
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: 999px;
}
.search-form__input:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.search-form__btn {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: 0 1.25rem;
	font: 600 .95rem/1 var(--font-ui);
	color: #fff;
	background: var(--pine);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}
.search-form__btn:hover { background: var(--pine-2); }

.search-dialog {
	width: min(640px, 92vw);
	margin-top: 12vh;
	padding: 0;
	color: var(--ink);
	background: var(--sky);
	border: 0;
	border-radius: 22px;
	box-shadow: var(--shadow);
}
.search-dialog::backdrop { background: rgba(10, 20, 15, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.search-dialog__inner { position: relative; padding: 2rem; }
.search-dialog__close { position: absolute; top: .75rem; right: .75rem; }
.search-dialog__title { margin-bottom: 1rem; font: 700 1.6rem/1.1 var(--font-sign); }
.search-dialog__hint { margin-top: .9rem; font-size: .85rem; color: var(--ink-soft); }
.search-dialog:not([open]) { display: none; }
.search-dialog:target { display: block; position: fixed; inset: 0; margin: 12vh auto auto; z-index: 100; }

/* ==========================================================================
   10. Poraštė – miško paklotė
   ========================================================================== */
.site-footer {
	position: relative;
	margin-top: 5rem;
	padding-top: 3.5rem;
	color: #C9D8CE;
	background: var(--peat);
}
.site-footer__treeline {
	position: absolute;
	left: 0; right: 0;
	top: -59px;
	height: 60px;
	background-color: var(--peat);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 60'%3E%3Cpath d='M0 60V52H480V60ZM6.8 23.6 11.6 36.0 9.3 36.0 15.0 47.6 11.8 47.6 18.2 59.3 -4.5 59.3 1.8 47.6 -1.4 47.6 4.3 36.0 2.0 36.0ZM19.2 31.7 23.2 41.3 21.3 41.3 26.2 50.4 23.4 50.4 28.9 59.4 9.5 59.4 14.9 50.4 12.2 50.4 17.0 41.3 15.1 41.3ZM29.1 32.1 33.0 41.6 31.1 41.6 35.9 50.5 33.2 50.5 38.5 59.4 19.6 59.4 24.9 50.5 22.2 50.5 27.0 41.6 25.1 41.6ZM38.9 20.1 44.0 33.7 41.6 33.7 47.7 46.4 44.3 46.4 51.1 59.2 26.7 59.2 33.6 46.4 30.1 46.4 36.2 33.7 33.8 33.7ZM51.2 20.4 57.3 33.9 54.4 33.9 61.7 46.5 57.6 46.5 65.7 59.2 36.7 59.2 44.8 46.5 40.8 46.5 48.0 33.9 45.1 33.9ZM62.7 26.9 67.6 38.1 65.3 38.1 71.1 48.7 67.8 48.7 74.3 59.3 51.1 59.3 57.6 48.7 54.3 48.7 60.1 38.1 57.8 38.1ZM80.0 15.5 86.1 30.7 83.2 30.7 90.6 44.9 86.4 44.9 94.7 59.1 65.2 59.1 73.5 44.9 69.3 44.9 76.7 30.7 73.8 30.7ZM96.9 32.5 101.2 41.9 99.2 41.9 104.2 50.7 101.4 50.7 107.1 59.5 86.8 59.5 92.5 50.7 89.6 50.7 94.7 41.9 92.7 41.9ZM106.6 29.4 110.6 39.8 108.7 39.8 113.4 49.6 110.8 49.6 116.1 59.4 97.1 59.4 102.4 49.6 99.8 49.6 104.5 39.8 102.6 39.8ZM120.3 7.9 127.2 25.6 123.9 25.6 132.1 42.3 127.5 42.3 136.7 59.0 103.9 59.0 113.1 42.3 108.5 42.3 116.7 25.6 113.4 25.6ZM138.3 13.6 144.8 29.3 141.7 29.3 149.4 44.2 145.1 44.2 153.6 59.1 123.0 59.1 131.6 44.2 127.3 44.2 135.0 29.3 131.9 29.3ZM151.5 32.0 155.1 41.5 153.3 41.5 157.6 50.5 155.2 50.5 160.0 59.4 142.9 59.4 147.7 50.5 145.3 50.5 149.6 41.5 147.9 41.5ZM164.1 12.2 170.8 28.5 167.6 28.5 175.6 43.8 171.1 43.8 180.0 59.0 148.1 59.0 157.0 43.8 152.6 43.8 160.6 28.5 157.4 28.5ZM179.6 15.3 185.9 30.5 182.9 30.5 190.4 44.8 186.2 44.8 194.6 59.1 164.5 59.1 173.0 44.8 168.8 44.8 176.3 30.5 173.3 30.5ZM196.6 8.6 204.3 26.1 200.6 26.1 209.8 42.5 204.6 42.5 214.9 59.0 178.3 59.0 188.5 42.5 183.4 42.5 192.6 26.1 188.9 26.1ZM212.5 15.6 218.9 30.7 215.8 30.7 223.4 44.9 219.2 44.9 227.7 59.1 197.3 59.1 205.8 44.9 201.6 44.9 209.2 30.7 206.1 30.7ZM232.5 10.7 239.2 27.4 236.0 27.4 244.0 43.2 239.5 43.2 248.4 59.0 216.6 59.0 225.5 43.2 221.0 43.2 229.0 27.4 225.8 27.4ZM250.3 30.2 254.4 40.3 252.4 40.3 257.4 49.9 254.6 49.9 260.2 59.4 240.3 59.4 245.9 49.9 243.1 49.9 248.1 40.3 246.1 40.3ZM262.8 29.1 267.2 39.6 265.1 39.6 270.3 49.5 267.4 49.5 273.2 59.4 252.3 59.4 258.2 49.5 255.2 49.5 260.5 39.6 258.4 39.6ZM275.9 12.6 283.1 28.7 279.6 28.7 288.2 43.9 283.4 43.9 293.0 59.1 258.8 59.1 268.3 43.9 263.5 43.9 272.1 28.7 268.7 28.7ZM295.6 6.0 303.0 24.3 299.4 24.3 308.2 41.6 303.3 41.6 313.1 58.9 278.0 58.9 287.9 41.6 282.9 41.6 291.7 24.3 288.2 24.3ZM315.4 15.0 322.0 30.3 318.9 30.3 326.7 44.7 322.3 44.7 331.0 59.1 299.8 59.1 308.6 44.7 304.2 44.7 312.0 30.3 308.9 30.3ZM334.8 7.1 343.1 25.1 339.2 25.1 349.1 42.0 343.5 42.0 354.7 58.9 314.9 58.9 326.1 42.0 320.5 42.0 330.4 25.1 326.5 25.1ZM353.1 12.7 359.2 28.8 356.3 28.8 363.5 43.9 359.5 43.9 367.5 59.1 338.7 59.1 346.8 43.9 342.8 43.9 350.0 28.8 347.1 28.8ZM372.4 13.3 379.9 29.2 376.3 29.2 385.2 44.1 380.2 44.1 390.1 59.1 354.7 59.1 364.6 44.1 359.7 44.1 368.5 29.2 365.0 29.2ZM391.1 24.9 396.0 36.8 393.7 36.8 399.5 48.1 396.2 48.1 402.7 59.3 379.5 59.3 386.0 48.1 382.7 48.1 388.5 36.8 386.2 36.8ZM403.3 33.3 407.1 42.4 405.3 42.4 409.8 50.9 407.2 50.9 412.3 59.5 394.3 59.5 399.3 50.9 396.8 50.9 401.3 42.4 399.5 42.4ZM411.7 30.3 415.5 40.4 413.7 40.4 418.3 49.9 415.7 49.9 420.8 59.4 402.7 59.4 407.7 49.9 405.2 49.9 409.7 40.4 407.9 40.4ZM423.3 29.9 427.3 40.1 425.4 40.1 430.2 49.8 427.5 49.8 432.9 59.4 413.6 59.4 419.0 49.8 416.3 49.8 421.1 40.1 419.2 40.1ZM437.5 6.1 444.4 24.4 441.1 24.4 449.4 41.7 444.7 41.7 454.0 58.9 421.0 58.9 430.2 41.7 425.6 41.7 433.8 24.4 430.5 24.4ZM455.0 16.4 461.8 31.2 458.5 31.2 466.6 45.2 462.1 45.2 471.1 59.1 438.8 59.1 447.9 45.2 443.4 45.2 451.4 31.2 448.2 31.2ZM476.0 6.4 483.3 24.6 479.8 24.6 488.5 41.8 483.6 41.8 493.3 58.9 458.7 58.9 468.4 41.8 463.6 41.8 472.2 24.6 468.8 24.6ZM-4.0 6.4 3.3 24.6 -0.2 24.6 8.5 41.8 3.6 41.8 13.3 58.9 -21.3 58.9 -11.6 41.8 -16.4 41.8 -7.8 24.6 -11.2 24.6Z'/%3E%3C/svg%3E") repeat-x bottom left / 480px 60px;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 60'%3E%3Cpath d='M0 60V52H480V60ZM6.8 23.6 11.6 36.0 9.3 36.0 15.0 47.6 11.8 47.6 18.2 59.3 -4.5 59.3 1.8 47.6 -1.4 47.6 4.3 36.0 2.0 36.0ZM19.2 31.7 23.2 41.3 21.3 41.3 26.2 50.4 23.4 50.4 28.9 59.4 9.5 59.4 14.9 50.4 12.2 50.4 17.0 41.3 15.1 41.3ZM29.1 32.1 33.0 41.6 31.1 41.6 35.9 50.5 33.2 50.5 38.5 59.4 19.6 59.4 24.9 50.5 22.2 50.5 27.0 41.6 25.1 41.6ZM38.9 20.1 44.0 33.7 41.6 33.7 47.7 46.4 44.3 46.4 51.1 59.2 26.7 59.2 33.6 46.4 30.1 46.4 36.2 33.7 33.8 33.7ZM51.2 20.4 57.3 33.9 54.4 33.9 61.7 46.5 57.6 46.5 65.7 59.2 36.7 59.2 44.8 46.5 40.8 46.5 48.0 33.9 45.1 33.9ZM62.7 26.9 67.6 38.1 65.3 38.1 71.1 48.7 67.8 48.7 74.3 59.3 51.1 59.3 57.6 48.7 54.3 48.7 60.1 38.1 57.8 38.1ZM80.0 15.5 86.1 30.7 83.2 30.7 90.6 44.9 86.4 44.9 94.7 59.1 65.2 59.1 73.5 44.9 69.3 44.9 76.7 30.7 73.8 30.7ZM96.9 32.5 101.2 41.9 99.2 41.9 104.2 50.7 101.4 50.7 107.1 59.5 86.8 59.5 92.5 50.7 89.6 50.7 94.7 41.9 92.7 41.9ZM106.6 29.4 110.6 39.8 108.7 39.8 113.4 49.6 110.8 49.6 116.1 59.4 97.1 59.4 102.4 49.6 99.8 49.6 104.5 39.8 102.6 39.8ZM120.3 7.9 127.2 25.6 123.9 25.6 132.1 42.3 127.5 42.3 136.7 59.0 103.9 59.0 113.1 42.3 108.5 42.3 116.7 25.6 113.4 25.6ZM138.3 13.6 144.8 29.3 141.7 29.3 149.4 44.2 145.1 44.2 153.6 59.1 123.0 59.1 131.6 44.2 127.3 44.2 135.0 29.3 131.9 29.3ZM151.5 32.0 155.1 41.5 153.3 41.5 157.6 50.5 155.2 50.5 160.0 59.4 142.9 59.4 147.7 50.5 145.3 50.5 149.6 41.5 147.9 41.5ZM164.1 12.2 170.8 28.5 167.6 28.5 175.6 43.8 171.1 43.8 180.0 59.0 148.1 59.0 157.0 43.8 152.6 43.8 160.6 28.5 157.4 28.5ZM179.6 15.3 185.9 30.5 182.9 30.5 190.4 44.8 186.2 44.8 194.6 59.1 164.5 59.1 173.0 44.8 168.8 44.8 176.3 30.5 173.3 30.5ZM196.6 8.6 204.3 26.1 200.6 26.1 209.8 42.5 204.6 42.5 214.9 59.0 178.3 59.0 188.5 42.5 183.4 42.5 192.6 26.1 188.9 26.1ZM212.5 15.6 218.9 30.7 215.8 30.7 223.4 44.9 219.2 44.9 227.7 59.1 197.3 59.1 205.8 44.9 201.6 44.9 209.2 30.7 206.1 30.7ZM232.5 10.7 239.2 27.4 236.0 27.4 244.0 43.2 239.5 43.2 248.4 59.0 216.6 59.0 225.5 43.2 221.0 43.2 229.0 27.4 225.8 27.4ZM250.3 30.2 254.4 40.3 252.4 40.3 257.4 49.9 254.6 49.9 260.2 59.4 240.3 59.4 245.9 49.9 243.1 49.9 248.1 40.3 246.1 40.3ZM262.8 29.1 267.2 39.6 265.1 39.6 270.3 49.5 267.4 49.5 273.2 59.4 252.3 59.4 258.2 49.5 255.2 49.5 260.5 39.6 258.4 39.6ZM275.9 12.6 283.1 28.7 279.6 28.7 288.2 43.9 283.4 43.9 293.0 59.1 258.8 59.1 268.3 43.9 263.5 43.9 272.1 28.7 268.7 28.7ZM295.6 6.0 303.0 24.3 299.4 24.3 308.2 41.6 303.3 41.6 313.1 58.9 278.0 58.9 287.9 41.6 282.9 41.6 291.7 24.3 288.2 24.3ZM315.4 15.0 322.0 30.3 318.9 30.3 326.7 44.7 322.3 44.7 331.0 59.1 299.8 59.1 308.6 44.7 304.2 44.7 312.0 30.3 308.9 30.3ZM334.8 7.1 343.1 25.1 339.2 25.1 349.1 42.0 343.5 42.0 354.7 58.9 314.9 58.9 326.1 42.0 320.5 42.0 330.4 25.1 326.5 25.1ZM353.1 12.7 359.2 28.8 356.3 28.8 363.5 43.9 359.5 43.9 367.5 59.1 338.7 59.1 346.8 43.9 342.8 43.9 350.0 28.8 347.1 28.8ZM372.4 13.3 379.9 29.2 376.3 29.2 385.2 44.1 380.2 44.1 390.1 59.1 354.7 59.1 364.6 44.1 359.7 44.1 368.5 29.2 365.0 29.2ZM391.1 24.9 396.0 36.8 393.7 36.8 399.5 48.1 396.2 48.1 402.7 59.3 379.5 59.3 386.0 48.1 382.7 48.1 388.5 36.8 386.2 36.8ZM403.3 33.3 407.1 42.4 405.3 42.4 409.8 50.9 407.2 50.9 412.3 59.5 394.3 59.5 399.3 50.9 396.8 50.9 401.3 42.4 399.5 42.4ZM411.7 30.3 415.5 40.4 413.7 40.4 418.3 49.9 415.7 49.9 420.8 59.4 402.7 59.4 407.7 49.9 405.2 49.9 409.7 40.4 407.9 40.4ZM423.3 29.9 427.3 40.1 425.4 40.1 430.2 49.8 427.5 49.8 432.9 59.4 413.6 59.4 419.0 49.8 416.3 49.8 421.1 40.1 419.2 40.1ZM437.5 6.1 444.4 24.4 441.1 24.4 449.4 41.7 444.7 41.7 454.0 58.9 421.0 58.9 430.2 41.7 425.6 41.7 433.8 24.4 430.5 24.4ZM455.0 16.4 461.8 31.2 458.5 31.2 466.6 45.2 462.1 45.2 471.1 59.1 438.8 59.1 447.9 45.2 443.4 45.2 451.4 31.2 448.2 31.2ZM476.0 6.4 483.3 24.6 479.8 24.6 488.5 41.8 483.6 41.8 493.3 58.9 458.7 58.9 468.4 41.8 463.6 41.8 472.2 24.6 468.8 24.6ZM-4.0 6.4 3.3 24.6 -0.2 24.6 8.5 41.8 3.6 41.8 13.3 58.9 -21.3 58.9 -11.6 41.8 -16.4 41.8 -7.8 24.6 -11.2 24.6Z'/%3E%3C/svg%3E") repeat-x bottom left / 480px 60px;
	pointer-events: none;
}
.site-footer a { color: #EAF3EC; }
.site-footer__inner {
	display: grid;
	grid-template-columns: 1.25fr 1.4fr .9fr;
	gap: clamp(2rem, 5vw, 4rem);
	padding-bottom: 3rem;
}
.brand__link--footer { color: #fff; margin-bottom: 1.1rem; }
.brand__link--footer .brand__top { color: #A9BFB1; }
.site-footer__about p { max-width: 42ch; font: 1rem/1.6 var(--font-text); }
.site-footer__title { margin-bottom: 1.1rem; font-size: 1.15rem; color: #fff; }

.trailmap { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1.5rem; }
.trailmap a {
	display: flex;
	align-items: center;
	padding: .45rem 0;
	font: 600 .93rem/1.2 var(--font-ui);
	text-decoration: none;
	border-bottom: 1px dashed rgba(255, 255, 255, .14);
}
.trailmap a:hover .trailmap__name { text-decoration: underline; }
.trailmap__count { margin-left: auto; padding-left: .5rem; font-weight: 500; color: #8FA699; }

.footer-menu { list-style: none; display: grid; gap: .5rem; margin-bottom: 1.5rem; }
.footer-menu a { font: 600 .95rem/1.3 var(--font-ui); text-decoration: none; }
.footer-menu a:hover { text-decoration: underline; }

.socials { list-style: none; display: flex; gap: .4rem; margin-top: 1.25rem; }
.socials a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.socials a:hover { background: rgba(255, 255, 255, .08); }

.site-footer__widgets { padding-bottom: 2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.site-footer__widgets .widget { color: inherit; }

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.5rem;
	padding-bottom: 2rem;
	font: .85rem/1.4 var(--font-ui);
	color: #8FA699;
	border-top: 1px solid rgba(255, 255, 255, .1);
}
.to-top-link { color: #8FA699 !important; }
.site-footer :focus-visible { outline-color: var(--birch); }

/* ==========================================================================
   11. Mygtukas „Į viršų“ su pažangos žiedu
   ========================================================================== */
.summit {
	position: fixed;
	z-index: 45;
	right: 1.25rem;
	bottom: 1.25rem;
	display: grid;
	place-items: center;
	width: 56px; height: 56px;
	color: #fff;
	background: var(--pine);
	border-radius: 50%;
	box-shadow: var(--shadow);
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.summit.is-visible { opacity: 1; visibility: visible; transform: none; }
.summit:hover { background: var(--pine-2); }
.summit .icon { width: 22px; height: 22px; }
.summit__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.summit__ring circle {
	fill: none;
	stroke: var(--birch);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 100;
	stroke-dashoffset: calc(100 - var(--p, 0) * 100);
}
.summit__label {
	position: absolute;
	right: calc(100% + .6rem);
	padding: .35rem .6rem;
	font: 600 .78rem/1 var(--font-ui);
	white-space: nowrap;
	color: var(--ink);
	background: var(--surface);
	border-radius: 8px;
	box-shadow: var(--shadow);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s;
}
.summit:hover .summit__label, .summit:focus-visible .summit__label { opacity: 1; }

/* ==========================================================================
   12. Prisitaikymas
   ========================================================================== */
@media (max-width: 1100px) {
	.layout { grid-template-columns: minmax(0, 1fr) 280px; }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.site-footer__about { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
	.entry-head, .entry-layout { grid-template-columns: minmax(0, 720px); }
	.entry-head > * { grid-column: 1; }
	.entry-rail { order: -1; margin-bottom: 2rem; }
	.entry-rail .share { display: none; }
	.toc { padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
	.toc summary { border-bottom: 0; padding-bottom: 0; }
	.toc[open] summary { padding-bottom: .5rem; }
}

@media (max-width: 900px) {
	.canopy { grid-template-columns: 1fr; }
	.layout { grid-template-columns: 1fr; }
	.side { position: static; }
	.grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lead__body { width: auto; margin-top: -2.5rem; margin-right: 1.5rem; padding-right: 1.25rem; }
	:root .lead__body::before { height: 2.5rem; }
}

@media (max-width: 640px) {
	.grid, .grid--three, .grid--stream { grid-template-columns: 1fr; gap: 2rem; }
	.grid--feature-first > :first-child { grid-template-columns: 1fr; }
	.grid--feature-first > :first-child .card__title { font-size: 1.3rem; }
	.lead__media { border-radius: 16px 16px 16px 4px; }
	.lead__body { margin-top: -1.75rem; margin-right: 1rem; padding: 1rem 1rem 0 0; }
	:root .lead__body::before { height: 1.75rem; }
	.lead__excerpt { font-size: 1rem; }
	.prose { font-size: 1.08rem; }
	.prose .alignleft, .prose .alignright { float: none; margin: 1em 0; max-width: 100%; }
	.prose .alignwide { margin-inline: 0; }
	.stepper { grid-template-columns: 1fr; }
	.stepper__link--next { grid-column: 1; }
	.site-footer__inner { grid-template-columns: 1fr; }
	.trailmap { grid-template-columns: 1fr 1fr; }
	.shelf__nav .icon-btn { display: none; }
	.search-form__btn span { display: none; }
	.search-form__btn { padding: 0 1rem; }
	.readnext { left: .75rem; bottom: .75rem; width: calc(100vw - 5.5rem); grid-template-columns: 52px minmax(0, 1fr) auto; }
	.readnext__thumb { width: 52px; height: 52px; }
	.summit { right: .75rem; bottom: .75rem; width: 52px; height: 52px; }
	.entry-hero { padding-inline: 0; }
	.crumbs li:last-child { display: none; }
	.crumbs li:nth-last-child(2)::after { content: ""; }
	.entry-hero img { border-radius: 0; }
	.entry-hero figcaption { padding-inline: var(--gutter); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
	.site-header, .site-footer, .altimeter, .summit, .readnext, .entry-rail, .stepper, .related, .side, .share, .shelf { display: none !important; }
	body { background: #fff; color: #000; }
	.entry-head, .entry-layout { display: block; }
	.prose a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
