/*
Theme Name: Daigas
Theme URI: https://miskofestivalis.lt/
Author: miskofestivalis.lt
Description: Greita, SEO optimizuota patarimų ir naujienų portalo tema „Daigas“. Unikalus „daigyno“ dizainas, tamsus režimas, turinio rodyklė, skaitymo progreso juosta, „Sėklų dėžutė“, temų žemėlapis, susiję straipsniai ir mygtukas „Į viršų“. Veikia be jokių papildomų įskiepių: SEO meta žymos, Open Graph, JSON-LD struktūriniai duomenys, 301 nukreipimai ir favicon – pačioje temoje. Jokių formų.
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: daigas
Tags: blog, news, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. Spalvos ir kintamieji
   ========================================================================== */
:root {
	--bg: #f4f1e6;
	--bg-2: #ebe6d5;
	--surface: #fffdf6;
	--ink: #13221a;
	--ink-2: #39483e;
	--muted: #646d5f;
	--line: #d8d2bd;
	--moss: #2b5a39;
	--forest: #14301f;
	--sprout: #c5ee58;
	--sprout-2: #e4fba2;
	--clay: #c4582f;
	--focus: #2b5a39;

	--chip-l: 90%;
	--chip-s: 52%;
	--chip-fg-l: 24%;
	--tint-l: 93%;
	--tint-s: 42%;
	--accent-l: 38%;

	--logo-bubble: #14301f;
	--logo-leaf: #c5ee58;
	--logo-leaf-2: #e4fba2;

	--shadow-sm: 0 1px 0 rgba(19, 34, 26, .06), 0 4px 14px -8px rgba(19, 34, 26, .25);
	--shadow: 0 1px 0 rgba(19, 34, 26, .05), 0 18px 40px -20px rgba(19, 34, 26, .35);

	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, "TeX Gyre Pagella", Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--r: 18px;
	--r-lg: 26px;
	--header-h: 72px;

	color-scheme: light;
}

[data-theme="dark"] {
	--bg: #0e1611;
	--bg-2: #15211a;
	--surface: #18261d;
	--ink: #e8eee1;
	--ink-2: #c2ccbc;
	--muted: #8f9b8b;
	--line: #2b3b31;
	--moss: #9fd47b;
	--forest: #0a130e;
	--focus: #c5ee58;

	--chip-l: 22%;
	--chip-s: 32%;
	--chip-fg-l: 80%;
	--tint-l: 13%;
	--tint-s: 22%;
	--accent-l: 70%;

	--logo-bubble: #c5ee58;
	--logo-leaf: #14301f;
	--logo-leaf-2: #1f4a2e;

	--shadow-sm: 0 1px 0 rgba(0, 0, 0, .3), 0 4px 14px -8px rgba(0, 0, 0, .6);
	--shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .8);

	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0e1611;
		--bg-2: #15211a;
		--surface: #18261d;
		--ink: #e8eee1;
		--ink-2: #c2ccbc;
		--muted: #8f9b8b;
		--line: #2b3b31;
		--moss: #9fd47b;
		--forest: #0a130e;
		--focus: #c5ee58;
		--chip-l: 22%;
		--chip-s: 32%;
		--chip-fg-l: 80%;
		--tint-l: 13%;
		--tint-s: 22%;
		--accent-l: 70%;
		--logo-bubble: #c5ee58;
		--logo-leaf: #14301f;
		--logo-leaf-2: #1f4a2e;
		--shadow-sm: 0 1px 0 rgba(0, 0, 0, .3), 0 4px 14px -8px rgba(0, 0, 0, .6);
		--shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -20px 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) + 16px);
}

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

body {
	margin: 0;
	background-color: var(--bg);
	background-image: radial-gradient(rgba(120, 110, 80, .07) 1px, transparent 1.2px);
	background-size: 4px 4px;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-thickness: from-font; }
a:hover { color: var(--moss); }

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

button { font: inherit; color: inherit; }

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

::selection { background: var(--sprout); color: #13221a; }

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

.wrap--narrow { max-width: calc(880px + var(--gutter) * 2); }

.sr-only,
.screen-reader-text {
	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-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 1000;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--sprout);
	color: #13221a;
	font-weight: 700;
	text-decoration: none;
}
.skip-link:focus { top: 12px; }

.site-main { display: block; outline: none; padding-bottom: 72px; }

.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }

/* ==========================================================================
   3. Logotipas
   ========================================================================== */
.logo { margin: 0; font-size: inherit; line-height: 1; }
.logo__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--ink);
}
.logo__link:hover { color: var(--ink); }
.logo__mark { width: 46px; height: 46px; flex: none; transition: transform .5s cubic-bezier(.2, .9, .3, 1.4); }
.logo__link:hover .logo__mark { transform: rotate(-8deg) scale(1.05); }
.logo__bubble { fill: var(--logo-bubble); }
.logo__leaf-l { fill: var(--logo-leaf); }
.logo__leaf-r { fill: var(--logo-leaf-2); }
.logo__stem,
.logo__soil { stroke: var(--logo-leaf); }
.logo__text { display: flex; flex-direction: column; gap: 5px; }
.logo__title {
	font-family: var(--serif);
	font-weight: 700;
	font-size: 1.5rem;
	letter-spacing: -.01em;
	line-height: 1;
}
.logo__tagline {
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--muted);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.logo__tagline::before {
	content: "";
	width: 14px;
	height: 3px;
	border-radius: 3px;
	background: var(--sprout);
}
.logo__img { max-height: 52px; width: auto; }

/* ==========================================================================
   4. Antraštė
   ========================================================================== */
.site-header {
	position: sticky;
	top: -37px;
	z-index: 60;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: -5px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 9px; } }

.topbar {
	height: 37px;
	border-bottom: 1px solid var(--line);
	font-size: .8rem;
	color: var(--muted);
}
.topbar__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 100%;
}
.topbar p { margin: 0; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar__stat { overflow: hidden; text-overflow: ellipsis; }
.topbar__pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4caf50;
	box-shadow: 0 0 0 0 rgba(76, 175, 80, .6);
	animation: pulse 2.4s infinite;
}
@keyframes pulse {
	70% { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
	100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.theme-toggle {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px 4px 8px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	cursor: pointer;
	font-size: .78rem;
	font-weight: 600;
	color: var(--ink-2);
}
.theme-toggle:hover { border-color: var(--moss); color: var(--ink); }
.theme-toggle .icon--sun { display: none; }
[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .icon--sun { display: block; }
	:root:not([data-theme="light"]) .theme-toggle .icon--moon { display: none; }
}

.masthead { position: relative; }
.masthead__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: var(--header-h);
}

.nav { flex: 1; min-width: 0; }
.nav__list,
.nav ul.menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 2px;
	overflow-x: auto;
	scrollbar-width: none;
}
.nav__list > li:first-child,
.nav ul.menu > li:first-child { margin-left: auto; }
.nav__list::-webkit-scrollbar { display: none; }
.nav li { flex: none; position: relative; }
.nav a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border-radius: 999px;
	font-size: .93rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--ink-2);
	white-space: nowrap;
	transition: background .2s, color .2s;
}
.nav a::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50% 0 50% 0;
	background: hsl(var(--h, 142) 60% var(--accent-l));
	transition: transform .3s;
}
.nav a:hover,
.nav a[aria-current="page"],
.nav .current-menu-item > a,
.nav .current-menu-ancestor > a {
	background: var(--surface);
	color: var(--ink);
	box-shadow: var(--shadow-sm);
}
.nav a:hover::before { transform: rotate(45deg) scale(1.3); }
.nav .sub-menu { display: none; }

.nav-toggle {
	display: none;
	margin-left: auto;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	font-weight: 700;
	font-size: .9rem;
	cursor: pointer;
}
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }
.nav-toggle[aria-expanded="true"] .icon--menu { display: none; }

@media (max-width: 960px) {
	.js .nav-toggle { display: inline-flex; }
	.js .nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		padding: 16px var(--gutter) 22px;
		background: var(--surface);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
		display: none;
	}
	.js.nav-open .nav,
	.js .nav-open .nav { display: block; }
	.js .nav__list > li:first-child,
	.js .nav ul.menu > li:first-child { margin-left: 0; }
	.js .nav__list,
	.js .nav ul.menu {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 6px;
		overflow: visible;
	}
	.js .nav a { width: 100%; padding: 12px 14px; background: var(--bg); }
	.nav .sub-menu { display: none; }
	html:not(.js) .masthead__inner { flex-wrap: wrap; padding-block: 10px; }
	html:not(.js) .nav { flex-basis: 100%; }
	html:not(.js) .nav__list { justify-content: flex-start; }
	.topbar__stat { display: none !important; }
}

@media (max-width: 520px) {
	.logo__title { font-size: 1.22rem; }
	.logo__mark { width: 40px; height: 40px; }
	.logo__tagline { font-size: .62rem; letter-spacing: .16em; }
	.nav-toggle__label { display: none; }
	.theme-toggle__label { display: none; }
	.topbar__date .icon { display: none; }
}

/* Naujienų juosta */
.ticker {
	border-bottom: 1px solid var(--line);
	background: var(--surface);
	font-size: .9rem;
}
.ticker__inner { display: flex; align-items: center; gap: 16px; height: 46px; }
.ticker__label {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--sprout);
	color: #13221a;
	font-weight: 800;
	font-size: .72rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.ticker__viewport {
	flex: 1;
	min-width: 0;
	display: flex;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
}
.ticker__track {
	flex: none;
	display: flex;
	gap: 40px;
	margin: 0;
	padding: 0 40px 0 0;
	list-style: none;
	animation: ticker 70s linear infinite;
}
.ticker__track li { white-space: nowrap; display: flex; align-items: center; gap: 40px; }
.ticker__track li::after {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50% 0;
	background: var(--moss);
	opacity: .6;
}
.ticker__track a { text-decoration: none; font-weight: 500; color: var(--ink-2); }
.ticker__track a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sprout); text-decoration-thickness: 3px; }
.ticker__viewport:hover .ticker__track,
.ticker__viewport:focus-within .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ==========================================================================
   5. Bendri elementai: žymės, mygtukai, sekcijų antraštės
   ========================================================================== */
.chip {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 11px 4px 9px;
	border-radius: 999px;
	background: hsl(var(--h, 142) var(--chip-s) var(--chip-l));
	color: hsl(var(--h, 142) 60% var(--chip-fg-l));
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .03em;
	text-decoration: none;
	line-height: 1.3;
	transition: transform .2s;
}
.chip::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50% 0 50% 0;
	background: currentColor;
}
.chip:hover { color: hsl(var(--h, 142) 60% var(--chip-fg-l)); transform: translateY(-1px); }
.chip--lg { font-size: .82rem; padding: 6px 14px 6px 11px; }
.chip--light { background: rgba(255, 255, 255, .12); color: var(--sprout); }
.chip--light:hover { color: #fff; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 22px;
	border-radius: 999px;
	border: 1.5px solid var(--ink);
	background: transparent;
	color: var(--ink);
	font-weight: 700;
	font-size: .95rem;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--ink); }
.btn--sprout { background: var(--sprout); border-color: var(--sprout); color: #13221a; }
.btn--sprout:hover { background: #d6f77a; color: #13221a; }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { background: #fff; color: #13221a; }
.btn--big { padding: 16px 30px; font-size: 1rem; background: var(--surface); }
.btn .icon { transition: transform .3s; }
.btn:hover .icon { transform: translateX(3px); }
.btn.is-loading { pointer-events: none; opacity: .7; }
.btn.is-loading .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sec-head {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: end;
	gap: 6px 20px;
	padding-top: 14px;
	margin-bottom: 28px;
	border-top: 2px solid var(--ink);
}
.sec-head__no {
	font-family: var(--mono);
	font-size: .78rem;
	font-weight: 600;
	color: var(--muted);
	align-self: start;
	padding-top: 6px;
}
.sec-head__title {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem);
	line-height: 1.1;
	letter-spacing: -.015em;
}
.sec-head__sub { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.sec-head__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: .88rem;
	font-weight: 700;
	text-decoration: none;
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	white-space: nowrap;
}
.sec-head__more:hover .icon { transform: translateX(3px); }
.sec-head__more .icon { transition: transform .25s; }
@media (max-width: 640px) {
	.sec-head { grid-template-columns: 1fr auto; }
	.sec-head__no { grid-column: 1 / -1; padding: 0; }
}

/* Augimo matuoklis (skaitymo laikas) */
.grow { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.grow__stem {
	position: relative;
	width: min(calc(var(--m, 3) * 5px + 8px), 64px);
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--moss), var(--sprout));
}
.grow__stem::after {
	content: "";
	position: absolute;
	right: -4px;
	top: -5px;
	width: 9px;
	height: 9px;
	border-radius: 0 70% 0 70%;
	background: var(--sprout);
	box-shadow: inset 0 0 0 1px rgba(43, 90, 57, .35);
	transform: rotate(-10deg);
}

/* ==========================================================================
   6. Kortelės
   ========================================================================== */
.card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card__media {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: var(--r);
	background: var(--bg-2);
	isolation: isolate;
}
.card__media img,
.card__media .ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.card:hover .card__media img,
.card:hover .card__media .ph { transform: scale(1.045); }
.card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(19, 34, 26, .08);
	pointer-events: none;
}

.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.card__title {
	margin: 0;
	font-family: var(--serif);
	font-size: 1.32rem;
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -.01em;
}
.card__title a { text-decoration: none; color: var(--ink); }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.card__title a:focus-visible { outline: none; }
.card__title a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 6px; }
.card__title span {
	background: linear-gradient(var(--sprout), var(--sprout)) 0 92% / 0 .34em no-repeat;
	transition: background-size .45s cubic-bezier(.2, .7, .2, 1);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.card:hover .card__title span,
.card__title a:focus-visible span { background-size: 100% .34em; }
[data-theme="dark"] .card__title span { background-image: linear-gradient(rgba(197, 238, 88, .35), rgba(197, 238, 88, .35)); }

.card__excerpt {
	margin: 0;
	color: var(--ink-2);
	font-size: .97rem;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	font-size: .8rem;
	color: var(--muted);
}

/* Pagrindinė (lead) kortelė */
.card--lead .card__media { aspect-ratio: 16 / 9.5; border-radius: var(--r-lg); }
.card--lead .card__title { font-size: clamp(1.85rem, 1.2rem + 2.2vw, 2.85rem); line-height: 1.08; letter-spacing: -.02em; }
.card--lead .card__excerpt { font-size: 1.08rem; -webkit-line-clamp: 3; max-width: 62ch; }
.card--lead .card__title a::after { border-radius: var(--r-lg); }

/* Eilutės (šoninė) kortelė */
.card--row { gap: 12px; }
.card--row .card__media { aspect-ratio: 16 / 9; }
.card--row .card__title { font-size: 1.2rem; }

/* Kompaktiška (sąrašo) kortelė */
.card--compact { flex-direction: row; gap: 14px; align-items: flex-start; }
.card--compact .card__no {
	flex: none;
	width: 2.1ch;
	font-family: var(--serif);
	font-size: 2.1rem;
	font-weight: 700;
	line-height: .9;
	color: transparent;
	-webkit-text-stroke: 1.2px var(--sprout);
}
.card--compact .card__title { font-family: var(--sans); font-size: 1rem; font-weight: 650; line-height: 1.35; letter-spacing: 0; }
.card--compact .card__body { gap: 6px; }

/* Mini kortelė */
.card--mini { gap: 8px; }
.card--mini .card__title { font-size: 1.08rem; }
.card--mini .card__body { gap: 8px; }

/* Užsklanda, kai nėra nuotraukos */
.ph {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background:
		radial-gradient(circle at 85% 15%, hsl(var(--h) 80% 88% / .9), transparent 42%),
		radial-gradient(hsl(var(--h) 40% 30% / .18) 1.2px, transparent 1.4px) 0 0 / 14px 14px,
		linear-gradient(135deg, hsl(var(--h) 42% 78%), hsl(var(--h) 46% 56%));
}
.ph--1 { background:
	radial-gradient(circle at 15% 85%, hsl(var(--h) 80% 88% / .9), transparent 45%),
	repeating-linear-gradient(45deg, hsl(var(--h) 40% 30% / .08) 0 2px, transparent 2px 12px),
	linear-gradient(200deg, hsl(var(--h) 42% 74%), hsl(var(--h) 48% 50%)); }
.ph--2 { background:
	radial-gradient(circle at 50% 120%, hsl(var(--h) 70% 85% / .9), transparent 55%),
	radial-gradient(hsl(var(--h) 40% 30% / .2) 1.4px, transparent 1.6px) 0 0 / 18px 18px,
	linear-gradient(160deg, hsl(var(--h) 48% 52%), hsl(var(--h) 38% 30%)); }
.ph--3 { background:
	conic-gradient(from 210deg at 80% 30%, hsl(var(--h) 50% 70%), hsl(var(--h) 45% 48%), hsl(var(--h) 50% 70%)); }
.ph__letter {
	position: absolute;
	left: 6%;
	bottom: -6%;
	font-family: var(--serif);
	font-size: clamp(5rem, 14vw, 9rem);
	font-weight: 700;
	line-height: 1;
	color: rgba(255, 255, 255, .5);
}
.ph__sprout {
	position: absolute;
	right: 7%;
	top: 50%;
	width: 34%;
	height: auto;
	max-width: 130px;
	transform: translateY(-50%) rotate(-6deg);
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18));
}
.ph__sprout .logo__bubble { fill: rgba(255, 255, 255, .88); }
.ph__sprout .logo__leaf-l,
.ph__sprout .logo__leaf-r { fill: hsl(var(--h) 55% 32%); }
.ph__sprout .logo__stem,
.ph__sprout .logo__soil { stroke: hsl(var(--h) 55% 32%); }

/* ==========================================================================
   7. Pradinis puslapis
   ========================================================================== */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .9fr);
	gap: 36px;
	padding-top: 40px;
	padding-bottom: 72px;
}
.hero__lead { position: relative; }
.hero__side { display: flex; flex-direction: column; gap: 30px; padding-left: 36px; border-left: 1px solid var(--line); }

.stamp {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	width: 108px;
	height: 108px;
	pointer-events: none;
}
.stamp__bg { fill: var(--sprout); }
.stamp__text {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	fill: #13221a;
}
.stamp textPath { animation: none; }
.stamp > text { transform-origin: 60px 60px; animation: rotate 26s linear infinite; }
.stamp .logo__bubble { fill: #14301f; }
.stamp .logo__leaf-l { fill: #c5ee58; }
.stamp .logo__leaf-r { fill: #e4fba2; }
.stamp .logo__stem, .stamp .logo__soil { stroke: #c5ee58; }
@keyframes rotate { to { transform: rotate(360deg); } }

.hero__fresh {
	align-self: start;
	position: relative;
	padding: 26px 24px 22px;
	border-radius: var(--r-lg);
	background: var(--forest);
	border: 1px solid rgba(197, 238, 88, .14);
	color: #e9f0e2;
	overflow: hidden;
}
.hero__fresh::before {
	content: "";
	position: absolute;
	width: 220px;
	height: 220px;
	right: -90px;
	top: -90px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(197, 238, 88, .28), transparent 65%);
}
.fresh-title {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-size: .8rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--sprout);
}
.fresh-title__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sprout); animation: pulse-lime 2s infinite; }
@keyframes pulse-lime {
	0% { box-shadow: 0 0 0 0 rgba(197, 238, 88, .6); }
	70% { box-shadow: 0 0 0 9px rgba(197, 238, 88, 0); }
	100% { box-shadow: 0 0 0 0 rgba(197, 238, 88, 0); }
}
.fresh-list { list-style: none; margin: 0; padding: 0; position: relative; }
.fresh-list li + li { margin-top: 16px; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, .16); }
.hero__fresh .card__title a { color: #f4f8ef; }
.hero__fresh .card__meta { color: rgba(233, 240, 226, .62); }
.hero__fresh .card__title span { background-image: linear-gradient(rgba(197, 238, 88, .4), rgba(197, 238, 88, .4)); }
.fresh-all {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 22px;
	padding: 12px 16px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .07);
	color: var(--sprout);
	font-weight: 700;
	font-size: .9rem;
	text-decoration: none;
}
.fresh-all:hover { background: var(--sprout); color: #13221a; }

@media (max-width: 1100px) {
	.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.hero__lead { grid-column: 1 / -1; }
	.hero__side { padding-left: 0; border-left: 0; }
}
@media (max-width: 700px) {
	.hero { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 22px; }
	.hero__side { gap: 20px; }
	.card--row { flex-direction: row; align-items: flex-start; gap: 14px; }
	.card--row .card__media { flex: none; width: 112px; aspect-ratio: 1; border-radius: 14px; }
	.card--row .card__title { font-size: 1.05rem; }
	.card--row .ph__letter { font-size: 3.4rem; }
	.stamp { width: 84px; height: 84px; top: 10px; right: 10px; }
}

/* Temų žemėlapis */
.topics { padding-bottom: 80px; }
.topics__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
	gap: 14px;
}
.topic {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 14px;
	padding: 14px 16px;
	border-radius: var(--r);
	background: var(--surface);
	border: 1px solid var(--line);
	text-decoration: none;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.topic:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: hsl(var(--h) 50% var(--accent-l)); color: inherit; }
.topic__ring {
	grid-row: 1 / 3;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: conic-gradient(hsl(var(--h) 60% var(--accent-l)) var(--deg), hsl(var(--h) 35% var(--chip-l)) 0);
	transition: transform .6s;
}
.topic:hover .topic__ring { transform: rotate(-90deg); }
.topic__ring span {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--surface);
	font-family: var(--mono);
	font-size: .72rem;
	font-weight: 700;
	color: var(--ink-2);
	transition: transform .6s;
}
.topic:hover .topic__ring span { transform: rotate(90deg); }
.topic__name { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; line-height: 1.2; align-self: end; }
.topic__count { font-size: .8rem; color: var(--muted); align-self: start; }

/* Sėklų dėžutė */
.seedbox { padding-bottom: 80px; }
.seedbox__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
	gap: clamp(24px, 4vw, 56px);
	padding: clamp(26px, 4vw, 56px);
	border-radius: 32px;
	background:
		radial-gradient(circle at 8% 110%, rgba(197, 238, 88, .25), transparent 40%),
		radial-gradient(circle at 100% 0%, hsl(var(--h) 60% 45% / .35), transparent 45%),
		#14301f;
	color: #e9f0e2;
	overflow: hidden;
	transition: background .6s;
}
.seedbox__inner::after {
	content: "";
	position: absolute;
	right: -40px;
	bottom: -60px;
	width: 260px;
	height: 260px;
	background: url("assets/img/logo-mark-outline.svg") center / contain no-repeat;
	opacity: .08;
	transform: rotate(-14deg);
	pointer-events: none;
}
.seedbox .sec-head__no { color: rgba(233, 240, 226, .55); padding: 0; }
.seedbox__title { margin: 6px 0 10px; font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; color: #fff; }
.seedbox__sub { margin: 0 0 24px; color: rgba(233, 240, 226, .75); max-width: 34ch; }
.seedbox__counter { margin: 16px 0 0; font-family: var(--mono); font-size: .8rem; color: rgba(233, 240, 226, .5); }
.seedbox__card {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: clamp(20px, 3vw, 34px);
	border-radius: 24px;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .12);
}
.seedbox__card.is-swapping { animation: sprout-in .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes sprout-in {
	0% { opacity: 0; transform: translateY(14px) scale(.98); }
	100% { opacity: 1; transform: none; }
}
.seedbox__post { margin: 0; font-family: var(--serif); font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.05rem); line-height: 1.15; }
.seedbox__post a { color: #fff; text-decoration: none; }
.seedbox__post a:hover { text-decoration: underline; text-decoration-color: var(--sprout); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.seedbox__text { margin: 0; color: rgba(233, 240, 226, .82); }
.seedbox__meta { margin: 0 0 6px; font-size: .85rem; color: rgba(233, 240, 226, .6); }
@media (max-width: 820px) {
	.seedbox__inner { grid-template-columns: minmax(0, 1fr); }
}

/* Temų lysvės */
.bed { margin-bottom: 72px; }
.bed .sec-head { border-top-color: hsl(var(--h) 55% var(--accent-l)); }
.bed .sec-head__title::before {
	content: "";
	display: inline-block;
	width: .55em;
	height: .55em;
	margin-right: .35em;
	border-radius: 50% 0 50% 0;
	background: hsl(var(--h) 60% var(--accent-l));
	vertical-align: .08em;
}
.bed__row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}
@media (max-width: 1000px) {
	.bed__row {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(260px, 72%);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 12px;
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
		scroll-padding-inline: var(--gutter);
		scrollbar-width: thin;
	}
	.bed__row > * { scroll-snap-align: start; }
}

/* Srautas ir tinklelis */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 44px 30px;
}
.grid > .card.is-new { animation: sprout-in .6s both; }
.load-more { display: flex; justify-content: center; margin-top: 52px; }

/* ==========================================================================
   8. Archyvai
   ========================================================================== */
.arch-head {
	position: relative;
	padding: 34px 0 44px;
	margin-bottom: 48px;
	background:
		radial-gradient(circle at 92% 20%, hsl(var(--h) 60% 70% / .35), transparent 32%),
		hsl(var(--h) var(--tint-s) var(--tint-l));
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}
.arch-head::after {
	content: "";
	position: absolute;
	right: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
	bottom: -40px;
	width: 220px;
	height: 220px;
	background: url("assets/img/logo-mark-outline.svg") center / contain no-repeat;
	opacity: .12;
	transform: rotate(-12deg);
	pointer-events: none;
}
.arch-head__eyebrow {
	margin: 18px 0 8px;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: hsl(var(--h) 55% var(--accent-l));
}
.arch-head__title {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.2rem);
	line-height: 1.02;
	letter-spacing: -.025em;
	max-width: 18ch;
}
.arch-head__page { font-size: .4em; color: var(--muted); letter-spacing: 0; vertical-align: middle; }
.arch-head__desc { max-width: 62ch; margin-top: 16px; color: var(--ink-2); font-size: 1.08rem; }
.arch-head__desc p { margin: 0 0 .6em; }
.arch-head__count { margin: 18px 0 0; color: var(--muted); }
.arch-head__count strong { color: var(--ink); font-family: var(--serif); font-size: 1.4rem; }
.arch-head__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.grid--archive > .card--lead {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	align-items: center;
	gap: 40px;
	padding-bottom: 44px;
	border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) {
	.grid--archive > .card--lead { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

.empty, .notfound { text-align: center; padding: 60px 0; }
.empty__mark, .notfound__mark { margin: 0 auto 18px; display: block; }
.notfound { padding-top: 70px; }
.notfound__title { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 4rem); margin: 0 0 14px; line-height: 1.05; }
.notfound__text { max-width: 52ch; margin: 0 auto 24px; color: var(--ink-2); }
.notfound__grid { text-align: left; margin-top: 60px; }
.notfound .arch-head__eyebrow { --h: 142; }

/* Puslapiavimas */
.pager { margin-top: 48px; }
.pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	font-weight: 700;
	text-decoration: none;
}
.pager .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager .page-numbers.dots { border: 0; background: none; }
.pager a.page-numbers:hover { border-color: var(--moss); }
.js .load-more + .pager { margin-top: 24px; }

/* Naršymo kelias */
.crumbs { font-size: .84rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before {
	content: "";
	width: 5px;
	height: 5px;
	margin: 0 10px;
	border-radius: 50% 0;
	background: var(--sprout);
	box-shadow: 0 0 0 1px rgba(43, 90, 57, .4);
}
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { text-decoration: underline; color: var(--ink); }
.crumbs [aria-current] { color: var(--muted); }

/* ==========================================================================
   9. Straipsnis
   ========================================================================== */
.read-progress {
	position: fixed;
	inset: 0 0 auto;
	height: 4px;
	z-index: 100;
	pointer-events: none;
}
.read-progress span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--moss), var(--sprout));
	transform-origin: 0 50%;
	transform: scaleX(0);
	border-radius: 0 4px 4px 0;
}
.admin-bar .read-progress { top: 32px; }

.article-head { padding: 34px 0 30px; }
.article-head .crumbs { margin-bottom: 26px; }
.article-head__title {
	margin: 16px 0 0;
	font-family: var(--serif);
	font-size: clamp(2.05rem, 1.3rem + 3vw, 3.55rem);
	line-height: 1.06;
	letter-spacing: -.022em;
}
.article-head__dek {
	margin: 18px 0 0;
	font-size: clamp(1.1rem, 1rem + .4vw, 1.32rem);
	line-height: 1.5;
	color: var(--ink-2);
	max-width: 60ch;
}
.article-meta {
	list-style: none;
	margin: 26px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	font-size: .88rem;
	color: var(--muted);
}
.article-meta li { display: inline-flex; align-items: center; gap: 8px; }
.article-meta__author { font-weight: 700; color: var(--ink); }
.article-meta__avatar {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--bg-2);
}
.article-meta__mark { width: 22px; height: 22px; }
.article-meta__updated { color: var(--moss); font-weight: 600; }

.article-hero { margin: 0 auto 48px; }
.article-hero img,
.article-hero .ph {
	display: block;
	width: 100%;
	max-height: 560px;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--r-lg);
}
.article-hero .ph { height: auto; }
.article-hero figcaption { margin-top: 10px; font-size: .84rem; color: var(--muted); }

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 740px) 300px;
	justify-content: center;
	gap: 72px;
}
.article-main { min-width: 0; }
.article-rail { min-width: 0; }
.article-rail__sticky { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 22px; }
.admin-bar .article-rail__sticky { top: calc(var(--header-h) + 56px); }
@media (max-width: 1100px) {
	.article-layout { grid-template-columns: minmax(0, 740px); }
	.article-rail { display: none; }
}

/* Turinio rodyklė */
.toc__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: .74rem;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
}
.toc__list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc__item a {
	display: flex;
	gap: 10px;
	margin-left: -2px;
	padding: 7px 0 7px 14px;
	border-left: 2px solid transparent;
	font-size: .9rem;
	line-height: 1.35;
	color: var(--muted);
	text-decoration: none;
	transition: color .2s, border-color .2s, background .2s;
}
.toc__item--h3 a { padding-left: 34px; font-size: .84rem; }
.toc__no { font-family: var(--mono); font-size: .72rem; padding-top: 2px; color: var(--moss); }
.toc__item a:hover { color: var(--ink); }
.toc__item a.is-active { color: var(--ink); font-weight: 650; border-left-color: var(--moss); background: linear-gradient(90deg, hsl(var(--h, 142) 50% var(--tint-l)), transparent); }
.toc--rail .toc__list { max-height: calc(100vh - 340px); overflow-y: auto; scrollbar-width: thin; }

.toc--inline {
	margin-bottom: 34px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--surface);
}
.toc--inline summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	cursor: pointer;
	font-weight: 700;
	list-style: none;
}
.toc--inline summary::-webkit-details-marker { display: none; }
.toc--inline summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; line-height: 1; color: var(--moss); transition: transform .25s; }
.toc--inline[open] summary::after { transform: rotate(45deg); }
.toc__count { font-family: var(--mono); font-size: .74rem; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.toc--inline .toc__list { margin: 0 18px 18px; }
@media (min-width: 1101px) {
	.toc--inline { display: none; }
}

.rail-box {
	padding: 18px;
	border-radius: var(--r);
	background: var(--surface);
	border: 1px solid var(--line);
}
.rail-box__title { margin: 0 0 12px; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Straipsnio tekstas */
.prose {
	font-family: var(--serif);
	font-size: clamp(1.1rem, 1rem + .28vw, 1.22rem);
	line-height: 1.78;
	color: var(--ink);
	overflow-wrap: break-word;
}
.prose > * { margin-top: 0; margin-bottom: 1.25em; }
.prose > p:first-of-type::first-letter {
	float: left;
	margin: .06em .12em 0 0;
	font-size: 3.7em;
	line-height: .82;
	font-weight: 700;
	color: var(--moss);
}
.prose h2,
.prose h3,
.prose h4 {
	font-family: var(--serif);
	line-height: 1.2;
	letter-spacing: -.012em;
	scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2 { margin: 2.1em 0 .7em; font-size: 1.72em; }
.prose h2::before {
	content: "";
	display: block;
	width: 46px;
	height: 5px;
	margin-bottom: .55em;
	border-radius: 5px;
	background: linear-gradient(90deg, var(--moss), var(--sprout));
}
.prose h3 { margin: 1.8em 0 .55em; font-size: 1.32em; }
.prose h4 { margin: 1.6em 0 .5em; font-size: 1.1em; }
.prose a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--sprout);
	text-decoration-thickness: .2em;
	text-underline-offset: .18em;
	transition: background .2s;
}
.prose a:hover { background: var(--sprout-2); color: #13221a; }
.prose strong { font-weight: 700; }
.prose ul,
.prose ol { padding-left: 1.4em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose li::marker { color: var(--moss); font-weight: 700; }
.prose ul > li::marker { content: "❧ "; font-size: .9em; }
.prose blockquote {
	position: relative;
	margin: 2em 0;
	padding: 1.2em 1.4em 1.2em 1.6em;
	border-left: 5px solid var(--sprout);
	border-radius: 0 var(--r) var(--r) 0;
	background: var(--bg-2);
	font-style: italic;
	color: var(--ink-2);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; margin-top: .6em; font-size: .85em; font-style: normal; color: var(--muted); }
.prose img { border-radius: 14px; }
.prose figure { margin: 2em 0; max-width: 100%; }
.prose figcaption,
.prose .wp-caption-text,
.prose .wp-element-caption { margin-top: .6em; font-family: var(--sans); font-size: .82rem; color: var(--muted); text-align: left; }
.prose .wp-caption { max-width: 100%; }
.prose hr { border: 0; height: 18px; margin: 2.5em 0; background: url("assets/img/divider.svg") center / auto 18px no-repeat; }
.prose table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--sans);
	font-size: .9rem;
	line-height: 1.5;
}
.prose .wp-block-table,
.prose .table-wrap { overflow-x: auto; }
.prose th,
.prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-2); font-weight: 700; }
.prose code { font-family: var(--mono); font-size: .86em; padding: .1em .35em; border-radius: 6px; background: var(--bg-2); }
.prose pre { overflow-x: auto; padding: 1.2em; border-radius: var(--r); background: var(--forest); color: #e9f0e2; font-size: .85rem; }
.prose pre code { background: none; padding: 0; }
.prose iframe { width: 100%; border: 0; border-radius: var(--r); }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; display: block; }
.prose .alignwide,
.prose .alignfull { max-width: none; }
.prose::after { content: ""; display: table; clear: both; }

/* „Taip pat skaitykite“ */
.prose .inline-read {
	margin: 2.2em 0;
	padding: 18px 20px;
	border-radius: var(--r);
	background: hsl(var(--h) var(--tint-s) var(--tint-l));
	border: 1px solid hsl(var(--h) 40% var(--accent-l) / .25);
	font-family: var(--sans);
}
.inline-read__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: hsl(var(--h) 55% var(--accent-l));
}
.prose .inline-read__link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 8px;
	text-decoration: none;
	background: none;
}
.prose .inline-read__link:hover { background: none; }
.inline-read__title { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.inline-read__link:hover .inline-read__title { text-decoration: underline; text-decoration-color: var(--sprout); text-decoration-thickness: 3px; }
.inline-read__meta { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); }

/* Straipsnio pabaiga */
.article-foot { margin-top: 44px; display: flex; flex-direction: column; gap: 26px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	font-size: .85rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--ink-2);
}
.tags a:hover { border-color: var(--moss); color: var(--ink); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.share__label { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.share__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink);
	cursor: pointer;
	transition: background .2s, color .2s, transform .2s;
}
.share__btn:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.share__toast {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	padding: 4px 10px;
	border-radius: 8px;
	background: var(--ink);
	color: var(--bg);
	font-size: .75rem;
	font-weight: 700;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s;
}
.share__toast:not(:empty) { opacity: 1; }

.sprouted {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px 22px;
	border-radius: var(--r);
	background: hsl(var(--h) var(--tint-s) var(--tint-l));
	border: 1px dashed hsl(var(--h) 40% var(--accent-l) / .45);
}
.sprouted__mark { flex: none; }
.sprouted__title { margin: 0; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; }
.sprouted__text { margin: 4px 0 0; font-size: .9rem; color: var(--ink-2); }

.up-next { margin-top: 80px; }
.up-next__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--sprout);
	color: #13221a;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.up-next > .card--lead {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	gap: 44px;
	padding: clamp(16px, 2.5vw, 28px);
	border-radius: 30px;
	background: var(--surface);
	box-shadow: var(--shadow);
}
@media (max-width: 860px) {
	.up-next > .card--lead { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

.related { margin-top: 80px; }

.post-nav {
	margin-top: 72px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.post-nav__link {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 22px;
	border-radius: var(--r);
	border: 1px solid var(--line);
	text-decoration: none;
	transition: border-color .2s, background .2s;
}
.post-nav__link:hover { border-color: var(--moss); background: var(--surface); color: inherit; }
.post-nav__link--next { grid-column: 2; text-align: right; align-items: flex-end; }
.post-nav__dir { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post-nav__title { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
@media (max-width: 640px) {
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__link--next { grid-column: auto; }
}

.page-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 24px 0; font-weight: 700; }
.page-links a, .page-links > .post-page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.page-links .current { background: var(--ink); color: var(--bg); }

/* Siūlomas kitas patarimas */
.next-toast {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 70;
	width: min(360px, calc(100vw - 100px));
	padding: 14px 16px 16px;
	border-radius: 20px;
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	transform: translateY(calc(100% + 40px));
	opacity: 0;
	transition: transform .55s cubic-bezier(.2, .9, .3, 1.15), opacity .3s;
}
.next-toast.is-visible { transform: none; opacity: 1; }
.next-toast[hidden] { display: none; }
.next-toast__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	color: var(--muted);
}
.next-toast__close:hover { background: var(--bg-2); color: var(--ink); }
.next-toast__label { margin: 0 0 10px; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); }
.next-toast__link { display: flex; align-items: center; gap: 14px; text-decoration: none; padding-right: 20px; }
.next-toast__media { flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; }
.next-toast__media img,
.next-toast__media .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.next-toast__media .ph__letter { font-size: 2.4rem; }
.next-toast__title { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; line-height: 1.28; }
.next-toast__link:hover .next-toast__title { text-decoration: underline; text-decoration-color: var(--sprout); text-decoration-thickness: 3px; }

/* ==========================================================================
   10. Mygtukas „Į viršų“
   ========================================================================== */
.to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 80;
	width: 58px;
	height: 58px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--forest);
	color: var(--sprout);
	box-shadow: 0 12px 30px -10px rgba(10, 20, 14, .6);
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px) scale(.9);
	transition: opacity .3s, transform .35s cubic-bezier(.2, .9, .3, 1.3), visibility .3s;
}
[data-theme="dark"] .to-top { background: var(--sprout); color: #13221a; }
.to-top.is-visible,
html:not(.js) .to-top { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: #fff; transform: translateY(-3px); }
[data-theme="dark"] .to-top:hover { color: #000; }
.to-top__svg { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); transform: rotate(-90deg); }
.to-top__track { fill: none; stroke: rgba(197, 238, 88, .18); stroke-width: 3; }
.to-top__ring {
	fill: none;
	stroke: var(--sprout);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 144.51;
	stroke-dashoffset: 144.51;
	transition: stroke-dashoffset .15s linear;
}
[data-theme="dark"] .to-top__track { stroke: rgba(19, 34, 26, .15); }
[data-theme="dark"] .to-top__ring { stroke: #14301f; }
.to-top__icon { width: 22px; height: 22px; position: relative; transition: transform .3s; }
.to-top:hover .to-top__icon { transform: translateY(-3px); }
.to-top__label {
	position: absolute;
	right: calc(100% + 10px);
	padding: 5px 10px;
	border-radius: 8px;
	background: var(--ink);
	color: var(--bg);
	font-size: .78rem;
	font-weight: 700;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(6px);
	transition: opacity .2s, transform .2s;
	pointer-events: none;
}
.to-top:hover .to-top__label,
.to-top:focus-visible .to-top__label { opacity: 1; transform: none; }

/* ==========================================================================
   11. Poraštė
   ========================================================================== */
.site-footer {
	position: relative;
	margin-top: 40px;
	padding-top: 72px;
	background: #10241a;
	color: #d5dfcf;
	overflow: hidden;
	--logo-bubble: #c5ee58;
	--logo-leaf: #10241a;
	--logo-leaf-2: #1f4a2e;
}
.site-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 6px;
	background: repeating-linear-gradient(90deg, var(--sprout) 0 28px, transparent 28px 40px);
	opacity: .8;
}
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
}
.site-footer .logo__link,
.site-footer .logo__link:hover { color: #fff; }
.site-footer .logo__tagline { color: rgba(213, 223, 207, .6); }
.site-footer__about { margin: 20px 0 16px; max-width: 40ch; color: rgba(213, 223, 207, .8); font-size: .95rem; }
.site-footer__stat { margin: 0; font-size: .9rem; color: rgba(213, 223, 207, .7); }
.site-footer__stat strong { font-family: var(--serif); font-size: 1.5rem; color: var(--sprout); }
.site-footer__title { margin: 0 0 16px; font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--sprout); }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .93rem; }
.site-footer__list a { color: #e9f0e2; text-decoration: none; }
.site-footer__list a:hover { color: var(--sprout); text-decoration: underline; }
.site-footer__list--cats a { display: flex; justify-content: space-between; gap: 10px; }
.site-footer__list--cats span { font-family: var(--mono); font-size: .78rem; color: rgba(213, 223, 207, .5); }
.site-footer__giant {
	margin-top: 70px;
	font-family: var(--serif);
	font-style: italic;
	font-weight: 700;
	font-size: clamp(3rem, 13vw, 12rem);
	line-height: .9;
	text-align: center;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1.2px rgba(197, 238, 88, .38);
	user-select: none;
	letter-spacing: -.02em;
}
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px 30px;
	padding-top: 22px;
	padding-bottom: 26px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: .8rem;
	color: rgba(213, 223, 207, .55);
}
.site-footer__bottom p { margin: 0; }
@media (max-width: 960px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.site-footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   12. WordPress klasės
   ========================================================================== */
.alignleft { float: left; margin-right: 1.4em; }
.alignright { float: right; margin-left: 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery-item { margin: 0; }
.sticky, .bypostauthor { outline: 0; }

/* ==========================================================================
   13. Judesys ir spausdinimas
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
	.ticker__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.ticker__track { animation: none !important; }
	.ticker__track--clone { display: none; }
}

@media print {
	.site-header, .ticker, .site-footer, .to-top, .next-toast, .read-progress, .article-rail, .share, .up-next, .related, .post-nav, .toc, .inline-read, .sprouted { display: none !important; }
	body { background: #fff; color: #000; }
	.article-layout { display: block; }
	.prose { font-size: 12pt; }
	.prose a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
