/* ==========================================================================
   Magistralė – Vežėjų gidas
   Kelio ženklų, asfalto ir kelio žymėjimo estetika.
   ========================================================================== */

/* ---------- Šriftai (OFL, saugomi temoje – be Google Fonts užklausų) ---------- */
@font-face {
	font-family: "Anton";
	src: url("../fonts/anton.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dmsans-var.woff") format("woff");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dmsans-italic-var.woff") format("woff");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}
/* Atsarginis šriftas, kad įsikeliant nesišokinėtų išdėstymas (CLS). */
@font-face {
	font-family: "Anton Fallback";
	src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Arial Bold"), local("Arial");
	size-adjust: 88%;
	ascent-override: 118%;
}

/* ---------- Kintamieji ---------- */
:root {
	--asphalt: #14161b;
	--asphalt-2: #1d2027;
	--asphalt-3: #2a2e37;
	--line: #ffc21a;
	--line-ink: #14161b;
	--signal: #ff5a36;
	--paper: #f3f0e8;
	--card: #ffffff;
	--ink: #16181d;
	--ink-2: #3a3f4b;
	--muted: #6a6f7c;
	--rule: rgba(22, 24, 29, .12);
	--shadow: 0 1px 2px rgba(20, 22, 27, .06), 0 8px 24px -12px rgba(20, 22, 27, .25);
	--shadow-lg: 0 2px 4px rgba(20, 22, 27, .06), 0 22px 44px -18px rgba(20, 22, 27, .45);

	--c0: #1f5fd1; /* informacinis – mėlynas */
	--c1: #0d7a4d; /* magistralė – žalias */
	--c2: #8a5a2b; /* turistinis – rudas */
	--c3: #c9302c; /* įspėjamasis – raudonas */
	--c4: #2a2e37; /* asfaltas */
	--c5: #e0a400; /* laikinas – geltonas */

	--f-display: "Anton", "Anton Fallback", "Bahnschrift", "Arial Narrow", sans-serif;
	--f-ui: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--r: 14px;
	--r-lg: 20px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 72px;
	color-scheme: light;
}

[data-theme="dark"] {
	--paper: #0e1014;
	--card: #171a20;
	--ink: #ece7dc;
	--ink-2: #c9c3b7;
	--muted: #8f929b;
	--rule: rgba(236, 231, 220, .12);
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px -14px rgba(0, 0, 0, .7);
	--shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 22px 44px -18px rgba(0, 0, 0, .8);
	--c4: #3a3f4b;
	color-scheme: dark;
}

/* ---------- Pagrindas ---------- */
*,
*::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;
	overflow-x: clip;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-ui);
	font-size: 1rem;
	line-height: 1.6;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	transition: background-color .25s ease, color .25s ease;
}

img,
svg,
video,
iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

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

::selection { background: var(--line); color: var(--line-ink); }

.wrap {
	width: min(1280px, 100% - 2 * var(--gutter));
	margin-inline: auto;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	z-index: 1000;
	top: 12px;
	left: 12px;
	padding: 12px 18px;
	background: var(--line);
	color: var(--line-ink);
	font-weight: 700;
	border-radius: 8px;
}

/* ---------- Skaitymo progresas (brūkšniuota kelio linija) ---------- */
.progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 4px;
	z-index: 200;
	pointer-events: none;
}
.progress__bar {
	display: block;
	height: 100%;
	transform-origin: 0 50%;
	transform: scaleX(var(--p, 0));
	background: repeating-linear-gradient(90deg, var(--line) 0 26px, transparent 26px 38px);
	box-shadow: 0 0 10px rgba(255, 194, 26, .55);
}

/* ---------- Viršutinė juosta + švieslentė ---------- */
.topbar {
	background: #0b0c0f;
	color: #cfcabe;
	font-size: .8125rem;
	border-bottom: 1px solid #23262d;
}
.topbar__in {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 38px;
}
.topbar__date {
	flex: none;
	color: #8f929b;
	letter-spacing: .02em;
}
.topbar__date::first-letter { text-transform: uppercase; }
.ticker {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 14px;
}
.ticker__label {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	font-size: .6875rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--line);
}
.ticker__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--signal);
	box-shadow: 0 0 0 0 rgba(255, 90, 54, .7);
	animation: pulse 2s infinite;
}
@keyframes pulse {
	70% { box-shadow: 0 0 0 8px rgba(255, 90, 54, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0); }
}
.ticker__viewport {
	display: flex;
	overflow: hidden;
	min-width: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker__track {
	flex: none;
	display: flex;
	gap: 34px;
	padding-right: 34px;
	list-style: none;
	animation: tick 90s linear infinite;
}
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__track li {
	display: flex;
	gap: 10px;
	align-items: baseline;
	white-space: nowrap;
}
.ticker__track time {
	color: var(--line);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	font-size: .75rem;
	text-transform: uppercase;
}
.ticker__track a {
	color: #ece7dc;
	text-shadow: 0 0 12px rgba(255, 194, 26, .15);
}
.ticker__track a:hover { color: var(--line); }
@keyframes tick { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.ticker__track { animation: none; }
	.ticker__track[aria-hidden] { display: none; }
	.ticker__viewport { overflow-x: auto; }
}

/* ---------- Antraštė ---------- */
.masthead {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--asphalt);
	color: #f4f1ea;
	transition: transform .3s ease, box-shadow .3s ease;
}
.masthead::after { /* kelio žymėjimas */
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 3px;
	background: repeating-linear-gradient(90deg, var(--line) 0 34px, transparent 34px 56px);
	opacity: .95;
}
.masthead.is-hidden { transform: translateY(-100%); }
.masthead.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
.masthead__in {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: var(--header-h);
}
.logo {
	flex: none;
	display: block;
	color: #f4f1ea;
	line-height: 0;
}
.logo__svg { width: auto; height: 44px; }
.custom-logo-link img { max-height: 50px; width: auto; }

.nav { flex: 1; min-width: 0; }
.nav__list,
.nav ul { list-style: none; }
.nav > .nav__list,
.nav > ul {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 4px;
	align-items: center;
}
.nav li { position: relative; }
.nav a {
	display: block;
	padding: 10px 10px;
	font-weight: 700;
	font-size: .78rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #dcd7cc;
	border-radius: 8px;
	position: relative;
	white-space: nowrap;
}
.nav > ul > li > a::after {
	content: "";
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 4px;
	height: 3px;
	background: var(--line);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform .25s ease;
}
.nav a:hover,
.nav .current-menu-item > a,
.nav .current-menu-ancestor > a,
.nav .current-post-ancestor > a { color: #fff; }
.nav > ul > li > a:hover::after,
.nav > ul > .current-menu-item > a::after,
.nav > ul > .current-post-ancestor > a::after,
.nav > ul > .current-menu-ancestor > a::after { transform: scaleX(1); }
.nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	padding: 8px;
	background: var(--asphalt-2);
	border-radius: 12px;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: .2s ease;
	z-index: 5;
}
.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { text-transform: none; letter-spacing: 0; font-size: .9375rem; }
.nav .sub-menu a:hover { background: var(--asphalt-3); }

.tools {
	flex: none;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}
.tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 42px;
	min-width: 42px;
	padding: 0 11px;
	border: 1px solid #343843;
	border-radius: 999px;
	background: transparent;
	color: #e9e4d8;
	font-weight: 700;
	font-size: .8125rem;
	transition: .2s ease;
}
.tool:hover,
.tool[aria-expanded="true"] { background: var(--line); border-color: var(--line); color: var(--line-ink); }
.tool--random .tool__label { display: none; }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }
.tool--menu { display: none; }
.burger { display: grid; gap: 4px; width: 18px; }
.burger span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: .25s; }
.tool--menu[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tool--menu[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.tool--menu[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.search-drawer {
	background: var(--asphalt-2);
	padding: 18px 0 22px;
	border-top: 1px solid #2c3039;
}

/* Paieškos forma */
.searchbox {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--card);
	border: 2px solid var(--rule);
	border-radius: 999px;
	padding: 6px 6px 6px 16px;
	max-width: 760px;
	color: var(--ink);
}
.search-drawer .searchbox { margin-inline: auto; border-color: transparent; }
.searchbox:focus-within { border-color: var(--line); }
.searchbox__icon { flex: none; color: var(--muted); }
.searchbox__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 1.0625rem;
	color: inherit;
	padding: 8px 4px;
	outline: 0;
}
.searchbox__input::-webkit-search-cancel-button { filter: grayscale(1); }
.searchbox__btn {
	border: 0;
	background: var(--asphalt);
	color: var(--line);
	font-weight: 800;
	letter-spacing: .04em;
	padding: 11px 20px;
	border-radius: 999px;
}
.searchbox__btn:hover { background: var(--line); color: var(--line-ink); }
[data-theme="dark"] .searchbox__btn { background: var(--line); color: var(--line-ink); }

/* ---------- Kategorijų „kelio ženklai“ ---------- */
.sign {
	--sc: var(--c0);
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: .45em;
	max-width: 100%;
	padding: .48em 1.35em .46em .75em;
	background: var(--sc);
	color: #fff;
	font: 800 .6875rem/1.1 var(--f-ui);
	letter-spacing: .1em;
	text-transform: uppercase;
	clip-path: polygon(0 0, calc(100% - .7em) 0, 100% 50%, calc(100% - .7em) 100%, 0 100%);
	border-radius: 3px 0 0 3px;
	transition: filter .2s ease, transform .2s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sign::before {
	content: "";
	width: .5em;
	height: .5em;
	flex: none;
	border: 2px solid currentColor;
	border-radius: 50%;
	opacity: .9;
}
.sign:hover { filter: brightness(1.12); transform: translateX(2px); }
.sign--lg { font-size: .8125rem; }
.sign--c0, .lane--c0, .arch-head--c0, .routes__dot--c0 { --sc: var(--c0); }
.sign--c1, .lane--c1, .arch-head--c1, .routes__dot--c1 { --sc: var(--c1); }
.sign--c2, .lane--c2, .arch-head--c2, .routes__dot--c2 { --sc: var(--c2); }
.sign--c3, .lane--c3, .arch-head--c3, .routes__dot--c3 { --sc: var(--c3); }
.sign--c4, .lane--c4, .arch-head--c4, .routes__dot--c4 { --sc: var(--c4); }
.sign--c5, .lane--c5, .arch-head--c5, .routes__dot--c5 { --sc: var(--c5); }
.sign--c5 { color: var(--line-ink); }

/* ---------- Kortelės ---------- */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--card);
	border-radius: var(--r);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform .25s ease, box-shadow .25s ease;
	isolation: isolate;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--asphalt-2);
}
.card__media img,
.card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.card:hover .card__media img { transform: scale(1.045); }
.card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 16px 18px 18px;
	flex: 1;
}
.card__title {
	font-size: 1.1875rem;
	font-weight: 750;
	line-height: 1.28;
	letter-spacing: -.01em;
}
.card__title a::after { /* visa kortelė paspaudžiama */
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.card__title a { background: linear-gradient(var(--line), var(--line)) 0 100% / 0 3px no-repeat; transition: background-size .3s ease; }
.card:hover .card__title a { background-size: 100% 3px; }
.card__excerpt {
	color: var(--ink-2);
	font-size: .9375rem;
	line-height: 1.55;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.meta {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	color: var(--muted);
	font-size: .8125rem;
	font-weight: 500;
}
.meta__read { display: inline-flex; align-items: center; gap: 5px; }
.meta__read svg { color: var(--signal); }

/* Pakaitalas, kai nėra paveikslėlio */
.ph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--line);
	background:
		linear-gradient(90deg, transparent calc(50% - 3px), rgba(255, 194, 26, .4) calc(50% - 3px) calc(50% + 3px), transparent 0) 0 0 / 100% 46px,
		radial-gradient(120% 80% at 50% 120%, #2a2e37, var(--asphalt) 70%);
}
.ph svg { position: relative; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }

/* Kilometrų stulpelis */
.km {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	display: grid;
	justify-items: center;
	min-width: 34px;
	padding: 3px 5px 4px;
	background: #fff;
	color: var(--asphalt);
	border-radius: 4px 4px 6px 6px;
	border-top: 5px solid var(--c3);
	font: 400 1.0625rem/1 var(--f-display);
	box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}
.km small {
	font: 800 .5rem/1 var(--f-ui);
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: 2px;
	color: var(--muted);
}

/* Eilutės kortelė */
.card--row {
	flex-direction: row;
	align-items: center;
	gap: 14px;
	padding: 10px;
	box-shadow: none;
	background: transparent;
	border-radius: 12px;
}
.card--row:hover { background: var(--card); box-shadow: var(--shadow); transform: none; }
.card--row .card__media {
	flex: none;
	width: 124px;
	aspect-ratio: 3 / 2;
	border-radius: 10px;
}
.card--row .card__body { padding: 0; gap: 6px; }
.card--row .card__title { font-size: 1rem; line-height: 1.32; }
.card--row .meta { font-size: .75rem; }

/* Pagrindinė žinia */
.card--lead {
	min-height: 100%;
	border-radius: var(--r-lg);
	background: var(--asphalt);
	color: #f4f1ea;
}
.card--lead .card__media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}
.card--lead .card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(10, 11, 14, 0) 25%, rgba(10, 11, 14, .55) 55%, rgba(10, 11, 14, .94) 100%),
		linear-gradient(90deg, rgba(10, 11, 14, .35), transparent 60%);
}
.card--lead .card__body {
	position: relative;
	justify-content: flex-end;
	min-height: clamp(420px, 52vw, 600px);
	padding: clamp(20px, 3.4vw, 40px);
	gap: 14px;
}
.card--lead .card__title {
	font-family: var(--f-display);
	font-weight: 400;
	font-size: clamp(2rem, 3.9vw, 3.4rem);
	line-height: 1.08;
	letter-spacing: .003em;
	max-width: 22ch;
	text-shadow: 0 2px 22px rgba(0, 0, 0, .4);
}
.card--lead .card__title a { background-size: 0 5px; }
.card--lead:hover .card__title a { background-size: 100% 5px; }
.card--lead .card__excerpt { color: #d8d3c8; font-size: 1.0625rem; max-width: 60ch; -webkit-line-clamp: 2; }
.card--lead .meta { color: #b9b4a8; margin-top: 0; }

/* Juostos kortelė (tamsus fonas) */
.card--strip {
	flex: none;
	width: min(300px, 78vw);
	scroll-snap-align: start;
	background: var(--asphalt-2);
	color: #ece7dc;
	box-shadow: none;
	border: 1px solid #2c3039;
}
.card--strip .card__title { font-size: 1.0625rem; }
.card--strip .meta { color: #8f929b; }

/* Mini */
.card--mini { box-shadow: none; border: 1px solid var(--rule); }

/* ---------- Pradinis: „Pagrindinės žinios“ ---------- */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
	gap: 24px;
	margin-top: 28px;
}
.hero__lead { min-width: 0; }
.hero__side {
	background: var(--asphalt);
	color: #ece7dc;
	border-radius: var(--r-lg);
	padding: 22px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	position: relative;
	overflow: hidden;
}
.hero__side::before { /* vidurinė kelio linija */
	content: "";
	position: absolute;
	top: 52px;
	bottom: 0;
	left: 76px;
	width: 3px;
	background: repeating-linear-gradient(180deg, rgba(255, 194, 26, .35) 0 18px, transparent 18px 32px);
}
.hero__label {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 10px 10px;
	font: 800 .75rem/1 var(--f-ui);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--line);
}
.hero__label span { color: var(--signal); font-size: .9em; }
.hero__side .card--row { position: relative; color: #ece7dc; flex: 1; }
.hero__side .card--row:hover { background: var(--asphalt-2); box-shadow: none; }
.hero__side .card--row .meta { color: #8f929b; }

/* ---------- Kategorijų juostos su „portaliniu“ ženklu ---------- */
.lane { margin-top: clamp(44px, 6vw, 72px); }
.gantry {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
	flex-wrap: wrap;
	padding-top: 14px;
	margin-bottom: 22px;
}
.gantry::before { /* portalo sija */
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 8px;
	border-radius: 4px;
	background:
		radial-gradient(circle at 6px 4px, #6b707c 2px, transparent 2.5px) 0 0 / 26px 8px,
		linear-gradient(var(--asphalt-3), var(--asphalt));
	opacity: .9;
}
.gantry__plate {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--sc, var(--c1));
	color: #fff;
	padding: 18px 22px 16px;
	border-radius: 10px;
	box-shadow: inset 0 0 0 3px var(--sc, var(--c1)), inset 0 0 0 5px rgba(255, 255, 255, .92), var(--shadow);
	margin-top: 10px;
}
.gantry__plate::before,
.gantry__plate::after { /* tvirtinimai */
	content: "";
	position: absolute;
	top: -18px;
	width: 6px;
	height: 18px;
	background: #5e636e;
	border-radius: 2px;
}
.gantry__plate::before { left: 26px; }
.gantry__plate::after { right: 26px; }
.lane--c5 .gantry__plate { color: var(--line-ink); box-shadow: inset 0 0 0 3px var(--sc), inset 0 0 0 5px var(--line-ink), var(--shadow); }
.gantry__exit {
	position: absolute;
	top: -12px;
	left: 18px;
	background: #fff;
	color: var(--sc, var(--c1));
	font: 800 .625rem/1 var(--f-ui);
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: 5px 8px;
	border-radius: 4px;
	box-shadow: 0 0 0 2px var(--sc, var(--c1));
}
.gantry__title {
	font-family: var(--f-display);
	font-weight: 400;
	font-size: clamp(1.75rem, 3.2vw, 2.6rem);
	line-height: 1;
	letter-spacing: .01em;
}
.gantry__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.gantry__arrow { flex: none; opacity: .95; }
.gantry__all {
	font-weight: 800;
	font-size: .875rem;
	letter-spacing: .04em;
	color: var(--ink);
	padding: 10px 16px;
	border-radius: 999px;
	border: 2px solid var(--rule);
	transition: .2s ease;
}
.gantry__all:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.lane__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 24px;
	align-items: stretch;
}
.lane__grid > .card .card__media { aspect-ratio: 16 / 9; }
.lane--flip .lane__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.lane--flip .lane__grid > .card { order: 2; }
.lane__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	border-left: 4px solid var(--sc, var(--c1));
	padding-left: 12px;
}
.lane--flip .lane__list { border-left: 0; border-right: 4px solid var(--sc, var(--c1)); padding-left: 0; padding-right: 12px; }
.lane__list .card--row .card__media { width: 150px; }
.lane__list .card--row .card__title { font-size: 1.0625rem; }

/* ---------- Greitkelis (horizontali juosta) ---------- */
.strip {
	margin-top: clamp(48px, 7vw, 84px);
	padding: 44px 0 40px;
	background:
		linear-gradient(180deg, transparent 0 calc(100% - 4px), transparent),
		var(--asphalt);
	color: #ece7dc;
	position: relative;
	overflow: hidden;
}
.strip::before,
.strip::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 4px;
	background: #f4f1ea;
	opacity: .9;
}
.strip::before { top: 14px; }
.strip::after { bottom: 14px; }
.strip__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}
.strip__title {
	font-family: var(--f-display);
	font-weight: 400;
	font-size: clamp(1.75rem, 3.4vw, 2.75rem);
	line-height: 1.02;
	color: #f4f1ea;
}
.strip__kicker {
	display: block;
	font: 800 .75rem/1 var(--f-ui);
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--line);
	margin-bottom: 10px;
}
.strip__nav { display: flex; gap: 8px; }
.strip__btn {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 2px solid #3a3f4b;
	background: transparent;
	color: #f4f1ea;
	font-size: 1.125rem;
	transition: .2s;
}
.strip__btn:hover { background: var(--line); color: var(--line-ink); border-color: var(--line); }
.strip__track {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: max(var(--gutter), (100% - 1280px) / 2);
	padding: 6px max(var(--gutter), (100% - 1280px) / 2) 18px;
	scrollbar-width: thin;
	scrollbar-color: #3a3f4b transparent;
}
.strip__track::-webkit-scrollbar { height: 6px; }
.strip__track::-webkit-scrollbar-thumb { background: #3a3f4b; border-radius: 3px; }

/* ---------- Srautas + šoninė juosta ---------- */
.stream {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(28px, 4vw, 48px);
	margin-top: clamp(48px, 7vw, 80px);
	align-items: start;
}
.section-title {
	display: flex;
	align-items: center;
	gap: 18px;
	font-family: var(--f-display);
	font-weight: 400;
	font-size: clamp(1.75rem, 3vw, 2.4rem);
	line-height: 1.05;
	margin-bottom: 22px;
}
.section-title::after {
	content: "";
	flex: 1;
	height: 4px;
	min-width: 40px;
	background: repeating-linear-gradient(90deg, var(--ink) 0 22px, transparent 22px 34px);
	opacity: .2;
}
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 22px;
}
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.stream-grid__wide { grid-column: 1 / -1; }
.stream-grid__wide .card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.stream-grid__wide .card__media { aspect-ratio: auto; min-height: 300px; }
.stream-grid__wide .card__body { padding: 26px 28px; justify-content: center; }
.stream-grid__wide .card__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.05; letter-spacing: .005em; }
.stream-grid .card.is-new { animation: arrive .5s ease both; }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); } }

/* Šoninė juosta */
.sidebar { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.side-box {
	background: var(--card);
	border-radius: var(--r);
	padding: 20px;
	box-shadow: var(--shadow);
}
.side-box__title {
	display: flex;
	align-items: center;
	gap: 10px;
	font: 800 .75rem/1.2 var(--f-ui);
	letter-spacing: .16em;
	text-transform: uppercase;
	margin-bottom: 14px;
}
.side-box__title::before {
	content: "";
	width: 14px;
	height: 14px;
	flex: none;
	background: var(--line);
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.side-box--day .side-box__title::before { display: none; }
.side-box__cal {
	display: grid;
	place-items: center;
	width: 44px;
	padding: 2px 0 4px;
	border-radius: 6px;
	background: var(--signal);
	color: #fff;
	font-size: .5625rem;
	letter-spacing: .1em;
	flex: none;
}
.side-box__cal b { font: 400 1.25rem/1.05 var(--f-display); letter-spacing: 0; }
.day-list { list-style: none; display: grid; gap: 12px; }
.day-list li { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: baseline; font-weight: 650; font-size: .9375rem; line-height: 1.35; }
.day-list a:hover { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 3px; }
.day-list__year { font: 400 1rem/1 var(--f-display); color: var(--muted); }

.routes { list-style: none; position: relative; }
.routes::before { /* maršruto linija */
	content: "";
	position: absolute;
	top: 14px;
	bottom: 14px;
	left: 8px;
	width: 3px;
	background: repeating-linear-gradient(180deg, var(--rule) 0 6px, transparent 6px 10px);
}
.routes__a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 7px 6px 7px 0;
	border-radius: 8px;
	font-weight: 650;
	font-size: .9375rem;
}
.routes__a:hover .routes__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.routes__dot {
	width: 19px;
	height: 19px;
	flex: none;
	border-radius: 50%;
	background: var(--card);
	border: 5px solid var(--sc);
	transition: transform .2s ease;
}
.routes__a:hover .routes__dot { transform: scale(1.2); }
.routes__name { flex: 1; min-width: 0; }
.routes__count {
	font-size: .75rem;
	font-weight: 800;
	color: var(--muted);
	background: var(--paper);
	padding: 3px 8px;
	border-radius: 999px;
	font-variant-numeric: tabular-nums;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
	font-size: .8125rem;
	font-weight: 650;
	padding: 6px 11px;
	border-radius: 999px;
	background: var(--paper);
	border: 1px solid var(--rule);
	transition: .2s ease;
}
.tags a:hover { background: var(--line); color: var(--line-ink); border-color: var(--line); }

.side-random {
	position: relative;
	display: grid;
	gap: 4px;
	padding: 22px 70px 22px 22px;
	border-radius: var(--r);
	background:
		repeating-linear-gradient(135deg, rgba(20, 22, 27, .07) 0 10px, transparent 10px 20px),
		var(--line);
	color: var(--line-ink);
	overflow: hidden;
	transition: transform .2s ease;
}
.side-random:hover { transform: translateY(-2px); }
.side-random__kicker { font-weight: 700; font-size: .8125rem; }
.side-random__title { font: 400 1.6rem/1.05 var(--f-display); }
.side-random__arrow {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	background: var(--c0);
	color: #fff;
	border-radius: 8px;
	box-shadow: inset 0 0 0 2px var(--c0), inset 0 0 0 3.5px #fff;
	font-size: 1.5rem;
	font-weight: 800;
	transition: transform .3s ease;
}
.side-random:hover .side-random__arrow { transform: translateY(-50%) rotate(90deg); }

.sidebar .card--row { padding: 8px 0; }
.sidebar .card--row .card__media { width: 92px; }
.sidebar .card--row:hover { box-shadow: none; }

/* Valdikliai šoninėje juostoje */
.widget ul { list-style: none; display: grid; gap: 8px; }
.widget a:hover { text-decoration: underline; }

/* ---------- Daugiau / puslapiavimas ---------- */
.more { display: flex; justify-content: center; margin-top: 34px; }
.more__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 30px;
	border-radius: 999px;
	background: var(--asphalt);
	color: var(--line);
	font-weight: 800;
	letter-spacing: .03em;
	box-shadow: var(--shadow);
	transition: .2s ease;
}
[data-theme="dark"] .more__btn { background: var(--line); color: var(--line-ink); }
.more__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.more__btn.is-loading { pointer-events: none; opacity: .75; }
.more__btn.is-loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.js .more + .pager { margin-top: 18px; }
.pager { margin-top: 28px; }
.pager .nav-links,
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pager .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 46px;
	padding: 0 10px;
	background: var(--card);
	border-radius: 4px 4px 8px 8px;
	border-top: 5px solid var(--c3);
	font: 400 1.0625rem/1 var(--f-display);
	box-shadow: var(--shadow);
}
.pager .page-numbers.current { background: var(--line); color: var(--line-ink); border-top-color: var(--asphalt); }
.pager .page-numbers.dots { background: transparent; box-shadow: none; border-top-color: transparent; }
.pager a.page-numbers:hover { transform: translateY(-2px); }

/* ---------- Straipsnis ---------- */
.article__head {
	max-width: 1038px;
	margin-top: 26px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}
.crumbs { align-self: stretch; max-width: 100%; min-width: 0; }
.crumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	font-size: .8125rem;
	color: var(--muted);
}
.crumbs li { display: flex; align-items: center; gap: 4px; min-width: 0; }
.crumbs li + li::before { content: "›"; opacity: .6; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs li:last-child { flex: 1 1 10em; min-width: 0; }
.crumbs span[aria-current] { min-width: 0; }
.crumbs span[aria-current] {
	max-width: min(46ch, 100%);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: block;
}
.article__title {
	font-family: var(--f-display);
	font-weight: 400;
	font-size: clamp(2.1rem, 5.2vw, 4.1rem);
	line-height: 1.1;
	letter-spacing: .004em;
	max-width: 24ch;
}
.article__lead {
	font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
	line-height: 1.55;
	color: var(--ink-2);
	max-width: 62ch;
	margin: 0;
}
.dash {
	display: inline-flex;
	flex-wrap: wrap;
	background: var(--asphalt);
	color: #ece7dc;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--shadow);
}
.dash__item {
	display: grid;
	gap: 2px;
	padding: 10px 18px;
	border-right: 1px solid #2c3039;
}
.dash__item:last-child { border-right: 0; }
.dash__k { font-size: .625rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #8f929b; }
.dash__v { font-weight: 700; font-size: .9375rem; }
.dash__item--gauge .dash__v { color: var(--line); }

.article__hero { margin: 28px auto 0; max-width: 1180px; }
.article__img {
	width: 100%;
	max-height: 680px;
	object-fit: cover;
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-lg);
	background: var(--asphalt-2);
}
.article__hero figcaption { margin-top: 10px; font-size: .8125rem; color: var(--muted); }

.article__layout {
	display: grid;
	grid-template-columns: minmax(0, 740px);
	justify-content: center;
	gap: 48px;
	margin-top: 36px;
}
.article__layout.has-toc { grid-template-columns: 250px minmax(0, 740px); }
.article--page .article__layout { margin-top: 24px; }
.article--page .article__head { align-items: center; text-align: center; margin-inline: auto; }

/* Turinio „maršrutas“ */
.toc { position: relative; }
.toc__box {
	position: sticky;
	top: calc(var(--header-h) + 20px);
	background: var(--card);
	border-radius: var(--r);
	padding: 18px 18px 14px;
	box-shadow: var(--shadow);
	max-height: calc(100vh - var(--header-h) - 40px);
	overflow: auto;
}
.toc__title {
	display: flex;
	align-items: center;
	gap: 10px;
	font: 800 .75rem/1 var(--f-ui);
	letter-spacing: .16em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
	margin-bottom: 12px;
}
.toc__title::-webkit-details-marker { display: none; }
.toc__icon {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 5px solid var(--c1);
	flex: none;
}
.toc__list { list-style: none; position: relative; display: grid; gap: 2px; }
.toc__list::before {
	content: "";
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 8px;
	width: 3px;
	background: repeating-linear-gradient(180deg, var(--rule) 0 6px, transparent 6px 10px);
}
.toc__item a {
	position: relative;
	display: block;
	padding: 6px 4px 6px 26px;
	font-size: .875rem;
	line-height: 1.35;
	color: var(--ink-2);
	border-radius: 6px;
}
.toc__item a::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 11px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--card);
	border: 3px solid var(--muted);
	transition: .2s ease;
}
.toc__item--h3 a { padding-left: 40px; font-size: .8125rem; }
.toc__item--h3 a::before { left: 6px; width: 7px; height: 7px; border-width: 2px; top: 12px; }
.toc__item a:hover { color: var(--ink); background: var(--paper); }
.toc__item a.is-active { color: var(--ink); font-weight: 700; }
.toc__item a.is-active::before { border-color: var(--line); background: var(--line); box-shadow: 0 0 0 3px rgba(255, 194, 26, .3); }

/* Turinio tipografija */
.entry-content {
	font-size: 1.125rem;
	line-height: 1.78;
	color: var(--ink);
	overflow-wrap: break-word;
}
.entry-content > * { margin-block: 0 1.15em; }
.entry-content > p:first-child::first-letter {
	float: left;
	font-family: var(--f-display);
	font-size: 4.2em;
	line-height: .86;
	padding: .06em .12em 0 0;
	color: var(--ink);
}
.entry-content h2,
.entry-content h3,
.entry-content h4 { scroll-margin-top: calc(var(--header-h) + 20px); }
.entry-content h2 {
	font-family: var(--f-display);
	font-weight: 400;
	font-size: clamp(1.7rem, 2.8vw, 2.15rem);
	line-height: 1.08;
	margin-top: 1.8em;
	padding-top: .5em;
	border-top: 4px solid transparent;
	border-image: repeating-linear-gradient(90deg, var(--line) 0 28px, transparent 28px 40px) 4;
}
.entry-content h3 { font-size: 1.375rem; font-weight: 800; margin-top: 1.6em; letter-spacing: -.01em; }
.entry-content h4 { font-size: 1.125rem; font-weight: 800; margin-top: 1.4em; }
.entry-content a {
	text-decoration: underline;
	text-decoration-color: var(--line);
	text-decoration-thickness: 3px;
	text-underline-offset: 3px;
	font-weight: 600;
	transition: background-color .2s;
}
.entry-content a:hover { background: rgba(255, 194, 26, .25); }
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .45em; }
.entry-content ul li::marker { color: var(--signal); }
.entry-content ol li::marker { font-weight: 800; color: var(--muted); }
.entry-content blockquote,
.entry-content .wp-block-quote {
	position: relative;
	margin-inline: 0;
	padding: 22px 26px 22px 30px;
	background: var(--card);
	border-radius: var(--r);
	border-left: 6px solid var(--line);
	font-size: 1.25rem;
	line-height: 1.55;
	font-weight: 500;
	box-shadow: var(--shadow);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 10px; font-size: .875rem; font-style: normal; color: var(--muted); }
.entry-content img { border-radius: 12px; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption,
.entry-content .wp-caption-text,
.entry-content .wp-element-caption { margin-top: 8px; font-size: .8125rem; color: var(--muted); text-align: left; }
.entry-content hr { border: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--rule) 0 22px, transparent 22px 34px); margin-block: 2em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .9375rem; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.entry-content th,
.entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.entry-content th { background: var(--asphalt); color: #ece7dc; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content pre { overflow-x: auto; background: var(--asphalt); color: #ece7dc; padding: 18px; border-radius: 12px; font-size: .875rem; }
.entry-content iframe,
.entry-content video { width: 100%; border-radius: 12px; }
.entry-content .alignwide { margin-inline: min(-80px, (740px - 100vw) / 4); max-width: none; }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.entry-content .alignfull img { border-radius: 0; }

.inline-rel {
	display: grid;
	gap: 6px;
	margin: 1.6em 0;
	padding: 18px 22px;
	border-radius: var(--r);
	background: var(--asphalt);
	color: #ece7dc;
	position: relative;
	overflow: hidden;
}
.inline-rel::after {
	content: "";
	position: absolute;
	right: -10px;
	top: 0;
	bottom: 0;
	width: 90px;
	background: repeating-linear-gradient(180deg, var(--line) 0 14px, transparent 14px 26px) center / 5px 100% no-repeat;
	opacity: .35;
}
.inline-rel__label { font-size: .6875rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--line); }
.entry-content .inline-rel__link {
	color: #f4f1ea;
	font-weight: 750;
	font-size: 1.125rem;
	line-height: 1.35;
	text-decoration: none;
	padding-right: 60px;
}
.entry-content .inline-rel__link:hover { background: none; text-decoration: underline; text-decoration-color: var(--line); }

.article__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 34px;
	padding-top: 22px;
	border-top: 1px solid var(--rule);
}
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share__label { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share__btn {
	position: relative;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--rule);
	background: var(--card);
	color: var(--ink);
	transition: .2s ease;
}
.share__btn:hover { color: #fff; transform: translateY(-2px); border-color: transparent; }
.share__btn--facebook:hover { background: #1877f2; }
.share__btn--x:hover { background: #000; }
.share__btn--linkedin:hover { background: #0a66c2; }
.share__btn--whatsapp:hover { background: #25d366; }
.share__btn--copy:hover { background: var(--line); color: var(--line-ink); }
.share__copied {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	background: var(--asphalt);
	color: var(--line);
	font-size: .75rem;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 6px;
	pointer-events: none;
}
.share__copied:empty { display: none; }

.next-turn {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 30px;
	padding: 18px;
	border-radius: var(--r-lg);
	background: var(--c1);
	color: #fff;
	box-shadow: inset 0 0 0 3px var(--c1), inset 0 0 0 5px rgba(255, 255, 255, .9), var(--shadow);
	transition: transform .2s ease;
}
.next-turn:hover { transform: translateY(-2px); }
.next-turn__sign {
	flex: none;
	width: 62px;
	height: 62px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: rgba(255, 255, 255, .14);
	transition: transform .3s ease;
}
.next-turn:hover .next-turn__sign { transform: translateX(6px); }
.next-turn__text { display: grid; gap: 4px; flex: 1; min-width: 0; }
.next-turn__kicker { font-size: .6875rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.next-turn__title { font: 400 clamp(1.25rem, 2.2vw, 1.6rem)/1.1 var(--f-display); }
.next-turn__img { display: block; flex: none; width: 120px; border-radius: 10px; overflow: hidden; }
.next-turn__img img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

.related { margin-top: clamp(48px, 7vw, 80px); }
.page-links { margin-top: 20px; font-weight: 700; }

/* ---------- Archyvų antraštė ---------- */
.arch-head {
	background: var(--asphalt);
	color: #ece7dc;
	padding: 24px 0 34px;
	position: relative;
}
.arch-head::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 4px;
	background: repeating-linear-gradient(90deg, var(--sc) 0 34px, transparent 34px 56px);
}
.arch-head .crumbs ol { color: #8f929b; }
.arch-head .crumbs a:hover { color: #fff; }
.arch-head__plate {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-top: 18px;
	padding: 20px 26px 22px;
	border-radius: 12px;
	background: var(--sc);
	color: #fff;
	box-shadow: inset 0 0 0 3px var(--sc), inset 0 0 0 5px rgba(255, 255, 255, .92);
	max-width: 100%;
}
.arch-head--c5 .arch-head__plate { color: var(--line-ink); box-shadow: inset 0 0 0 3px var(--sc), inset 0 0 0 5px var(--line-ink); }
.arch-head__kicker { font-size: .6875rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.arch-head__title { font: 400 clamp(2.2rem, 5vw, 3.75rem)/1 var(--f-display); letter-spacing: .005em; }
.arch-head__page { opacity: .7; font-size: .6em; }
.arch-head__count { font-size: .8125rem; font-weight: 800; background: rgba(0, 0, 0, .22); padding: 4px 10px; border-radius: 999px; }
.arch-head__desc { margin-top: 16px; max-width: 70ch; color: #c9c3b7; font-size: 1.0625rem; }
.arch-head__desc p:last-child { margin: 0; }
.arch-head__search { margin-top: 20px; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------- 404 ---------- */
.e404 {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(24px, 5vw, 64px);
	align-items: center;
	margin-top: clamp(40px, 7vw, 90px);
}
.e404__sign {
	width: clamp(150px, 24vw, 260px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--c3);
	box-shadow: inset 0 0 0 8px #fff, 0 0 0 3px var(--c3), var(--shadow-lg);
	display: grid;
	place-items: center;
}
.e404__sign span { width: 66%; height: 18%; background: #fff; border-radius: 4px; }
.e404__code { margin: 0 0 6px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--signal); font-size: .8125rem; }
.e404__title { font: 400 clamp(2.6rem, 7vw, 5rem)/1 var(--f-display); margin-bottom: 14px; }
.e404__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: 999px;
	border: 2px solid var(--ink);
	font-weight: 800;
	transition: .2s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--primary { background: var(--line); border-color: var(--line); color: var(--line-ink); }
.btn--primary:hover { background: var(--asphalt); border-color: var(--asphalt); color: var(--line); }

.empty { background: var(--card); border-radius: var(--r); padding: 32px; box-shadow: var(--shadow); }
.empty__title { font: 400 2rem/1.1 var(--f-display); margin-bottom: 10px; }
.empty .searchbox { margin-top: 16px; }

/* ---------- Poraštė ---------- */
.footer {
	margin-top: clamp(64px, 9vw, 120px);
	background: var(--asphalt);
	color: #c9c3b7;
	font-size: .9375rem;
}
.footer__road {
	height: 54px;
	border-block: 4px solid #e9e4d8;
	background:
		repeating-linear-gradient(90deg, var(--line) 0 48px, transparent 48px 80px) center / 100% 5px no-repeat,
		var(--asphalt-2);
}
.footer__grid {
	display: grid;
	grid-template-columns: 1.5fr repeat(3, 1fr);
	gap: 36px;
	padding: 50px 0 34px;
}
.logo--footer { color: #f4f1ea; margin-bottom: 16px; }
.footer__about { max-width: 46ch; color: #a7a296; }
.footer__social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer__social a { display: inline-block; padding: 7px 12px; border: 1px solid #343843; border-radius: 999px; font-weight: 700; font-size: .8125rem; }
.footer__social a:hover { background: var(--line); color: var(--line-ink); border-color: var(--line); }
.footer__title { font: 800 .75rem/1 var(--f-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--line); margin-bottom: 16px; }
.footer__col ul { list-style: none; display: grid; gap: 9px; }
.footer__col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	padding: 20px 0 28px;
	border-top: 1px solid #2c3039;
	font-size: .8125rem;
	color: #8f929b;
}
.footer__bottom p { margin: 0; }
.footer__made::before { content: "▲ "; color: var(--signal); }

/* ---------- Mygtukas „Į viršų“ ---------- */
.to-top {
	position: fixed;
	right: clamp(14px, 2.4vw, 28px);
	bottom: clamp(14px, 2.4vw, 28px);
	z-index: 150;
	width: 58px;
	height: 58px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--asphalt);
	color: var(--line);
	box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .55);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px) scale(.9);
	transition: opacity .3s ease, transform .3s ease, visibility .3s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--line); color: var(--line-ink); }
.to-top > svg { grid-area: 1 / 1; }
.to-top__ring { width: 58px; height: 58px; transform: rotate(-90deg); }
.to-top__ring circle {
	fill: none;
	stroke: var(--line);
	stroke-width: 3;
	stroke-dasharray: 100;
	stroke-dashoffset: calc(100 - var(--sp, 0) * 100);
	stroke-linecap: round;
}
.to-top:hover .to-top__ring circle { stroke: var(--asphalt); }
.to-top__label {
	position: absolute;
	right: calc(100% + 10px);
	white-space: nowrap;
	background: var(--asphalt);
	color: #f4f1ea;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .06em;
	padding: 6px 10px;
	border-radius: 6px;
	opacity: 0;
	transform: translateX(6px);
	transition: .2s ease;
	pointer-events: none;
}
.to-top:hover .to-top__label,
.to-top:focus-visible .to-top__label { opacity: 1; transform: none; }
html:not(.js) .to-top { opacity: 1; visibility: visible; transform: none; }

/* ---------- WordPress privalomos klasės ---------- */
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.gallery-caption { font-size: .8125rem; color: var(--muted); }
.sticky,
.bypostauthor { position: relative; }

/* ---------- Prisitaikymas ---------- */
@media (max-width: 1180px) {
	.stream { grid-template-columns: minmax(0, 1fr) 300px; }
	.article__layout.has-toc { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 1179px) {
	:root { --header-h: 64px; }
	.tool--menu { display: inline-flex; }
	.logo__svg { height: 42px; }
	.nav {
		position: fixed;
		inset: 0 0 0 auto;
		width: min(380px, 88vw);
		background: var(--asphalt);
		padding: 112px 24px 32px;
		clip-path: inset(0 0 0 100%);
		transition: clip-path .35s cubic-bezier(.2, .7, .2, 1), visibility .35s;
		overflow-y: auto;
		z-index: -1;
		visibility: hidden;
	}
	.nav.is-open { clip-path: inset(0 0 0 -60px); visibility: visible; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .8); }
	.nav > .nav__list,
	.nav > ul { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; text-align: left; }
	.nav a {
		font: 400 1.6rem/1.15 var(--f-display);
		letter-spacing: .01em;
		text-transform: none;
		padding: 12px 4px;
		border-bottom: 1px dashed #343843;
		border-radius: 0;
		white-space: normal;
	}
	.nav > ul > li > a::after { display: none; }
	.nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; padding: 0 0 0 14px; }
	.nav .sub-menu a { font: 600 1rem/1.3 var(--f-ui); }
	body.menu-open { overflow: hidden; }
	.masthead__in { gap: 14px; }
}

@media (max-width: 1023px) {
	.hero { grid-template-columns: minmax(0, 1fr); }
	.stream { grid-template-columns: minmax(0, 1fr); }
	.sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
	.article__layout.has-toc { grid-template-columns: minmax(0, 740px); }
	.toc__box { position: static; max-height: none; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
	.topbar__date { display: none; }
	.lane__grid,
	.lane--flip .lane__grid { grid-template-columns: minmax(0, 1fr); }
	.lane--flip .lane__grid > .card { order: 0; }
	.lane--flip .lane__list { border-right: 0; border-left: 4px solid var(--sc); padding-right: 0; padding-left: 12px; }
	.gantry__plate { padding: 16px 18px 14px; }
	.gantry__arrow { width: 30px; height: 30px; }
	.stream-grid__wide .card { display: flex; }
	.stream-grid__wide .card__media { min-height: 0; aspect-ratio: 16 / 10; }
	.stream-grid__wide .card__body { padding: 16px 18px 18px; }
	.strip__nav { display: none; }
	.e404 { grid-template-columns: 1fr; justify-items: start; }
	.dash { display: grid; grid-template-columns: 1fr 1fr; }
	.dash__item { padding: 9px 14px; border-bottom: 1px solid #2c3039; }
	.dash__item--gauge { grid-column: 1 / -1; border-bottom: 0; }
	.next-turn__img { display: none; }
	.footer__grid { grid-template-columns: 1fr; }
	.entry-content { font-size: 1.0625rem; }
	.entry-content .alignwide { margin-inline: 0; }
	.alignleft,
	.alignright { float: none; margin: 0 0 1em; }
}

@media (max-width: 480px) {
	.tool { min-width: 40px; height: 40px; padding: 0 9px; }
	.logo__svg { height: 36px; }
	.card--row .card__media { width: 96px; }
	.lane__list .card--row .card__media { width: 110px; }
	.card--lead .card__body { min-height: 440px; }
	.hero__side::before { left: 58px; }
}

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

@media print {
	.topbar, .masthead, .footer, .sidebar, .toc, .share, .next-turn, .related, .to-top, .progress, .inline-rel { display: none !important; }
	body { background: #fff; color: #000; }
	.article__layout { display: block; }
	.entry-content a { text-decoration: underline; }
}

/* Tamsiame režime tamsūs blokai atskiriami nuo fono */
[data-theme="dark"] .hero__side,
[data-theme="dark"] .inline-rel,
[data-theme="dark"] .dash { box-shadow: inset 0 0 0 1px rgba(236, 231, 220, .1); }
[data-theme="dark"] .hero__side,
[data-theme="dark"] .arch-head,
[data-theme="dark"] .strip,
[data-theme="dark"] .footer,
[data-theme="dark"] .masthead { background-color: #15181e; }
