/* ==========================================================================
   Europos linija – pagrindiniai stiliai
   Idėja: kiekviena tema yra linija (kaip Europos transporto žemėlapyje),
   kiekvienas straipsnis – stotelė. Linijos spalva = temos spalva.
   ========================================================================== */

/* ---------- Šriftai (OFL, saugomi temoje, be išorinių užklausų) ---------- */
@font-face {
	font-family: "Bitter";
	src: url("../fonts/bitter-var.woff") format("woff");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Bitter";
	src: url("../fonts/bitter-italic-var.woff") format("woff");
	font-weight: 300 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Fira Sans";
	src: url("../fonts/firasans-400.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fira Sans";
	src: url("../fonts/firasans-600.woff") format("woff");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* ---------- Spalvos ir dydžiai ---------- */
:root {
	--fog: #EDF0F3;
	--paper: #FFFFFF;
	--ink: #0E1A2B;
	--ink-2: #3A4658;
	--muted: #5A6577;
	--rule: #D3D9E1;
	--amber: #E59A00;
	--amber-ink: #8A5C00;
	--link: #1F3FCC;
	--night: #0E1A2B;
	--mark-bg: #0E1A2B;
	--mark-fg: #FFFFFF;
	--line: #E59A00;
	--lc: var(--line);

	--serif: "Bitter", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--sans: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 72px;
	--r: 6px;
	color-scheme: light;
}

[data-theme="dark"] {
	--fog: #0D1626;
	--paper: #142036;
	--ink: #E7ECF2;
	--ink-2: #C3CCD8;
	--muted: #95A2B4;
	--rule: #26344D;
	--amber-ink: #F2B53A;
	--link: #9DB0FF;
	--night: #08101D;
	--mark-bg: #E7ECF2;
	--mark-fg: #0E1A2B;
	color-scheme: dark;
}

/* Linijos spalva šviesesnė tamsiame režime, kad išliktų kontrastas. */
[style*="--line"] { --lc: var(--line); }
[data-theme="dark"] [style*="--line"] { --lc: color-mix(in srgb, var(--line) 70%, #fff); }

/* ---------- Bazė ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--fog);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.55;
	font-kerning: normal;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--link); }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { margin: 0; font-family: var(--serif); color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
figure { margin: 0; }

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

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

.skip-link:focus {
	position: fixed !important;
	top: 12px; left: 12px;
	z-index: 1000;
	width: auto; height: auto;
	padding: 12px 18px;
	margin: 0;
	clip: auto;
	clip-path: none;
	background: var(--ink);
	color: var(--paper);
	font-weight: 600;
	text-decoration: none;
}

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

.site-main { display: block; outline: none; min-height: 50vh; }

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 4px;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--sans);
	font-weight: 600;
	text-decoration: none;
}
.btn:hover { background: var(--link); color: #fff; }

/* ---------- Skaitymo juosta ---------- */
.read-progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 4px;
	z-index: 60;
	pointer-events: none;
}
.read-progress span {
	display: block;
	height: 100%;
	background: var(--amber);
	transform-origin: 0 50%;
	transform: scaleX(0);
}

/* ---------- Viršutinė juosta ---------- */
.topbar {
	background: var(--night);
	color: #C9D2DE;
	font-size: .8125rem;
}
.topbar__in {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 38px;
}
.topbar__date { font-weight: 600; color: #fff; }
.topbar__date::first-letter { text-transform: uppercase; }
.clocks {
	display: flex;
	gap: 18px;
	list-style: none;
	font-variant-numeric: tabular-nums;
}
.clocks li { display: flex; gap: 6px; }
.clocks__time { color: #fff; min-width: 5ch; }
.mode-toggle {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border: 0;
	background: transparent;
	color: #C9D2DE;
	cursor: pointer;
	border-radius: 4px;
}
.mode-toggle:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.mode-toggle .icon { width: 18px; height: 18px; }
.mode-toggle .icon--sun { display: none; }
[data-theme="dark"] .mode-toggle .icon--sun { display: block; }
[data-theme="dark"] .mode-toggle .icon--moon { display: none; }

/* ---------- Antraštė ---------- */
.masthead {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
}
.masthead__in {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: var(--header-h);
}
.brand-wrap { margin: 0; font-size: inherit; line-height: 1; flex: none; }
.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--ink);
	text-decoration: none;
}
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__mark .m-bg { fill: var(--mark-bg); }
.brand__mark .m-fg { stroke: var(--mark-fg); }
.brand__mark .m-st { fill: var(--amber); stroke: var(--mark-bg); }
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__name {
	font-family: var(--serif);
	font-weight: 780;
	font-size: 1.4rem;
	letter-spacing: -.01em;
	line-height: 1;
}
.brand__sub {
	font-family: var(--sans);
	font-weight: 600;
	font-size: .8rem;
	letter-spacing: .06em;
	color: var(--amber-ink);
	line-height: 1;
}
.brand--custom img { max-height: 48px; width: auto; }

.nav { flex: 1; min-width: 0; }
.nav__toggle { display: none; }
.nav .menu {
	display: flex;
	flex-wrap: nowrap;
	gap: 4px 22px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	padding-right: 28px;
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
	mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.nav .menu::-webkit-scrollbar { display: none; }
.nav .menu a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
	color: var(--ink);
	font-weight: 600;
	font-size: .9375rem;
	text-decoration: none;
	white-space: nowrap;
}
.nav .menu a::before {
	content: "";
	width: 12px;
	height: 5px;
	border-radius: 3px;
	background: var(--lc, var(--amber));
	flex: none;
}
.nav .menu a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 2px;
	height: 3px;
	border-radius: 2px;
	background: var(--lc, var(--amber));
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform .2s ease;
}
.nav .menu a:hover::after,
.nav .menu .current-menu-item > a::after,
.nav .menu .current-menu-parent > a::after { transform: scaleX(1); }

/* Paieška */
.search-drop { position: relative; flex: none; }
.search-drop summary {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	list-style: none;
	color: var(--ink);
}
.search-drop summary::-webkit-details-marker { display: none; }
.search-drop summary:hover,
.search-drop[open] summary { background: var(--fog); }
.search-drop__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 12px);
	width: min(440px, calc(100vw - 2 * var(--gutter)));
	padding: 16px;
	background: var(--paper);
	border: 1px solid var(--rule);
	border-top: 4px solid var(--amber);
	border-radius: 0 0 var(--r) var(--r);
	box-shadow: 0 18px 40px -18px rgba(14, 26, 43, .35);
}
.search-form { display: flex; gap: 8px; }
.search-form__input {
	flex: 1;
	min-width: 0;
	height: 46px;
	padding: 0 14px;
	border: 2px solid var(--rule);
	border-radius: 4px;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
}
.search-form__input:focus { border-color: var(--ink); outline: none; }
.search-form__btn {
	height: 46px;
	padding: 0 18px;
	border: 0;
	border-radius: 4px;
	background: var(--ink);
	color: var(--paper);
	font-weight: 600;
	cursor: pointer;
}
.search-form__btn:hover { background: var(--link); color: #fff; }

/* ---------- Naujausių antraščių juosta ---------- */
.ticker {
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
	font-size: .875rem;
}
.ticker__in { display: flex; align-items: center; gap: 16px; min-height: 46px; }
.ticker__label {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--ink);
}
.ticker__label::before {
	content: "";
	width: 10px; height: 10px;
	border-radius: 50%;
	background: var(--amber);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 30%, transparent);
}
.ticker__list {
	display: flex;
	gap: 28px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	mask-image: linear-gradient(90deg, #000 85%, transparent);
	-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
	padding-block: 10px;
}
.ticker__list::-webkit-scrollbar { display: none; }
.ticker__list li {
	flex: none;
	display: flex;
	align-items: baseline;
	gap: 8px;
	scroll-snap-align: start;
	max-width: 46ch;
}
.ticker__list li::before {
	content: "";
	align-self: center;
	width: 18px; height: 4px;
	border-radius: 2px;
	background: var(--lc);
	flex: none;
}
.ticker__list time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.ticker__list a {
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ticker__list a:hover { text-decoration: underline; text-decoration-color: var(--lc); text-decoration-thickness: 2px; }

/* ---------- Bendri elementai ---------- */
.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	color: var(--muted);
	font-size: .8125rem;
	font-variant-numeric: tabular-nums;
}
.chip {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px 3px 8px;
	border-left: 4px solid var(--lc);
	border-radius: 0 3px 3px 0;
	background: var(--fog);
	background: color-mix(in srgb, var(--lc) 14%, transparent);
	color: var(--ink);
	font-family: var(--sans);
	font-weight: 600;
	font-size: .8125rem;
	line-height: 1.35;
	text-decoration: none;
}
a.chip:hover { background: var(--lc); color: #fff; }
[data-theme="dark"] a.chip:hover { color: var(--night); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }

/* Paveikslėlio pakaitalas: temos spalvos „žemėlapis“ */
.ph {
	position: relative;
	display: flex;
	align-items: flex-end;
	width: 100%;
	height: 100%;
	padding: 12px 14px;
	overflow: hidden;
	background-color: color-mix(in srgb, var(--line) 82%, #0E1A2B);
	background-image:
		radial-gradient(circle at 72% 38%, #fff 0 7px, transparent 8px),
		radial-gradient(circle at 72% 38%, rgba(14, 26, 43, .55) 0 11px, transparent 12px),
		linear-gradient(135deg, transparent 0 46%, rgba(255, 255, 255, .28) 46% 50%, transparent 50%),
		linear-gradient(180deg, transparent 0 36%, rgba(255, 255, 255, .22) 36% 40%, transparent 40%),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 24px);
}
.ph__name {
	font-family: var(--serif);
	font-weight: 750;
	font-size: clamp(.9rem, .6rem + 1vw, 1.35rem);
	line-height: 1.1;
	color: #fff;
}

/* Skilties antraštė su linijos atkarpa */
.sec-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}
.sec-head__title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 760;
	font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem);
	letter-spacing: -.01em;
}
.sec-head__title::before {
	content: "";
	width: 30px;
	height: 7px;
	border-radius: 4px;
	background: var(--lc);
	flex: none;
}
.sec-head__more {
	flex: none;
	font-weight: 600;
	font-size: .875rem;
	color: var(--ink);
	text-underline-offset: 4px;
	text-decoration-color: var(--lc);
	text-decoration-thickness: 2px;
}

/* ---------- Pradžia: pagrindinis straipsnis ---------- */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
	gap: 44px;
	padding-block: 36px 52px;
}
.lead__media {
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: var(--r);
	overflow: hidden;
	background: var(--rule);
}
.lead__media img { width: 100%; height: 100%; object-fit: cover; }
.lead__body { padding-top: 20px; }
.lead__title {
	margin-top: 12px;
	font-weight: 780;
	font-size: clamp(1.75rem, 1.1rem + 2vw, 2.6rem);
	line-height: 1.12;
	letter-spacing: -.018em;
	text-wrap: balance;
}
.lead__media, .hero-route__media, .stop__media, .tile__media, .upnext__card { text-decoration: none; }
.lead__title a, .hero-route__title a, .stop__title a, .tile__title a {
	color: inherit;
	text-decoration: none;
	text-decoration-color: var(--lc);
	text-decoration-thickness: 3px;
	text-underline-offset: .14em;
}
.lead__title a:hover, .hero-route__title a:hover, .stop__title a:hover, .tile__title a:hover { text-decoration-line: underline; }
.lead__excerpt {
	margin-top: 14px;
	max-width: 62ch;
	color: var(--ink-2);
	font-size: 1.0625rem;
	line-height: 1.6;
}

/* Šalia: trys stotelės vienoje linijoje */
.hero-route { list-style: none; display: flex; flex-direction: column; }
.hero-route__item {
	position: relative;
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 16px;
	padding: 0 0 26px 38px;
}
.hero-route__item::before {
	content: "";
	position: absolute;
	left: 12px; top: 0; bottom: 0;
	width: 6px;
	background: var(--lc);
}
.hero-route__item:first-child::before { top: 10px; border-radius: 3px 3px 0 0; }
.hero-route__item:last-child::before { bottom: auto; height: 24px; }
.hero-route__item::after {
	content: "";
	position: absolute;
	left: 4px; top: 4px;
	width: 22px; height: 22px;
	border-radius: 50%;
	background: var(--paper);
	border: 5px solid var(--ink);
}
.hero-route__item + .hero-route__item { padding-top: 22px; }
.hero-route__item + .hero-route__item::after { top: 26px; }
.hero-route__media {
	display: block;
	aspect-ratio: 3 / 2;
	border-radius: 4px;
	overflow: hidden;
	background: var(--rule);
}
.hero-route__media img { width: 100%; height: 100%; object-fit: cover; }
.hero-route__media .ph__name { display: none; }
.hero-route__title {
	margin-top: 6px;
	font-weight: 680;
	font-size: 1.125rem;
	line-height: 1.28;
	text-wrap: pretty;
}

/* ---------- Išdėstymas su šonine juosta ---------- */
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 64px;
	align-items: start;
	padding-block: 8px 24px;
}

/* ---------- Maršruto srautas ---------- */
.feed { display: flex; flex-direction: column; }
.stop {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr) 220px;
	gap: 0 22px;
	padding-bottom: 34px;
}
.stop__rail { position: relative; }
.stop__rail::before {
	content: "";
	position: absolute;
	left: 12px; top: 0; bottom: -34px;
	width: 6px;
	background: var(--lc);
}
.stop:first-child .stop__rail::before { top: 6px; border-radius: 3px 3px 0 0; }
.stop:last-child .stop__rail::before {
	bottom: 0;
	-webkit-mask-image: linear-gradient(#000 60%, transparent);
	mask-image: linear-gradient(#000 60%, transparent);
}
.stop__dot {
	position: absolute;
	left: 3px; top: 2px;
	width: 24px; height: 24px;
	border-radius: 50%;
	background: var(--paper);
	border: 5px solid var(--ink);
	transition: background-color .15s ease;
}
.stop:hover .stop__dot, .stop:focus-within .stop__dot { background: var(--amber); }
.stop__title {
	margin-top: 8px;
	font-weight: 720;
	font-size: clamp(1.2rem, 1.05rem + .5vw, 1.4rem);
	line-height: 1.25;
	letter-spacing: -.008em;
	text-wrap: pretty;
}
.stop__excerpt {
	margin-top: 8px;
	color: var(--ink-2);
	font-size: .975rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.stop__media {
	display: block;
	align-self: start;
	aspect-ratio: 3 / 2;
	border-radius: var(--r);
	overflow: hidden;
	background: var(--rule);
	margin-top: 4px;
}
.stop__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Šoninė juosta ---------- */
.side { display: flex; flex-direction: column; gap: 36px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-block__title {
	font-family: var(--sans);
	font-weight: 600;
	font-size: 1rem;
	padding-bottom: 10px;
	margin-bottom: 14px;
	border-bottom: 3px solid var(--ink);
}
.side-block ul { list-style: none; }
.side-block.widget a { color: var(--ink); }

.line-list { display: flex; flex-direction: column; gap: 6px; }
.line-list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 0 7px 14px;
	border-left: 6px solid var(--lc);
}
.line-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.line-list a:hover { text-decoration: underline; text-decoration-color: var(--lc); text-decoration-thickness: 2px; }
.line-list__count { color: var(--muted); font-size: .8125rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

.mini-route { display: flex; flex-direction: column; }
.mini-route li {
	position: relative;
	padding: 0 0 18px 30px;
}
.mini-route li::before {
	content: "";
	position: absolute;
	left: 7px; top: 0; bottom: 0;
	width: 4px;
	background: var(--lc);
}
.mini-route li:first-child::before { top: 6px; }
.mini-route li:last-child::before { bottom: auto; height: 14px; }
.mini-route li::after {
	content: "";
	position: absolute;
	left: 1px; top: 3px;
	width: 16px; height: 16px;
	border-radius: 50%;
	background: var(--paper);
	border: 4px solid var(--ink);
}
.mini-route a {
	display: block;
	color: var(--ink);
	font-family: var(--serif);
	font-weight: 620;
	line-height: 1.3;
	text-decoration: none;
}
.mini-route a:hover { text-decoration: underline; text-decoration-color: var(--lc); }
.mini-route__meta { display: block; margin-top: 3px; color: var(--muted); font-size: .8125rem; }

/* ---------- Temų juostos ---------- */
.band {
	margin-top: 44px;
	padding-top: 28px;
	border-top: 6px solid var(--lc);
	position: relative;
}
.band::before {
	content: "";
	position: absolute;
	left: 0; top: -15px;
	width: 24px; height: 24px;
	border-radius: 50%;
	background: var(--paper);
	border: 5px solid var(--ink);
}
.band__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}

.tile { display: flex; flex-direction: column; gap: 10px; }
.tile__media {
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: var(--r);
	overflow: hidden;
	background: var(--rule);
	margin-bottom: 4px;
}
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__title {
	font-weight: 690;
	font-size: 1.125rem;
	line-height: 1.3;
	text-wrap: pretty;
}
.tile__excerpt { color: var(--ink-2); font-size: .9375rem; }

/* ---------- Archyvo antraštė ---------- */
.arch-head { padding-block: 26px 34px; }
.arch-head__title {
	margin-top: 16px;
	font-weight: 790;
	font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem);
	line-height: 1.08;
	letter-spacing: -.02em;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.arch-head__title::after {
	content: "";
	width: 96px;
	height: 8px;
	border-radius: 4px;
	background: var(--lc);
}
.arch-head__desc { margin-top: 14px; max-width: 70ch; color: var(--ink-2); font-size: 1.0625rem; }
.arch-head__desc p + p { margin-top: .8em; }
.arch-head__count { margin-top: 12px; color: var(--muted); font-size: .875rem; }
.arch-head .chip-row { margin-top: 16px; }
.arch-head__search { margin-top: 18px; max-width: 520px; }

/* Kelias */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; font-size: .8125rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before {
	content: "";
	width: 14px; height: 2px;
	margin-inline: 8px;
	background: var(--rule);
	border-radius: 1px;
}
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] span {
	display: inline-block;
	max-width: 42ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

/* Puslapiavimas */
.pagination { margin-top: 18px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--rule);
	border-radius: 4px;
	background: var(--paper);
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}
a.page-numbers:hover { border-color: var(--ink); }
.page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-numbers.dots { border: 0; background: none; }

/* ---------- Straipsnis ---------- */
.article__head { padding-top: 24px; }
.article__kicker { margin-top: 22px; }
.article__title {
	margin-top: 14px;
	font-weight: 790;
	font-size: clamp(1.9rem, 1.3rem + 2.1vw, 2.85rem);
	line-height: 1.1;
	letter-spacing: -.018em;
	text-wrap: balance;
}
.article__lead {
	margin-top: 18px;
	font-family: var(--serif);
	font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
	line-height: 1.55;
	color: var(--ink-2);
}
.article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin-top: 20px;
	padding-top: 14px;
	border-top: 1px solid var(--rule);
	color: var(--muted);
	font-size: .875rem;
}
.article__meta time { color: var(--ink); font-weight: 600; }
.article__figure { margin-block: 30px 10px; }
.article__figure img {
	width: 100%;
	max-height: 680px;
	object-fit: cover;
	border-radius: var(--r);
}
.article__figure figcaption { margin-top: 8px; color: var(--muted); font-size: .8125rem; }

.article__grid {
	display: grid;
	grid-template-columns: minmax(0, 740px);
	justify-content: center;
	gap: 56px;
	padding-block: 30px 12px;
}
.article__grid.has-toc { grid-template-columns: 250px minmax(0, 740px); }

/* Turinio maršrutas */
.route {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	align-self: start;
	max-height: calc(100vh - var(--header-h) - 48px);
	overflow-y: auto;
	scrollbar-width: thin;
}
.route__title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
	font-weight: 600;
	font-size: .9375rem;
	list-style: none;
	cursor: default;
}
.route__title::-webkit-details-marker { display: none; }
.route__count { color: var(--muted); font-weight: 400; font-size: .8125rem; }
.route__nav { position: relative; }
.route__nav::before, .route__fill {
	content: "";
	position: absolute;
	left: 7px; top: 8px;
	width: 4px;
	border-radius: 2px;
}
.route__nav::before { bottom: 8px; background: var(--rule); }
.route__fill {
	height: calc((100% - 16px) * var(--p, 0));
	background: var(--amber);
}
.route ol { list-style: none; position: relative; }
.route__stop { position: relative; padding-left: 28px; }
.route__stop::before {
	content: "";
	position: absolute;
	left: 1px; top: 9px;
	width: 16px; height: 16px;
	border-radius: 50%;
	background: var(--fog);
	border: 4px solid var(--rule);
	box-sizing: border-box;
	transition: border-color .15s, background-color .15s;
}
.route__stop--h3 { padding-left: 42px; }
.route__stop--h3::before { left: 4px; width: 10px; height: 10px; top: 12px; border-width: 3px; }
.route__stop a {
	display: block;
	padding: 6px 0;
	color: var(--ink-2);
	font-size: .875rem;
	line-height: 1.35;
	text-decoration: none;
}
.route__stop a:hover { color: var(--ink); text-decoration: underline; }
.route__stop.is-passed::before { border-color: var(--amber); }
.route__stop.is-active::before { border-color: var(--amber); background: var(--amber); }
.route__stop.is-active a { color: var(--ink); font-weight: 600; }

/* Straipsnio tekstas */
.prose {
	font-family: var(--serif);
	font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
	line-height: 1.75;
	color: var(--ink);
	min-width: 0;
	overflow-wrap: break-word;
}
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4 { scroll-margin-top: calc(var(--header-h) + 24px); text-wrap: balance; }
.prose h2 {
	margin-top: 2em;
	font-weight: 760;
	font-size: clamp(1.45rem, 1.25rem + .8vw, 1.85rem);
	line-height: 1.2;
	letter-spacing: -.012em;
}
.prose h3 { margin-top: 1.7em; font-weight: 720; font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); line-height: 1.3; }
.prose h4 { margin-top: 1.5em; font-family: var(--sans); font-weight: 600; font-size: 1.05rem; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; color: var(--ink); }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.6em; }
.prose li + li { margin-top: .4em; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; }
.prose ul > li::before {
	content: "";
	position: absolute;
	left: -1.3em; top: .55em;
	width: .62em; height: .62em;
	border-radius: 50%;
	border: 3px solid var(--lc);
	box-sizing: border-box;
}
.prose ol > li::marker { font-family: var(--sans); font-weight: 600; color: var(--amber-ink); }
.prose blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 1.2em;
	border-left: 6px solid var(--amber);
	font-style: italic;
	font-size: 1.15em;
	line-height: 1.55;
	color: var(--ink-2);
}
.prose blockquote cite { display: block; margin-top: .5em; font-style: normal; font-family: var(--sans); font-size: .8em; color: var(--muted); }
.prose img { border-radius: var(--r); }
.prose figure figcaption, .prose .wp-element-caption { margin-top: 8px; font-family: var(--sans); font-size: .8125rem; color: var(--muted); line-height: 1.45; }
.prose hr {
	border: 0;
	margin-block: 2.2em;
	background: radial-gradient(circle, var(--ink) 0 6px, var(--paper) 6px 8px, transparent 8px) center / 22px 22px no-repeat, linear-gradient(var(--rule), var(--rule)) center / 100% 4px no-repeat;
	height: 22px;
}
.prose code { font-size: .88em; padding: .1em .35em; border-radius: 3px; background: var(--paper); border: 1px solid var(--rule); }
.prose pre { overflow-x: auto; padding: 16px; background: var(--night); color: #E7ECF2; border-radius: var(--r); font-size: .9rem; line-height: 1.55; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .9375rem; line-height: 1.45; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose th { background: var(--paper); font-weight: 600; border-bottom: 3px solid var(--ink); }
.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; }
.prose .wp-block-image img { height: auto; }
.prose iframe { max-width: 100%; border: 0; }
.prose::after { content: ""; display: table; clear: both; }

/* „Taip pat skaitykite“ */
.inline-read {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 20px;
	background: var(--paper);
	border-left: 6px solid var(--lc);
	border-radius: 0 var(--r) var(--r) 0;
	font-family: var(--sans);
	line-height: 1.4;
}
.inline-read__label { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.prose .inline-read__link {
	font-family: var(--serif);
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--ink);
	text-decoration: none;
}
.prose .inline-read__link:hover { text-decoration: underline; text-decoration-color: var(--lc); text-decoration-thickness: 2px; }

.page-links { font-family: var(--sans); font-weight: 600; }

/* Straipsnio pabaiga */
.article__main { min-width: 0; }
.article__foot { margin-top: 40px; display: flex; flex-direction: column; gap: 22px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px 14px; list-style: none; font-size: .875rem; }
.tag-row a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.tag-row a:hover { color: var(--ink); text-decoration: underline; }

.share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding-top: 18px;
	border-top: 1px solid var(--rule);
}
.share__label { font-weight: 600; font-size: .9375rem; margin-right: 6px; }
.share__btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--rule);
	background: var(--paper);
	color: var(--ink);
	cursor: pointer;
}
.share__btn .icon { width: 20px; height: 20px; }
.share__btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.share__status { font-size: .8125rem; color: var(--muted); min-height: 1em; }

/* Skaitykite toliau */
.upnext { margin-top: 44px; }
.upnext__label {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	font-weight: 600;
	font-size: 1rem;
}
.upnext__label::before {
	content: "";
	width: 30px; height: 7px;
	border-radius: 4px;
	background: var(--lc);
}
.upnext__card {
	display: grid;
	grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
	padding: 18px;
	background: var(--paper);
	border: 1px solid var(--rule);
	border-left: 8px solid var(--lc);
	border-radius: var(--r);
	color: var(--ink);
	text-decoration: none;
}
.upnext__card:hover { border-color: var(--lc); }
.upnext__card:hover .upnext__title { text-decoration: underline; text-decoration-color: var(--lc); text-decoration-thickness: 3px; text-underline-offset: .14em; }
.upnext__media { display: block; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: var(--rule); }
.upnext__media img { width: 100%; height: 100%; object-fit: cover; }
.upnext__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.upnext__title { font-family: var(--serif); font-weight: 760; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.15; letter-spacing: -.012em; }
.upnext__excerpt { color: var(--ink-2); }
.upnext__read { color: var(--muted); font-size: .875rem; }

.related { margin-top: 56px; padding-bottom: 12px; }
.related__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }

/* Plaukiantis pasiūlymas */
.next-pop {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 40;
	width: min(360px, calc(100vw - 108px));
	padding: 14px 44px 14px 16px;
	background: var(--paper);
	border-left: 6px solid var(--lc);
	border-radius: 0 var(--r) var(--r) 0;
	box-shadow: 0 16px 40px -12px rgba(14, 26, 43, .35);
	transform: translateY(calc(100% + 40px));
	transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.next-pop.is-shown { transform: none; }
.next-pop__label { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.next-pop__link {
	display: block;
	margin-top: 4px;
	font-family: var(--serif);
	font-weight: 700;
	line-height: 1.3;
	color: var(--ink);
	text-decoration: none;
}
.next-pop__link:hover { text-decoration: underline; text-decoration-color: var(--lc); text-decoration-thickness: 2px; }
.next-pop__close {
	position: absolute;
	top: 6px; right: 6px;
	display: grid;
	place-items: center;
	width: 34px; height: 34px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}
.next-pop__close:hover { background: var(--fog); color: var(--ink); }
.next-pop__close .icon { width: 18px; height: 18px; }

/* Į viršų */
.to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 45;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ink);
	color: var(--paper);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--link); color: #fff; }
.to-top .icon { width: 22px; height: 22px; position: relative; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke-width: 4; }
.to-top__track { stroke: rgba(255, 255, 255, .18); }
[data-theme="dark"] .to-top__track { stroke: rgba(14, 26, 43, .2); }
.to-top__bar { stroke: var(--amber); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); stroke-linecap: round; }

/* ---------- 404 ---------- */
.lost {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 48px;
	align-items: center;
	padding-block: 56px 24px;
}
.lost__map { position: relative; height: 220px; }
.lost__map span {
	position: absolute;
	left: 0;
	height: 10px;
	border-radius: 5px;
}
.lost__map span:nth-child(1) { top: 50px; width: 62%; background: #1F3FCC; }
.lost__map span:nth-child(2) { top: 105px; width: 48%; background: var(--amber); }
.lost__map span:nth-child(3) { top: 160px; width: 70%; background: #0F8B8D; }
.lost__map i {
	position: absolute;
	left: 76%; top: 86px;
	width: 48px; height: 48px;
	border-radius: 50%;
	border: 6px dashed var(--muted);
}
.lost__title { font-weight: 800; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; }
.lost__text { display: flex; flex-direction: column; gap: 18px; max-width: 56ch; }
.lost__text > p:first-of-type { font-size: 1.0625rem; color: var(--ink-2); }

.empty { padding: 28px; background: var(--paper); border-radius: var(--r); display: flex; flex-direction: column; gap: 14px; }
.empty__title { font-family: var(--serif); font-weight: 720; font-size: 1.35rem; }

/* ---------- Poraštė ---------- */
.site-footer {
	margin-top: 72px;
	background: var(--night);
	color: #C3CCD8;
	font-size: .9375rem;
}
.site-footer__lines { display: flex; flex-direction: column; gap: 4px; padding-top: 0; }
.site-footer__lines span { display: block; height: 5px; }
.site-footer__lines span:nth-child(1) { background: #1F3FCC; }
.site-footer__lines span:nth-child(2) { background: var(--amber); }
.site-footer__lines span:nth-child(3) { background: #0F8B8D; }
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	padding-block: 48px 36px;
}
.site-footer__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	font-family: var(--serif);
	font-weight: 760;
	font-size: 1.25rem;
	color: #fff;
}
.site-footer .brand__mark .m-bg { fill: #fff; }
.site-footer .brand__mark .m-fg { stroke: #0E1A2B; }
.site-footer .brand__mark .m-st { fill: var(--amber); stroke: #fff; }
.site-footer__title { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: #fff; margin-bottom: 14px; }
.site-footer a { color: #E7ECF2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.site-footer .line-list li { padding-block: 4px; }
.site-footer .line-list a { color: #E7ECF2; }
.plain-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plain-list a { line-height: 1.4; }
.socials { display: flex; gap: 8px; list-style: none; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
.socials a:hover { background: #fff; color: #0E1A2B; }
.socials .icon { width: 20px; height: 20px; }
.site-footer__bottom { padding-bottom: 28px; font-size: .8125rem; color: #95A2B4; }
.site-footer__bottom p { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---------- Prisitaikymas ---------- */
@media (max-width: 1100px) {
	.layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
	.band__grid, .related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.clocks li:nth-child(3) { display: none; }
}

@media (max-width: 1023px) {
	.article__grid.has-toc { grid-template-columns: minmax(0, 740px); gap: 28px; }
	.route {
		position: static;
		max-height: none;
		padding: 14px 16px 6px;
		background: var(--paper);
		border: 1px solid var(--rule);
		border-radius: var(--r);
	}
	.route__title { cursor: pointer; margin-bottom: 8px; }
	.route__title::after {
		content: "";
		width: 10px; height: 10px;
		border-right: 2px solid var(--ink);
		border-bottom: 2px solid var(--ink);
		transform: rotate(45deg) translateY(-3px);
		margin-left: 8px;
	}
	.route[open] .route__title::after { transform: rotate(-135deg); }
	.route__title { justify-content: flex-start; }
	.route__count { margin-left: auto; }
	.route__stop::before { background: var(--paper); }
}

@media (max-width: 960px) {
	:root { --header-h: 64px; }
	.hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 20px; }
	.masthead__in { gap: 12px; }
	.brand__name { font-size: 1.2rem; }
	.brand__mark { width: 38px; height: 38px; }
	.masthead__in > .brand-wrap { margin-right: auto; }
	.nav { order: 3; flex: none; }
	.nav__toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		height: 44px;
		padding: 0 14px;
		border: 1px solid var(--rule);
		border-radius: 22px;
		background: var(--paper);
		color: var(--ink);
		font-weight: 600;
		cursor: pointer;
	}
	.nav__toggle .icon { width: 20px; height: 20px; }
	.nav__toggle .icon--close { display: none; }
	.nav__toggle[aria-expanded="true"] .icon--close { display: block; }
	.nav__toggle[aria-expanded="true"] .icon--menu { display: none; }
	.nav__menu {
		display: none;
		position: absolute;
		left: 0; right: 0;
		top: 100%;
		padding: 8px var(--gutter) 20px;
		background: var(--paper);
		border-bottom: 1px solid var(--rule);
		box-shadow: 0 24px 40px -24px rgba(14, 26, 43, .35);
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
	}
	.nav__menu.is-open { display: block; }
	.nav .menu { flex-direction: column; gap: 0; }
	.nav .menu a { display: flex; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; }
	.nav .menu a::after { display: none; }
	.search-drop { order: 2; position: static; }
	.search-drop__panel { left: var(--gutter); right: var(--gutter); top: 100%; width: auto; }
}

@media (max-width: 760px) {
	.topbar .clocks { display: none; }
	.topbar__in { gap: 12px; }
	.mode-toggle__label { display: none; }
	.stop { grid-template-columns: 26px minmax(0, 1fr) 96px; gap: 0 14px; padding-bottom: 28px; }
	.stop__rail::before { left: 10px; bottom: -28px; width: 5px; }
	.stop__dot { left: 2px; width: 21px; height: 21px; border-width: 4px; }
	.stop__excerpt { display: none; }
	.stop__media { aspect-ratio: 1; margin-top: 8px; }
	.stop__media .ph__name { display: none; }
	.hero-route__item { grid-template-columns: 88px minmax(0, 1fr); }
	.band__grid, .related__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.band__grid .tile:not(:first-child), .related__grid .tile {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		gap: 4px 14px;
	}
	.band__grid .tile:not(:first-child) .tile__media, .related__grid .tile__media { grid-row: 1 / 3; margin: 0; aspect-ratio: 4 / 3; }
	.band__grid .tile:not(:first-child) .ph__name, .related__grid .ph__name { display: none; }
	.side { grid-template-columns: minmax(0, 1fr); }
	.upnext__card { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 14px; }
	.lost { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
	.lost__map { height: 150px; }
	.lost__map span:nth-child(1) { top: 30px; }
	.lost__map span:nth-child(2) { top: 70px; }
	.lost__map span:nth-child(3) { top: 110px; }
	.lost__map i { top: 52px; }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.prose .alignleft, .prose .alignright { float: none; margin: 0 auto; max-width: 100%; }
	.next-pop { left: 12px; bottom: 12px; width: calc(100vw - 92px); }
	.to-top { right: 12px; bottom: 12px; }
}

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

@media print {
	.topbar, .masthead, .ticker, .site-footer, .route, .share, .upnext, .related, .next-pop, .to-top, .read-progress, .side { display: none !important; }
	body { background: #fff; color: #000; }
	.article__grid, .article__grid.has-toc { grid-template-columns: 1fr; }
	.prose a::after { content: " (" attr(href) ")"; font-size: .8em; }
}

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

[hidden] { display: none !important; }

@media (max-width: 760px) {
	.crumbs [aria-current] { display: none; }
}
