/*
Theme Name: Jokūbo kelias
Theme URI: https://svjokubokelias.lt/
Author: Jokūbo tinklaraštis
Author URI: https://svjokubokelias.lt/
Description: Išskirtinė naujienų tema „Jokūbo tinklaraščiui“, įkvėpta Šv. Jokūbo kelio ženklų: mėlyna ir geltona spalvos, kriauklė, geltonos rodyklės ir piligrimo antspaudai. Veikia be papildomų įskiepių – SEO, struktūriniai duomenys, senų nuorodų peradresavimai, turinio planas, skaitymo progresas, susiję straipsniai, tamsus režimas ir mygtukas „Į viršų“ įmontuoti temoje.
Version: 1.0.0
Requires at least: 6.4
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: jokubo-kelias
Update URI: false
Tags: news, blog, two-columns, custom-menu, custom-logo, featured-images, translation-ready, accessibility-ready, block-styles, wide-blocks
*/

/* =========================================================
   1. Spalvos ir dydžiai
   ========================================================= */
:root {
	--ink: #102A4C;
	--ink-2: #1B3B66;
	--sun: #F5B800;
	--sun-text: #8A6200;
	--paper: #F6F1E7;
	--paper-2: #EDE5D4;
	--card: #FFFDF8;
	--text: #1A2433;
	--heading: #102A4C;
	--muted: #5A6474;
	--line: #DCD2BF;
	--shell-ink: #102A4C;
	--shadow: 0 1px 2px rgba(16, 42, 76, .06), 0 10px 30px -12px rgba(16, 42, 76, .25);
	--footer: #102A4C;

	--serif: "Lora", "Iowan Old Style", "Charter", Georgia, serif;
	--sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1240px;
	--r: 10px;
	--topbar: 2.25rem;
	color-scheme: light;
}

[data-theme="dark"] {
	--paper: #0C1524;
	--paper-2: #111E33;
	--card: #14223A;
	--text: #E3E9F2;
	--heading: #F4F6FA;
	--muted: #A2AFC2;
	--line: #263753;
	--sun-text: #F5C33B;
	--shell-ink: #102A4C;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .7);
	--footer: #08101D;
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #0C1524;
		--paper-2: #111E33;
		--card: #14223A;
		--text: #E3E9F2;
		--heading: #F4F6FA;
		--muted: #A2AFC2;
		--line: #263753;
		--sun-text: #F5C33B;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .7);
		--footer: #08101D;
		color-scheme: dark;
	}
}

/* =========================================================
   2. Pagrindas
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font: 400 1rem/1.6 var(--sans);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--heading); line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0 0 1rem; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 6rem; }
.site-main:focus { outline: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { max-width: 760px; }

.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 200;
	background: var(--sun); color: var(--ink); padding: .7rem 1.1rem; border-radius: 6px;
	font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* Piktogramos */
.i { width: 1em; height: 1em; flex: none; vertical-align: -.125em; }
.i-shell .s { fill: var(--sun); }
.i-shell .r { fill: none; stroke: var(--shell-ink); stroke-width: 3.2; stroke-linecap: round; }

/* Mygtukai ir geltona rodyklė */
.btn {
	display: inline-flex; align-items: center; gap: .6rem;
	padding: .85rem 1.4rem; border-radius: 999px; border: 0;
	background: var(--ink); color: #fff; font: 700 .95rem/1 var(--sans);
	text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:focus-visible { outline-color: #fff; }

.yarrow {
	display: inline-block; width: 2.1em; height: .95em; background: var(--sun);
	clip-path: polygon(0 32%, 58% 32%, 58% 0, 100% 50%, 58% 100%, 58% 68%, 0 68%);
	transform: rotate(-4deg); transition: transform .25s;
}
.yarrow--big { width: 4.5rem; height: 2.4rem; }

/* =========================================================
   3. Skaitymo „takas“ (progreso juosta)
   ========================================================= */
.trail {
	position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 120; pointer-events: none;
	background: repeating-linear-gradient(90deg, rgba(245, 184, 0, .45) 0 4px, transparent 4px 10px);
}
.trail__done {
	position: absolute; inset: 0 auto 0 0; background: var(--sun);
	width: calc(var(--p, 0) * 100%);
}
.trail__shell {
	position: absolute; top: -3px; left: calc(var(--p, 0) * 100%);
	width: 22px; transform: translateX(-50%);
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
}
.trail__shell .i { width: 22px; height: 17px; display: block; }

/* =========================================================
   4. Antraštė
   ========================================================= */
.site-header {
	position: sticky; top: calc(-1 * var(--topbar)); z-index: 100;
	background: color-mix(in srgb, var(--paper) 94%, transparent);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	transition: transform .35s ease, box-shadow .3s;
}
.site-header.is-stuck { box-shadow: 0 6px 20px -14px rgba(16, 42, 76, .45); }
.site-header.is-hidden { transform: translateY(-100%); }

.topbar { background: var(--ink); color: #C9D5E6; height: var(--topbar); font-size: .78rem; }
.topbar__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar__motto { font-family: var(--serif); font-style: italic; color: var(--sun); font-size: .85rem; }
.topbar__count { letter-spacing: .02em; }

.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.brand { margin: 0; font-size: 1rem; font-weight: 400; line-height: 1; }
.brand__link, .brand--footer { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: inherit; }
.brand__mark {
	display: grid; place-items: center; width: 3.1rem; height: 3.1rem; flex: none;
	background: var(--ink); border-radius: 12px; transition: transform .35s;
}
.brand__mark .i { width: 2.35rem; height: 1.75rem; }
img.brand__mark { object-fit: contain; background: none; }
.brand__link:hover .brand__mark { transform: rotate(-8deg); }
.brand__text { display: flex; flex-direction: column; gap: .35rem; }
.brand__name { font: 700 1.65rem/1 var(--serif); color: var(--heading); letter-spacing: -.01em; }
.brand__name em { font-weight: 400; }
.brand__tag { font: 600 .64rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sun-text); }

.masthead__tools { display: flex; gap: .5rem; }
.tool {
	display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
	min-width: 2.75rem; height: 2.75rem; padding: 0 .7rem; border-radius: 999px;
	border: 1px solid var(--line); background: var(--card); color: var(--heading);
	transition: background .2s, color .2s, border-color .2s;
}
.tool:hover { background: var(--ink); color: var(--sun); border-color: var(--ink); }
.tool .i { width: 1.15rem; height: 1.15rem; }
.tool--menu { display: none; font-weight: 700; font-size: .85rem; }
.show-dark, .show-open { display: none; }
[data-theme="dark"] .show-dark { display: inline; }
[data-theme="dark"] .show-light { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .show-dark { display: inline; }
	:root:not([data-theme="light"]) .show-light { display: none; }
}
[aria-expanded="true"] .show-open { display: inline; }
[aria-expanded="true"] .show-closed { display: none; }

.mainnav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mainnav__list, .mainnav ul {
	list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem;
	overflow-x: auto; scrollbar-width: none;
}
.mainnav ul::-webkit-scrollbar { display: none; }
.mainnav li { flex: none; }
.mainnav a {
	display: flex; align-items: center; gap: .5rem; padding: .85rem .8rem;
	font: 600 .92rem/1 var(--sans); color: var(--heading); text-decoration: none; position: relative;
}
.mainnav a::before {
	content: ""; width: .5rem; height: .5rem; border-radius: 2px; background: var(--c, var(--sun));
	transform: rotate(45deg);
}
.mainnav a::after {
	content: ""; position: absolute; left: .8rem; right: .8rem; bottom: -1px; height: 3px;
	background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.mainnav a:hover::after, .mainnav .current-menu-item > a::after, .mainnav .current-cat > a::after { transform: scaleX(1); }

/* =========================================================
   5. Kelio ženklas, antspaudas, nuotraukos
   ========================================================= */
.waymark {
	--shell-ink: var(--c, var(--ink));
	position: relative; z-index: 2;
	display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
	padding: .3rem .65rem .3rem .4rem; border-radius: 4px;
	background: var(--c, var(--ink)); color: #fff;
	font: 700 .7rem/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; text-decoration: none;
}
.waymark .i { width: 1.3rem; height: .98rem; }
a.waymark:hover { filter: brightness(1.12); }

.stamp {
	--sc: var(--c, var(--ink));
	flex: none; display: inline-grid; place-content: center; text-align: center;
	width: 4.4rem; height: 4.4rem; border-radius: 50%;
	border: 2px dashed var(--sc); color: var(--sc);
	box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px color-mix(in srgb, var(--sc) 45%, transparent);
	background: var(--paper);
	transform: rotate(-9deg); line-height: 1; font-family: var(--sans);
}
[data-theme="dark"] .stamp { --sc: color-mix(in srgb, var(--c, #8FB3E8) 55%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stamp { --sc: color-mix(in srgb, var(--c, #8FB3E8) 55%, #fff); } }
.stamp__d { font: 700 1.45rem/1 var(--serif); }
.stamp__m { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-top: .1rem; }
.stamp__y { font-size: .55rem; opacity: .8; margin-top: .1rem; }

.thumb { display: block; position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--r); background: var(--paper-2); }
.thumb__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.thumb--fallback {
	--shell-ink: var(--c);
	display: grid; place-items: center;
	background:
		repeating-conic-gradient(from -90deg at 50% 118%, color-mix(in srgb, var(--c) 84%, #000) 0 5deg, var(--c) 5deg 10deg);
}
.thumb--fallback .i-shell { width: 34%; height: auto; transition: transform .6s; }
.thumb__label {
	position: absolute; left: .8rem; bottom: .7rem; color: rgba(255, 255, 255, .9);
	font: 700 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}

/* =========================================================
   6. Kortelės
   ========================================================= */
.card { position: relative; }
.card__title { font-weight: 700; letter-spacing: -.005em; }
.card__title a { text-decoration: none; background: linear-gradient(var(--sun), var(--sun)) 0 100% / 0 3px no-repeat; transition: background-size .35s; }
.card:hover .card__title a, .card__title a:focus-visible { background-size: 100% 3px; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__excerpt { color: var(--muted); font-size: .97rem; margin: 0; }
.card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; }
.card__time { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .8rem; font-weight: 500; }
.card:hover .thumb__img, .card:hover .thumb--fallback .i-shell { transform: scale(1.045); }
.card__go { position: relative; z-index: 2; margin-left: auto; display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .85rem; text-decoration: none; color: var(--heading); }
.card:hover .yarrow { transform: rotate(-4deg) translateX(4px); }

/* Tinklelio kortelė */
.card--grid {
	display: flex; flex-direction: column; background: var(--card);
	border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); overflow: hidden;
	transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card--grid::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 3;
	background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.card--grid:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card--grid:hover::before { transform: scaleX(1); }
.card--grid .thumb { border-radius: 0; }
.card--grid .card__body { display: flex; flex-direction: column; gap: .7rem; padding: 1.15rem 1.25rem 1.3rem; flex: 1; }
.card--grid .card__title { font-size: 1.24rem; }
.card--grid .card__meta { margin-top: auto; padding-top: .4rem; border-top: 1px dashed var(--line); }

/* Pagrindinė istorija */
.card--lead { display: flex; flex-direction: column; gap: 1.4rem; }
.card--lead .thumb { aspect-ratio: 16 / 10; border-radius: calc(var(--r) + 6px); }
.card--lead .card__body { display: flex; flex-direction: column; gap: .9rem; }
.card--lead .card__title { font-size: clamp(1.85rem, 3.3vw, 2.85rem); line-height: 1.1; letter-spacing: -.015em; }
.card--lead .card__title a { background-size: 0 4px; }
.card--lead:hover .card__title a { background-size: 100% 4px; }
.card--lead .card__excerpt { font-size: 1.1rem; max-width: 60ch; }
.card--lead .card__meta { gap: 1.25rem; margin-top: .3rem; }

/* Šoniniai straipsniai */
.card--side {
	display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) 6.5rem; gap: 1rem; align-items: start;
	padding: 1.15rem 0; border-top: 1px dashed var(--line);
}
.card__num { font: italic 600 1.7rem/1 var(--serif); color: var(--sun-text); padding-top: .15rem; }
.card--side .card__body { display: flex; flex-direction: column; gap: .5rem; }
.card--side .card__title { font-size: 1.08rem; line-height: 1.28; }
.card--side .thumb { aspect-ratio: 1; border-radius: 8px; }

/* Kelionės dienoraščio stotelė */
.card--route { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr) 15rem; gap: 1.6rem; align-items: start; }
.card--route .card__body { display: flex; flex-direction: column; gap: .6rem; }
.card--route .card__title { font-size: 1.4rem; }

/* Kompaktiška */
.card--compact { padding: .95rem 0; border-top: 1px dashed var(--line); }
.card--compact .card__body { display: flex; flex-direction: column; gap: .35rem; }
.card--compact .card__title { font-size: 1.05rem; line-height: 1.3; }

/* =========================================================
   7. Pradžios puslapis
   ========================================================= */
.hero {
	display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 3rem;
	padding-block: 2.2rem 3rem;
}
.hero__side { border-left: 1px solid var(--line); padding-left: 2rem; }
.hero__side-title {
	display: flex; align-items: center; gap: .55rem; margin: 0 0 .4rem;
	font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--heading);
}
.hero__side-title .i { width: 1.6rem; height: 1.2rem; }
.hero__side .card--side:first-of-type { border-top: 0; }

.topics { background: var(--ink); color: #fff; }
.topics__in { display: flex; align-items: center; gap: 1.5rem; padding-block: 1rem; }
.topics__label { flex: none; font: italic 600 1.1rem/1 var(--serif); color: var(--sun); }
.topics__list { list-style: none; margin: 0; padding: .2rem 0; display: flex; gap: .55rem; overflow-x: auto; scrollbar-width: none; }
.topics__list::-webkit-scrollbar { display: none; }
.topic {
	display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap;
	padding: .5rem .55rem .5rem .8rem; border-radius: 999px; text-decoration: none;
	border: 1px solid var(--line); background: var(--card); color: var(--heading);
	font: 600 .88rem/1 var(--sans); transition: background .2s, border-color .2s, transform .2s;
}
.topic::before { content: ""; width: .55rem; height: .55rem; border-radius: 2px; background: var(--c); transform: rotate(45deg); }
.topic__count { background: var(--paper-2); color: var(--muted); border-radius: 999px; padding: .2rem .45rem; font-size: .72rem; }
.topic:hover { transform: translateY(-2px); border-color: var(--c); }
.topics .topic { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; }
.topics .topic__count { background: var(--sun); color: var(--ink); }
.topics .topic:hover { background: rgba(255, 255, 255, .14); }

.sec-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.milestone {
	flex: none; display: grid; place-content: center; text-align: center;
	width: 3.2rem; height: 3.7rem; border-radius: 1.6rem 1.6rem .35rem .35rem;
	background: var(--ink); color: var(--sun); font: 700 1.15rem/1 var(--serif);
	box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18);
}
.milestone small { display: block; font: 700 .55rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #C9D5E6; margin-bottom: .2rem; }
.sec-head__title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.sec-head__trail { flex: 1; height: 3px; min-width: 2rem; background: repeating-linear-gradient(90deg, var(--sun) 0 7px, transparent 7px 15px); border-radius: 2px; }
.sec-head__more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; color: var(--heading); text-decoration: none; }

.route-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 3.5rem; padding-block: 3.5rem 2rem; align-items: start; }
.route { list-style: none; margin: 0; padding: 0; position: relative; }
.route::before {
	content: ""; position: absolute; left: calc(2.2rem - 1.5px); top: 1rem; bottom: 1rem; width: 3px;
	background: repeating-linear-gradient(180deg, var(--sun) 0 8px, transparent 8px 16px);
}
.route__stop { position: relative; padding-block: 1.4rem; }
.route__stop + .route__stop { border-top: 1px dashed var(--line); }
.route__stop:last-child::after {
	content: ""; position: absolute; left: calc(2.2rem - 7px); bottom: -.4rem; width: 14px; height: 14px;
	border-radius: 50%; background: var(--sun);
}

.route-wrap__aside { position: sticky; top: 7rem; }
.mapcard { background: var(--ink); color: #DCE5F1; border-radius: calc(var(--r) + 6px); padding: 1.6rem 1.5rem; position: relative; overflow: hidden; }
.mapcard::after {
	content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
	background: repeating-conic-gradient(from -90deg at 50% 100%, rgba(255, 255, 255, .05) 0 6deg, transparent 6deg 13deg);
}
.mapcard__title { font: 700 1.35rem/1.2 var(--serif); color: #fff; margin: 0 0 .4rem; }
.mapcard__lead { font-size: .9rem; color: #AFC1D9; }
.mapcard__list { list-style: none; margin: 1.1rem 0 0; padding: 0; position: relative; z-index: 1; }
.mapcard__list li { position: relative; padding: 0 0 1rem 1.7rem; display: flex; flex-direction: column; gap: .15rem; }
.mapcard__list li::before {
	content: ""; position: absolute; left: 0; top: .3rem; width: .8rem; height: .8rem; border-radius: 50%;
	background: var(--c); box-shadow: 0 0 0 3px var(--ink), 0 0 0 4px var(--sun);
}
.mapcard__list li:not(:last-child)::after {
	content: ""; position: absolute; left: calc(.4rem - 1px); top: 1.3rem; bottom: .1rem; width: 2px;
	background: repeating-linear-gradient(180deg, rgba(245, 184, 0, .7) 0 4px, transparent 4px 8px);
}
.mapcard__list a { color: #fff; font-weight: 700; text-decoration: none; }
.mapcard__list a:hover { color: var(--sun); }
.mapcard__list span { font-size: .78rem; color: #93A7C3; }

.directions { padding-block: 2.5rem; }
.directions__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.direction { border-top: 4px solid var(--c); padding-top: 1rem; display: flex; flex-direction: column; }
.direction__title { font-size: 1.45rem; margin-bottom: 1rem; }
.direction__title a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.direction__title .i { color: var(--c); transition: transform .2s; }
.direction__title a:hover .i { transform: translateX(4px); }
.direction .card--grid { margin-bottom: .6rem; }
.direction .card--grid .card__excerpt { display: none; }

.onward { padding-block: 2rem 4rem; }
.onward__in {
	display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
	background: var(--ink); color: #C9D5E6; border-radius: 20px; padding: 2.2rem 2.4rem;
	background-image: repeating-conic-gradient(from -90deg at 100% 130%, rgba(255, 255, 255, .035) 0 5deg, transparent 5deg 11deg);
}
.onward__in > div { flex: 1; min-width: 240px; }
.onward__title { color: #fff; font-size: 1.9rem; margin-bottom: .35rem; }
.onward__in p { margin: 0; }

/* =========================================================
   8. Archyvai
   ========================================================= */
.listhead {
	background-color: var(--paper-2);
	background-image: repeating-conic-gradient(from -90deg at 100% 125%, color-mix(in srgb, var(--c) 8%, transparent) 0 4deg, transparent 4deg 9deg);
	padding-block: 1.6rem 2.6rem; border-bottom: 1px solid var(--line);
}
.listhead__row { display: flex; align-items: flex-start; gap: 1.4rem; margin-top: 1.4rem; }
.listhead__sign {
	--shell-ink: var(--c);
	flex: none; display: grid; place-items: center; width: 4.6rem; height: 4.6rem;
	background: var(--c); border-radius: 12px; box-shadow: var(--shadow);
}
.listhead__sign .i { width: 3.4rem; height: 2.5rem; }
.listhead__kicker { margin: 0 0 .3rem; font: 700 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.listhead__title { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.015em; }
.listhead__title small { display: inline-block; font: 600 .95rem/1 var(--sans); color: var(--muted); vertical-align: middle; margin-left: .5rem; }
.listhead__desc { max-width: 65ch; margin-top: .8rem; color: var(--text); font-size: 1.05rem; }
.listhead__desc p:last-child { margin: 0; }
.listhead__count { margin: .7rem 0 0; font-size: .85rem; font-weight: 600; color: var(--sun-text); }

.listing { padding-block: 2.6rem 3.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 2rem 1.7rem; }

.pager { margin-top: 3rem; }
.pager ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; }
.pager a, .pager span {
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
	min-width: 2.75rem; height: 2.75rem; padding: 0 .85rem; border-radius: 999px;
	border: 1px solid var(--line); background: var(--card); color: var(--heading);
	font-weight: 700; font-size: .92rem; text-decoration: none;
}
.pager a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.pager .current { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.pager .dots { border: 0; background: none; }
.pager--inline { margin-top: 2rem; display: flex; gap: .4rem; font-weight: 700; }

.empty { text-align: center; padding: 3rem 0; }

/* Trupinių kelias */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .82rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: .3rem; min-width: 0; max-width: 100%; }
.crumbs li + li::before { content: ""; width: .4rem; height: .4rem; border-right: 2px solid var(--sun); border-top: 2px solid var(--sun); transform: rotate(45deg); margin-right: .25rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--heading); text-decoration: underline; text-decoration-color: var(--sun); }
.crumbs [aria-current] { color: var(--heading); max-width: min(40ch, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =========================================================
   9. Straipsnis
   ========================================================= */
.entry__head { max-width: 900px; padding-block: 1.6rem 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.entry__head .crumbs { margin-bottom: .4rem; }
.entry__title { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; }
.entry--page .entry__head { max-width: 760px; }
.entry__deck { font: italic 400 clamp(1.12rem, 2vw, 1.35rem)/1.5 var(--serif); color: var(--muted); margin: 0; max-width: 60ch; }
.entry__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.3rem; margin-top: .4rem; }
.entry__meta-text { display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; color: var(--muted); }
.entry__author { font-weight: 700; color: var(--heading); }
.entry__time {
	display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 999px;
	background: var(--card); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--heading);
}

.entry__hero { margin: 0 auto 2.6rem; }
.entry__hero .thumb { aspect-ratio: 16 / 8.5; border-radius: 18px; }
.entry__hero figcaption { margin-top: .6rem; font-size: .82rem; color: var(--muted); }

.entry__layout { display: grid; grid-template-columns: 15.5rem minmax(0, 720px); justify-content: center; gap: 4rem; padding-bottom: 2rem; }
.entry__aside-in { position: sticky; top: 6.5rem; display: flex; flex-direction: column; gap: 1.6rem; }

.toc { border-left: 3px solid var(--sun); padding-left: 1rem; }
.toc summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem;
	font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--heading);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary .i { width: 1.5rem; height: 1.15rem; }
.toc summary small { margin-left: auto; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--muted); }
.toc__list { list-style: none; margin: 1rem 0 0; padding: 0; max-height: 60vh; overflow: auto; }
.toc__list li { margin: 0; }
.toc__list a {
	display: block; position: relative; padding: .38rem 0 .38rem 1rem;
	font-size: .88rem; line-height: 1.35; color: var(--muted); text-decoration: none; transition: color .2s;
}
.toc__list a::before {
	content: ""; position: absolute; left: 0; top: .78rem; width: .4rem; height: .4rem; border-radius: 50%;
	border: 1.5px solid var(--muted); transition: background .2s, border-color .2s;
}
.toc__list a:hover, .toc__list a.is-active { color: var(--heading); }
.toc__list a.is-active { font-weight: 700; }
.toc__list a.is-active::before { background: var(--sun); border-color: var(--sun); }
.toc__l3 a { padding-left: 1.9rem; font-size: .82rem; }
.toc__l3 a::before { left: .9rem; }

.share { display: flex; flex-direction: column; gap: .6rem; }
.share__label { font: 700 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.share ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.share a, .share button {
	display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .75rem; border-radius: 999px;
	border: 1px solid var(--line); background: var(--card); color: var(--heading);
	font: 600 .8rem/1 var(--sans); text-decoration: none; transition: background .2s, color .2s;
}
.share a:hover, .share button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.share button.is-done { background: var(--sun); color: var(--ink); border-color: var(--sun); }

/* Turinio tipografija */
.prose { font: 400 1.14rem/1.78 var(--serif); color: var(--text); overflow-wrap: break-word; }
.prose > * { margin-block: 0 1.35rem; }
.prose > p:first-child::first-letter {
	float: left; font: 700 4.2em/.82 var(--serif); margin: .07em .12em 0 0; color: var(--heading);
	text-shadow: .05em .05em 0 var(--sun);
}
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 2.6rem 0 1rem; position: relative; padding-top: 1rem; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 2.6rem; height: 4px; background: var(--sun); border-radius: 2px; }
.prose h3 { font-size: 1.32rem; margin: 2rem 0 .8rem; }
.prose h4 { font-size: 1.1rem; margin: 1.6rem 0 .6rem; font-family: var(--sans); }
.prose a { color: var(--heading); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 3px; transition: background .2s; }
.prose a:hover { background: color-mix(in srgb, var(--sun) 25%, transparent); }
.prose strong { color: var(--heading); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .45rem; }
.prose ul li::marker { color: var(--sun-text); content: "◆  "; font-size: .7em; }
.prose ol li::marker { color: var(--sun-text); font: 700 .95em var(--sans); }
.prose blockquote, .prose .wp-block-quote {
	margin: 2rem 0; padding: .4rem 0 .4rem 1.6rem; border-left: 4px solid var(--sun);
	font-style: italic; font-size: 1.28rem; line-height: 1.6; color: var(--heading); position: relative;
}
.prose blockquote p:last-child { margin: 0; }
.prose blockquote cite, .prose .wp-block-quote cite { display: block; margin-top: .6rem; font: normal 600 .85rem var(--sans); color: var(--muted); }
.prose .wp-block-pullquote { border-top: 4px solid var(--sun); border-bottom: 4px solid var(--sun); padding: 1.5rem 0; text-align: center; }
.prose .wp-block-pullquote blockquote { border: 0; padding: 0; }
.prose img { border-radius: 10px; }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-element-caption { font: 400 .82rem/1.5 var(--sans); color: var(--muted); margin-top: .55rem; text-align: left; }
.prose hr, .prose .wp-block-separator { border: 0; height: 3px; margin: 2.6rem auto; width: 40%; background: repeating-linear-gradient(90deg, var(--sun) 0 7px, transparent 7px 15px); opacity: 1; }
.prose .wp-block-table, .prose table { overflow-x: auto; display: block; }
.prose table { border-collapse: collapse; width: 100%; font: .95rem/1.5 var(--sans); }
.prose .wp-block-table table { display: table; }
.prose th, .prose td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--paper-2); color: var(--heading); font-weight: 700; }
.prose code { font: .88em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--paper-2); padding: .1em .35em; border-radius: 4px; }
.prose pre { background: var(--ink); color: #E6ECF4; padding: 1.2rem; border-radius: 10px; overflow: auto; font-size: .9rem; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose .wp-block-button__link { background: var(--ink); color: #fff; border-radius: 999px; text-decoration: none; font: 700 .95rem var(--sans); padding: .85rem 1.4rem; }
.prose .wp-block-embed, .prose iframe { max-width: 100%; }
.prose .alignleft { float: left; margin: .3rem 1.5rem 1rem 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3rem 0 1rem 1.5rem; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignwide { width: min(100vw - 2.5rem, 1000px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose::after { content: ""; display: table; clear: both; }

.also {
	--shell-ink: var(--ink);
	margin: 2.2rem 0; padding: 1.1rem 1.3rem 1.2rem; border-radius: 10px;
	background: color-mix(in srgb, var(--sun) 13%, var(--card)); border-left: 6px solid var(--sun);
}
.also__label { display: flex; align-items: center; gap: .45rem; font: 700 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sun-text); margin-bottom: .55rem; }
.also__label .i { width: 1.4rem; height: 1.05rem; }
.prose .also__link { display: flex; align-items: baseline; gap: .6rem; font: 700 1.16rem/1.35 var(--serif); text-decoration: none; color: var(--heading); }
.prose .also__link:hover { background: none; text-decoration: underline; text-decoration-color: var(--sun); }
.also__link .i { flex: none; color: var(--sun-text); transform: translateY(.15em); }

.entry__foot { margin-top: 2.6rem; display: flex; flex-direction: column; gap: 1.6rem; }
.journey-end { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 0; border-top: 3px dotted var(--sun); border-bottom: 1px solid var(--line); color: var(--muted); }
.journey-end p { margin: 0; }
.journey-end strong { color: var(--heading); }
.journey-end__shell { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--ink); flex: none; }
.journey-end__shell .i { width: 2.1rem; height: 1.6rem; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tags a { display: inline-block; padding: .4rem .8rem; border-radius: 6px; background: var(--paper-2); color: var(--heading); font-weight: 600; font-size: .85rem; text-decoration: none; }
.tags a:hover { background: var(--sun); color: var(--ink); }
.entry__foot .share { flex-direction: row; align-items: center; flex-wrap: wrap; }

.waypoints { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; padding-block: 1.5rem 1rem; }
.waypoint {
	display: flex; flex-direction: column; gap: .5rem; padding: 1.3rem 1.4rem; border-radius: 14px;
	background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: transform .25s, box-shadow .25s;
}
.waypoint:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.waypoint--next { text-align: right; align-items: flex-end; grid-column: 2; }
.waypoint__dir { display: inline-flex; align-items: center; gap: .45rem; font: 700 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sun-text); }
.waypoint__title { font: 700 1.15rem/1.3 var(--serif); color: var(--heading); }

.related { padding-block: 2.5rem 4rem; }

.next-up {
	--shell-ink: var(--c, var(--ink));
	position: fixed; right: 1.25rem; bottom: 5.6rem; z-index: 90; width: min(22rem, calc(100vw - 2.5rem));
	background: var(--card); border-radius: 14px; border-top: 4px solid var(--sun); box-shadow: 0 20px 50px -18px rgba(16, 42, 76, .55);
	padding: 1rem 1.1rem 1rem; transform: translateY(140%); opacity: 0; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s;
}
.next-up.is-in { transform: none; opacity: 1; }
.next-up__close { position: absolute; top: .5rem; right: .5rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; }
.next-up__close:hover { background: var(--paper-2); color: var(--heading); }
.next-up__label { display: block; font: 700 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sun-text); margin-bottom: .6rem; }
.next-up__link { display: grid; grid-template-columns: 4.5rem 1fr; gap: .8rem; align-items: center; text-decoration: none; }
.next-up__link .thumb { aspect-ratio: 1; border-radius: 8px; }
.next-up__title { font: 700 1rem/1.3 var(--serif); color: var(--heading); padding-right: 1rem; }
.next-up__link:hover .next-up__title { text-decoration: underline; text-decoration-color: var(--sun); }
.next-up__time { display: block; margin-top: .5rem; font-size: .75rem; color: var(--muted); }

/* =========================================================
   10. 404
   ========================================================= */
.lost { text-align: center; padding-block: 3.5rem 2rem; }
.lost__in { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.lost__code { margin: 0; font: 700 clamp(6rem, 20vw, 11rem)/.9 var(--serif); color: transparent; -webkit-text-stroke: 2px var(--sun-text); letter-spacing: -.04em; }
.lost__title { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.lost__text { max-width: 50ch; color: var(--muted); font-size: 1.1rem; }
.lost__topics { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }

/* =========================================================
   11. Poraštė ir „Į viršų“
   ========================================================= */
.site-footer { position: relative; background: var(--footer); color: #B9C7DA; margin-top: 2rem; padding-top: 4rem; }
.site-footer__path { position: absolute; top: 18px; left: 0; width: 100%; height: 40px; }
.site-footer__path path { fill: none; stroke: var(--sun); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; opacity: .7; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(13rem, 1fr)); gap: 2.5rem 3rem; padding-bottom: 3rem; }
.site-footer .brand__name { color: #fff; font-size: 1.45rem; }
.site-footer .brand__mark { background: rgba(255, 255, 255, .06); }
.site-footer__about p { margin: 1.1rem 0; font-size: .92rem; max-width: 40ch; }
.site-footer__rss { color: var(--sun); font-weight: 700; font-size: .88rem; }
.site-footer__h { font: 700 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--sun); margin-bottom: 1.1rem; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .65rem; }
.site-footer__list a { color: #E3E9F2; text-decoration: none; font-size: .93rem; display: inline-flex; align-items: center; gap: .5rem; }
.site-footer__list a[style]::before { content: ""; width: .45rem; height: .45rem; background: var(--c); transform: rotate(45deg); border-radius: 1px; }
.site-footer__list a span { color: #7F93B0; font-size: .78rem; }
.site-footer__list a:hover { color: var(--sun); }
.site-footer__list--posts a { font-family: var(--serif); line-height: 1.35; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.3rem; border-top: 1px dashed rgba(255, 255, 255, .15); font-size: .82rem; }
.site-footer__bottom a { color: var(--sun); text-decoration: none; font-weight: 700; }

.to-top {
	position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 95;
	width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center;
	background: var(--ink); color: var(--sun); box-shadow: 0 10px 26px -10px rgba(16, 42, 76, .7);
	text-decoration: none; transition: opacity .3s, transform .3s, bottom .3s;
}
.js .to-top:not(.is-visible) { opacity: 0; transform: translateY(1rem) scale(.85); pointer-events: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top .i-up { width: 1.35rem; height: 1.35rem; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 3; }
.to-top__ring .to-top__fill { stroke: var(--sun); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0)); stroke-linecap: round; }
.to-top__label {
	position: absolute; right: calc(100% + .6rem); white-space: nowrap; background: var(--ink); color: #fff;
	font-size: .78rem; font-weight: 700; padding: .35rem .6rem; border-radius: 6px; 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; }

/* =========================================================
   12. Prisitaikymas prie ekranų
   ========================================================= */
@media (max-width: 1100px) {
	.route-wrap { grid-template-columns: minmax(0, 1fr); }
	.route-wrap__aside { position: static; }
	.mapcard__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); column-gap: 1rem; }
	.mapcard__list li::after { display: none; }
	.entry__layout { grid-template-columns: 13rem minmax(0, 1fr); gap: 2.5rem; }
}
@media (max-width: 960px) {
	.hero { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
	.hero__side { border-left: 0; padding-left: 0; }
	.directions__grid { grid-template-columns: minmax(0, 1fr); }
	.entry__layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
	.entry__aside-in { position: static; }
	.entry__aside .share { display: none; }
	.toc { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sun); border-radius: 10px; padding: .9rem 1rem; }
	.toc__list { max-height: none; }
	.card--route { grid-template-columns: 4.4rem minmax(0, 1fr); }
	.card--route .card__media { grid-column: 2; grid-row: 1; }
	.card--route .card__body { grid-column: 2; }
	.card--route .stamp { grid-row: 1 / span 2; }
	.card--route .card__media .thumb { aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
	:root { --topbar: 2rem; }
	.topbar__motto, .topbar__count { display: none; }
	.brand__mark { width: 2.6rem; height: 2.6rem; border-radius: 10px; }
	.brand__mark .i { width: 1.95rem; height: 1.45rem; }
	.brand__name { font-size: 1.3rem; }
	.brand__tag { display: none; }
	.crumbs li:last-child { display: none; }
	.tool--menu { display: inline-flex; }
	.js .mainnav { display: none; }
	.js .nav-open .mainnav { display: block; max-height: calc(100vh - 7rem); overflow: auto; }
	.js .mainnav ul { flex-direction: column; padding-block: .5rem; }
	.js .mainnav a { padding: .95rem .2rem; font-size: 1.05rem; border-bottom: 1px dashed var(--line); }
	.js .mainnav a::after { display: none; }
	.topics__in { flex-direction: column; align-items: flex-start; gap: .7rem; }
	.topics__list { width: 100%; }
	.card--side { grid-template-columns: 2rem minmax(0, 1fr) 5rem; gap: .8rem; }
	.route::before { left: calc(1.8rem - 1.5px); }
	.route__stop:last-child::after { left: calc(1.8rem - 7px); }
	.card--route { grid-template-columns: 3.6rem minmax(0, 1fr); gap: 1rem; }
	.stamp { width: 3.6rem; height: 3.6rem; }
	.stamp__d { font-size: 1.2rem; }
	.card--route .card__title { font-size: 1.2rem; }
	.sec-head__trail { display: none; }
	.sec-head__title { flex: 1; }
	.onward__in { padding: 1.6rem; }
	.listhead__row { gap: 1rem; }
	.listhead__sign { width: 3.6rem; height: 3.6rem; }
	.listhead__sign .i { width: 2.6rem; height: 1.95rem; }
	.entry__hero { width: 100%; }
	.entry__hero .thumb { border-radius: 0; aspect-ratio: 3 / 2; }
	.entry__hero figcaption { padding-inline: 1.25rem; }
	.prose { font-size: 1.08rem; }
	.prose .alignleft, .prose .alignright { float: none; margin: 0 0 1.35rem; max-width: 100%; }
	.waypoints { grid-template-columns: minmax(0, 1fr); }
	.waypoint--next { grid-column: 1; }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.next-up { left: .75rem; right: .75rem; bottom: .75rem; width: auto; }
	body:has(.next-up.is-in) .to-top { bottom: 9rem; }
	.to-top { right: .9rem; bottom: .9rem; width: 3.1rem; height: 3.1rem; }
	.to-top__label { display: none; }
}

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

@media print {
	.site-header, .site-footer, .trail, .to-top, .next-up, .entry__aside, .share, .waypoints, .related, .also { display: none !important; }
	body { background: #fff; color: #000; }
	.entry__layout { display: block; }
	.prose a { text-decoration: underline; color: #000; }
}
