/*
Theme Name: Bendruomenių žinios
Theme URI: https://www.eismosaugumasbendruomenese.lt/
Author: Bendruomenių žinios
Description: Išskirtinė, greita naujienų portalo tema be papildomų įskiepių. Temų linija (navigacija kaip maršruto schema), naujienų laiko juosta, skaitomiausi, straipsnio turinys, skaitymo progresas, susiję įrašai tekste ir pabaigoje, tamsus režimas, mygtukas „Į viršų“, SEO meta ir JSON-LD, senų nuorodų nukreipimai.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bendruomeniu-zinios
Tags: news, blog, two-columns, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. Žetonai
   ========================================================================== */
:root {
	--paper: #edf1ec;
	--surface: #ffffff;
	--ink: #16212a;
	--ink-soft: #4b5b64;
	--line: #cdd6d0;
	--line-strong: #9fb0a8;
	--blue: #1f48a8;
	--yellow: #ffc83d;
	--asphalt: #1b2730;
	--on-asphalt: #e9eee9;

	--f-display: "Archivo", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
	--f-body: "Literata", Charter, "Bitstream Charter", Georgia, "Times New Roman", serif;

	--wrap: 1240px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--radius: 6px;
	--ease: cubic-bezier(.2, .7, .2, 1);

	color-scheme: light;
}

[data-theme="dark"] {
	--paper: #10171c;
	--surface: #172129;
	--ink: #e4eae6;
	--ink-soft: #a3b3b9;
	--line: #2b3a44;
	--line-strong: #4a5d68;
	--blue: #9db8ff;
	--asphalt: #0b1115;
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #10171c;
		--surface: #172129;
		--ink: #e4eae6;
		--ink-soft: #a3b3b9;
		--line: #2b3a44;
		--line-strong: #4a5d68;
		--blue: #9db8ff;
		--asphalt: #0b1115;
		color-scheme: dark;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 1.5rem;
}

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-display);
	font-size: 1rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

img { height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
	margin: 0;
	font-family: var(--f-display);
	line-height: 1.1;
	text-wrap: balance;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

button { font: inherit; color: inherit; }

:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--yellow);
	border-radius: 2px;
}

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

.skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 100;
	padding: .75rem 1.25rem;
	background: var(--yellow);
	color: #16212a;
	font-weight: 700;
	text-decoration: none;
	border-radius: var(--radius);
}

.skip-link:focus { top: 1rem; }

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

.wrap--text { max-width: calc(46rem + var(--gutter) * 2); }

.site-main { display: block; outline: none; }

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

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.button {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .8rem 1.5rem;
	border: 2px solid var(--ink);
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--f-display);
	font-weight: 650;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease);
}

.button:hover { background: transparent; color: var(--ink); }

/* ==========================================================================
   3. Viršutinė juosta su antraščių juosta
   ========================================================================== */
.topbar {
	background: var(--asphalt);
	color: var(--on-asphalt);
	font-size: .875rem;
}

.topbar__inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-height: 2.75rem;
}

.topbar__date {
	flex: none;
	font-stretch: 90%;
	opacity: .85;
}

.topbar :focus-visible { outline-color: var(--yellow); box-shadow: none; }

.ticker {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: .75rem;
}

.ticker__label {
	flex: none;
	padding: .15rem .55rem;
	border-radius: 3px;
	background: var(--yellow);
	color: #16212a;
	font-weight: 700;
	font-size: .8rem;
}

.ticker__viewport {
	flex: 1;
	min-width: 0;
	display: flex;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 3rem), transparent);
}

.ticker__track {
	flex: none;
	display: flex;
	gap: 2.5rem;
	padding-right: 2.5rem;
	list-style: none;
	animation: bz-ticker 70s linear infinite;
}

.ticker__track a {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	white-space: nowrap;
	text-decoration: none;
}

.ticker__track a:hover { text-decoration: underline; }

.ticker__dot {
	width: .5rem;
	height: .5rem;
	border-radius: 50%;
	background: var(--cat);
	box-shadow: 0 0 0 2px var(--on-asphalt);
}

.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track,
.ticker.is-paused .ticker__track { animation-play-state: paused; }

.ticker__pause {
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: 1px solid rgba(233, 238, 233, .35);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.ticker__pause span {
	width: 8px;
	height: 9px;
	border-inline: 3px solid currentColor;
}

.ticker.is-paused .ticker__pause span {
	border: 0;
	width: 0;
	height: 0;
	border-left: 8px solid currentColor;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	margin-left: 2px;
}

@keyframes bz-ticker {
	to { transform: translateX(-100%); }
}

.theme-toggle { flex: none; color: var(--on-asphalt); width: 2.25rem; height: 2.25rem; }
.theme-toggle .icon--sun { display: none; }
[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
[data-theme="dark"] .theme-toggle .icon--moon { display: none; }

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

@media (max-width: 720px) {
	.topbar__date { display: none; }
	.ticker__label { display: none; }
}

/* ==========================================================================
   4. Antraštė ir prekės ženklas
   ========================================================================== */
.masthead {
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.masthead__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding-block: 1.25rem .75rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	text-decoration: none;
	color: var(--ink);
}

.brand__mark {
	width: 3rem;
	height: 3rem;
	flex: none;
}

.brand__name {
	display: flex;
	flex-direction: column;
	margin: 0;
	font-family: var(--f-display);
	line-height: .95;
}

.brand__line1 {
	font-size: 1.6rem;
	font-weight: 800;
	font-stretch: 72%;
	letter-spacing: -.01em;
}

.brand__line2 {
	font-size: 1.05rem;
	font-weight: 450;
	font-stretch: 125%;
	letter-spacing: .04em;
	color: var(--ink-soft);
}

.masthead__tagline {
	margin-right: auto;
	padding-left: 1.5rem;
	border-left: 1px solid var(--line);
	color: var(--ink-soft);
	font-size: .95rem;
	font-stretch: 90%;
}

.search-open {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .55rem 1rem .55rem .8rem;
	border: 1.5px solid var(--line-strong);
	border-radius: 999px;
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	transition: border-color .2s var(--ease);
}

.search-open:hover { border-color: var(--ink); }

@media (max-width: 760px) {
	.masthead__tagline { display: none; }
	.masthead__inner { justify-content: space-between; }
	.search-open span { display: none; }
	.search-open { padding: .6rem; }
	.brand__line1 { font-size: 1.4rem; }
}

/* --- Temų linija (maršruto schema) --- */
.routes { position: relative; }

.routes__wrap { position: relative; }

.routes__line {
	display: flex;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
	padding-block: .25rem .9rem;
	mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent);
}

.routes__line::-webkit-scrollbar { display: none; }

.routes__item {
	position: relative;
	flex: 1 0 auto;
	scroll-snap-align: start;
}

.routes__item::before {
	content: "";
	position: absolute;
	top: calc(.75rem - 1.5px);
	left: 0;
	right: 0;
	height: 3px;
	background: var(--line-strong);
}

.routes__item:first-child::before { left: 50%; }
.routes__item:last-child::before { right: 50%; }

.routes__item a {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .4rem;
	padding-inline: .7rem;
	color: var(--ink);
	text-decoration: none;
}

.routes__stop {
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: var(--paper);
	border: 4px solid var(--cat);
	transition: background-color .2s var(--ease), transform .2s var(--ease);
}

.routes__name {
	font-size: .9rem;
	font-weight: 600;
	font-stretch: 85%;
	white-space: nowrap;
}

.routes__item a:hover .routes__stop { background: var(--cat); }

.routes__item.is-current::before { background: var(--cat); }

.routes__item.is-current .routes__stop {
	background: var(--cat);
	box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--cat);
}

.routes__item.is-current .routes__name {
	font-weight: 800;
	text-decoration: underline;
	text-decoration-color: var(--cat);
	text-decoration-thickness: 3px;
	text-underline-offset: .3em;
}

/* --- Paieškos langas --- */
.search-dialog {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--paper);
	color: var(--ink);
	max-height: 100dvh;
}

.search-dialog[open] { animation: bz-drop .25s var(--ease); }

.search-dialog::backdrop { background: rgba(22, 33, 42, .55); }

.search-dialog__inner {
	position: relative;
	max-width: 52rem;
	margin: 0 auto;
	padding: 3.5rem var(--gutter) 2.5rem;
}

.search-dialog__close { position: absolute; top: 1rem; right: var(--gutter); }

.search-dialog__hint {
	margin: 1.75rem 0 .75rem;
	color: var(--ink-soft);
	font-size: .95rem;
}

@keyframes bz-drop {
	from { transform: translateY(-1.5rem); opacity: 0; }
}

.search-form {
	display: flex;
	gap: .5rem;
	align-items: stretch;
}

.search-form__field {
	flex: 1;
	min-width: 0;
	padding: .9rem 1.1rem;
	border: 2px solid var(--line-strong);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	font-family: var(--f-display);
	font-size: 1.15rem;
}

.search-form__field:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px var(--yellow); }

.search-form__submit {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: 0 1.4rem;
	border: 0;
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--paper);
	font-weight: 650;
	cursor: pointer;
}

@media (max-width: 520px) {
	.search-form__submit span { display: none; }
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }

.chip {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .4rem .85rem;
	border: 1.5px solid var(--line-strong);
	border-radius: 999px;
	font-weight: 600;
	font-size: .9rem;
	text-decoration: none;
}

.chip::before {
	content: "";
	width: .6rem;
	height: .6rem;
	border-radius: 50%;
	background: var(--cat);
}

.chip:hover { border-color: var(--cat); }

/* ==========================================================================
   5. Kortelės
   ========================================================================== */
.card {
	position: relative;
	color: var(--ink);
}

.card__media {
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--line);
}

.card__media img,
.card__media .thumb-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__title {
	font-weight: 700;
	font-stretch: 85%;
	letter-spacing: -.005em;
}

.card__title a {
	text-decoration: none;
	text-decoration-thickness: 2px;
	text-underline-offset: .15em;
}

.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.card:hover .card__title a,
.card__title a:focus-visible { text-decoration: underline; text-decoration-color: var(--cat); }

.card__title a:focus-visible { box-shadow: none; outline: none; }
.card:focus-within { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: var(--radius); }
.card:has(.badge:focus-visible) { outline: none; }

.card__excerpt {
	margin-top: .6rem;
	color: var(--ink-soft);
	font-family: var(--f-body);
	font-size: .98rem;
	line-height: 1.6;
}

.card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem 1rem;
	margin-top: .6rem;
	color: var(--ink-soft);
	font-size: .85rem;
}

.card__read { display: inline-flex; align-items: center; gap: .3rem; }
.card__read .icon { width: 1rem; height: 1rem; }

/* Temos žymė: trumpa linijos atkarpa + pavadinimas */
.badge {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin-bottom: .55rem;
	color: var(--ink);
	font-family: var(--f-display);
	font-size: .82rem;
	font-weight: 700;
	font-stretch: 90%;
	text-decoration: none;
}

.badge::before {
	content: "";
	width: 1.4rem;
	height: 4px;
	border-radius: 2px;
	background: var(--cat);
}

a.badge:hover { text-decoration: underline; text-decoration-color: var(--cat); }

/* Atsarginis viršelis, kai nėra paveikslėlio */
.thumb-fallback {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: color-mix(in srgb, var(--cat) 14%, var(--surface));
	color: var(--cat);
}

.thumb-fallback svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.thumb-fallback span {
	position: absolute;
	left: .9rem;
	bottom: .7rem;
	color: var(--ink);
	font-weight: 700;
	font-stretch: 85%;
	font-size: .85rem;
}

/* --- lead --- */
.card--lead .card__media { aspect-ratio: 16 / 9.5; }

.card--lead .card__body {
	position: relative;
	margin: -5rem 2.5rem 0 0;
	padding: 1.5rem 1.75rem 1.4rem;
	background: var(--paper);
	border-top: 6px solid var(--cat);
	border-radius: 0 var(--radius) 0 0;
}

.card--lead .card__title {
	font-size: clamp(1.85rem, 3.4vw, 2.85rem);
	font-weight: 780;
	font-stretch: 75%;
	line-height: 1.02;
}

.card--lead .card__excerpt { font-size: 1.08rem; max-width: 60ch; }

@media (max-width: 640px) {
	.card--lead .card__body { margin: -2.5rem .75rem 0 0; padding: 1.1rem 1.1rem 1rem; }
}

/* --- side --- */
.card--side {
	display: grid;
	grid-template-columns: 1fr 6rem;
	gap: 1rem;
	align-items: start;
	padding-block: 1.1rem;
	border-top: 1px solid var(--line);
}

.card--side:first-child { border-top: 0; padding-top: 0; }
.card--side .card__media { grid-column: 2; grid-row: 1; aspect-ratio: 1; }
.card--side .card__body { grid-column: 1; grid-row: 1; }

.card--side .card__title {
	font-size: 1.2rem;
	line-height: 1.15;
}

.card--side .card__body::before {
	content: "";
	display: block;
	width: 1.4rem;
	height: 4px;
	margin-bottom: .55rem;
	border-radius: 2px;
	background: var(--cat);
}

/* --- rank --- */
.card--rank {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: .9rem;
	align-items: start;
}

.card__rank {
	font-size: 3.25rem;
	font-weight: 300;
	font-stretch: 62%;
	line-height: .8;
	color: var(--cat);
	font-variant-numeric: tabular-nums;
}

.card--rank .card__title { font-size: 1.08rem; line-height: 1.2; }
.card--rank .card__meta { margin-top: .35rem; }

/* --- block / row --- */
.card--block .card__media { aspect-ratio: 16 / 9; margin-bottom: 1rem; }
.card--block .card__title { font-size: 1.45rem; font-stretch: 80%; line-height: 1.1; }

.card--row {
	display: grid;
	grid-template-columns: 4.5rem 1fr;
	gap: .9rem;
	align-items: center;
	padding-top: 1rem;
	margin-top: 1rem;
	border-top: 1px solid var(--line);
}

.card--row .card__media { aspect-ratio: 1; }
.card--row .card__title { font-size: 1.05rem; line-height: 1.2; }
.card--row .card__meta { margin-top: .25rem; }

/* --- tile --- */
.card--tile .card__media { aspect-ratio: 3 / 2; margin-bottom: .9rem; }
.card--tile .card__title { font-size: 1.25rem; line-height: 1.15; }

/* --- stop (laiko juosta) --- */
.timeline {
	position: relative;
	--axis: 9.5rem;
}

.timeline::before {
	content: "";
	position: absolute;
	top: .5rem;
	bottom: 0;
	left: var(--axis);
	width: 3px;
	margin-left: -1.5px;
	background: var(--line-strong);
}

.card--stop {
	display: grid;
	grid-template-columns: calc(var(--axis) - 1.75rem) 15.5rem minmax(0, 1fr);
	column-gap: 1.75rem;
	padding-block: 1.6rem;
}

.card--stop::before {
	content: "";
	position: absolute;
	top: 1.85rem;
	left: var(--axis);
	width: 1.15rem;
	height: 1.15rem;
	margin-left: -.575rem;
	border-radius: 50%;
	background: var(--paper);
	border: 4px solid var(--cat);
}

.card--stop .card__when {
	padding-top: .1rem;
	text-align: right;
	padding-right: .75rem;
	color: var(--ink-soft);
	font-size: .9rem;
	font-stretch: 85%;
	line-height: 1.3;
}

.card__when time { display: flex; flex-direction: column; }
.card__day { color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.card__year { font-size: .85rem; }

.card--stop .card__media {
	grid-column: 2;
	margin-left: 1.25rem;
	aspect-ratio: 16 / 10;
	align-self: start;
}

.card--stop .card__body { grid-column: 3; }
.card--stop .card__title { font-size: 1.45rem; font-stretch: 80%; line-height: 1.12; }
.card--stop + .card--stop { border-top: 1px dashed var(--line); }

@media (max-width: 900px) {
	.timeline { --axis: .6rem; }
	.card--stop {
		grid-template-columns: 1fr;
		padding-left: 2rem;
		row-gap: .65rem;
	}
	.card--stop::before { top: 1.75rem; }
	.card--stop .card__when { text-align: left; padding: 0; }
	.card__when time { flex-direction: row; gap: .4rem; align-items: baseline; }
	.card__day { font-size: .95rem; }
	.card--stop .card__media { grid-column: 1; margin-left: 0; max-width: 32rem; }
	.card--stop .card__body { grid-column: 1; }
	.card--stop .card__title { font-size: 1.3rem; }
}

/* ==========================================================================
   6. Pradinis puslapis
   ========================================================================== */
.front-top {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	padding-block: 2rem 3rem;
}

@media (max-width: 960px) {
	.front-top { grid-template-columns: 1fr; }
}

.section-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: .5rem 1.25rem;
	margin-bottom: 1.75rem;
}

.section-head__title {
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	font-weight: 800;
	font-stretch: 72%;
}

.section-head__note { color: var(--ink-soft); font-size: .95rem; }

.band {
	padding-block: 2.5rem;
	background: var(--surface);
	border-block: 1px solid var(--line);
}

.rank-list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 2rem;
	list-style: none;
}

@media (max-width: 1080px) {
	.band--popular .rank-list {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(15rem, 1fr);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: .75rem;
	}
	.band--popular .rank-list > li { scroll-snap-align: start; }
}

.rank-list--compact { grid-template-columns: 1fr; gap: 1.25rem; }
.rank-list--compact .card__rank { font-size: 2.4rem; min-width: 1.4rem; }
.rank-list--compact .card--rank .card__title { font-size: 1rem; }

.topics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 3.5rem clamp(2rem, 5vw, 4.5rem);
	padding-block: 3.5rem;
}

@media (max-width: 820px) {
	.topics { grid-template-columns: 1fr; }
}

.topic__head {
	position: relative;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
	padding: 1rem 0 0 1.75rem;
	border-top: 5px solid var(--cat);
}

.topic__head::before {
	content: "";
	position: absolute;
	left: 0;
	top: -.8rem;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: var(--paper);
	border: 4px solid var(--cat);
}

.topic__title {
	font-size: 1.75rem;
	font-weight: 800;
	font-stretch: 72%;
}

.topic__title a { text-decoration: none; }
.topic__title a:hover { text-decoration: underline; text-decoration-color: var(--cat); }

.topic__all {
	flex: none;
	color: var(--ink-soft);
	font-size: .9rem;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid var(--cat);
}

.topic__all:hover { color: var(--ink); }

.timeline-section { padding-block: 1rem 4rem; }

.more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .75rem;
	padding-top: 2.5rem;
}

.button--more { min-width: 16rem; justify-content: center; }
.button--more[aria-busy="true"] { opacity: .65; pointer-events: none; }

.more__status { color: var(--ink-soft); font-size: .9rem; min-height: 1.35em; }

.pager { margin-top: 2rem; }

.pager .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .4rem;
}

.pager .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.6rem;
	height: 2.6rem;
	padding-inline: .8rem;
	border: 1.5px solid var(--line-strong);
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
}

.pager .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager .page-numbers.dots { border: 0; }
.js .more + .pager { display: none; }

/* ==========================================================================
   7. Sąrašų puslapiai
   ========================================================================== */
.feed-page { padding-bottom: 4rem; }

.crumbs { padding-top: 1.5rem; font-size: .88rem; color: var(--ink-soft); }

.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	list-style: none;
}

.crumbs li:not(:last-child)::after {
	content: "/";
	margin-left: .35rem;
	color: var(--line-strong);
}

.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--ink); }

.crumbs [aria-current] {
	display: inline-block;
	max-width: 40ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

.page-head {
	position: relative;
	margin: 1.5rem 0 1rem;
	padding: 1.75rem 0 1.75rem 2.25rem;
	border-left: 6px solid var(--cat);
}

.page-head__kicker {
	margin-bottom: .35rem;
	color: var(--ink-soft);
	font-weight: 600;
	font-size: .95rem;
}

.page-head__title {
	font-size: clamp(2.3rem, 6vw, 4.4rem);
	font-weight: 800;
	font-stretch: 68%;
	line-height: .98;
	letter-spacing: -.01em;
}

.page-head__page {
	display: block;
	margin-top: .4rem;
	font-size: .4em;
	font-weight: 500;
	font-stretch: 100%;
	color: var(--ink-soft);
}

.page-head__desc {
	max-width: 62ch;
	margin-top: 1rem;
	font-family: var(--f-body);
	font-size: 1.08rem;
	line-height: 1.6;
	color: var(--ink-soft);
}

.page-head__count { margin-top: .9rem; color: var(--ink-soft); font-size: .92rem; }
.page-head__search { margin-top: 1.25rem; max-width: 36rem; }

.empty {
	padding: 2rem 0 3rem;
	max-width: 60ch;
	font-family: var(--f-body);
	font-size: 1.1rem;
}

.tiles-section { padding-block: 2.5rem; }

.tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.5rem 2rem;
}

@media (max-width: 900px) {
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.tiles { grid-template-columns: 1fr; }
}

/* ==========================================================================
   8. Straipsnis
   ========================================================================== */
.read-progress {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	height: 5px;
	background: var(--asphalt);
	opacity: 0;
	transition: opacity .2s;
}

.read-progress.is-visible { opacity: 1; }

.read-progress__bar {
	display: block;
	height: 100%;
	transform-origin: 0 50%;
	transform: scaleX(var(--p, 0));
	background: repeating-linear-gradient(90deg, var(--yellow) 0 22px, transparent 22px 34px);
}

.article {
	--rail: 3.25rem;
	--gap: clamp(1.5rem, 4vw, 3.5rem);
}

.article__head { padding-bottom: 2rem; }
.article__head > * { max-width: 54rem; }

@media (min-width: 1101px) {
	.article:not(.article--page) .article__head { padding-left: calc(var(--gutter) + var(--rail) + var(--gap)); }
}

.article__badges {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1.25rem;
	margin-top: 1.75rem;
}

.article__title {
	margin-top: .35rem;
	font-size: clamp(2.1rem, 5vw, 3.75rem);
	font-weight: 780;
	font-stretch: 72%;
	line-height: 1;
	letter-spacing: -.012em;
}

.article__deck {
	margin-top: 1.1rem;
	max-width: 48ch;
	font-family: var(--f-body);
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--ink-soft);
}

.article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem 1.4rem;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
	color: var(--ink-soft);
	font-size: .93rem;
}

.article__author { color: var(--ink); font-weight: 700; }
.article__read { display: inline-flex; align-items: center; gap: .35rem; }
.article__read .icon { width: 1.05rem; height: 1.05rem; }

.article__hero { margin-block: 0 2.5rem; }

.article__hero img {
	width: 100%;
	aspect-ratio: 2 / 1;
	max-height: 36rem;
	object-fit: cover;
	border-radius: var(--radius);
}

.article__hero figcaption { margin-top: .6rem; color: var(--ink-soft); font-size: .88rem; }

.article__layout {
	display: grid;
	grid-template-columns: var(--rail) minmax(0, 1fr) 18.5rem;
	gap: var(--gap);
	align-items: start;
	padding-bottom: 3.5rem;
}

.article__body { max-width: 44rem; }

.article__rail { position: sticky; top: 1.5rem; }

.article__aside { position: static; }

@media (min-height: 1000px) {
	.article__aside { position: sticky; top: 1.5rem; }
}

.article__aside-inner {
	padding: 1.5rem;
	background: var(--surface);
	border-top: 5px solid var(--ink);
	border-radius: 0 0 var(--radius) var(--radius);
}

.aside-title {
	margin-bottom: 1.25rem;
	font-size: 1.35rem;
	font-weight: 800;
	font-stretch: 72%;
}

@media (max-width: 1100px) {
	.article__layout { grid-template-columns: minmax(0, 1fr); }
	.article__rail { display: none; }
	.article__body { margin-inline: auto; width: 100%; }
	.article__aside { position: static; max-width: 44rem; margin-inline: auto; width: 100%; }
}

/* Dalijimasis */
.share {
	display: flex;
	align-items: center;
	gap: .75rem;
}

.share ul { display: flex; gap: .4rem; list-style: none; }

.share__label { font-weight: 700; font-size: .9rem; }

.share__btn {
	display: grid;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	border: 1.5px solid var(--line-strong);
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
}

.share__btn:hover { border-color: var(--ink); background: var(--surface); }
.share__btn .icon { width: 1.15rem; height: 1.15rem; }
.share__btn.is-done { background: var(--yellow); border-color: var(--yellow); color: #16212a; }

.share--rail { flex-direction: column; }
.share--rail ul { flex-direction: column; }
.share--rail .share__label { font-size: .78rem; color: var(--ink-soft); }

.share--end {
	margin-top: 2.5rem;
	padding-block: 1.25rem;
	border-block: 1px solid var(--line);
}

/* Turinys (TOC) */
.toc {
	margin-bottom: 2.25rem;
	padding: 1.1rem 1.4rem;
	background: var(--surface);
	border-left: 5px solid var(--cat);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.toc summary {
	display: flex;
	align-items: center;
	gap: .55rem;
	font-weight: 750;
	cursor: pointer;
	list-style: none;
}

.toc summary::-webkit-details-marker { display: none; }

.toc summary::after {
	content: "";
	width: .55rem;
	height: .55rem;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s;
}

.toc details[open] summary::after { transform: rotate(-135deg); }

.toc ol {
	margin-top: .9rem;
	padding-left: 0;
	list-style: none;
	counter-reset: toc;
}

.toc li { position: relative; padding: .3rem 0 .3rem 1.4rem; line-height: 1.35; }

.toc li::before {
	content: "";
	position: absolute;
	left: .2rem;
	top: .78rem;
	width: .5rem;
	height: .5rem;
	border-radius: 50%;
	border: 2px solid var(--line-strong);
}

.toc li.is-active::before { background: var(--cat); border-color: var(--cat); }
.toc .toc__l3 { margin-left: 1rem; font-size: .95em; }
.toc a { text-decoration: none; }
.toc a:hover,
.toc .is-active a { text-decoration: underline; text-decoration-color: var(--cat); text-decoration-thickness: 2px; }

/* Straipsnio tekstas */
.prose {
	font-family: var(--f-body);
	font-size: 1.14rem;
	line-height: 1.75;
	overflow-wrap: break-word;
}

.prose > * + * { margin-top: 1.25em; }

.prose h2,
.prose h3,
.prose h4 {
	margin-top: 2.1em;
	font-family: var(--f-display);
	font-weight: 780;
	font-stretch: 78%;
	line-height: 1.12;
	scroll-margin-top: 1.5rem;
}

.prose h2 { font-size: 1.8em; }
.prose h3 { font-size: 1.35em; }
.prose h4 { font-size: 1.12em; }

.prose h2::before {
	content: "";
	display: block;
	width: 2.25rem;
	height: 5px;
	margin-bottom: .6rem;
	border-radius: 3px;
	background: var(--cat);
}

.prose h2 + *,
.prose h3 + * { margin-top: .7em; }

.prose a {
	color: var(--blue);
	text-decoration-thickness: 1.5px;
	text-underline-offset: .18em;
}

.prose a:hover { text-decoration-thickness: 3px; }

.prose ul,
.prose ol { padding-left: 1.4em; }

.prose li + li { margin-top: .45em; }
.prose ul li::marker { color: var(--cat); }

.prose blockquote {
	margin-inline: 0;
	padding: .25rem 0 .25rem 1.4rem;
	border-left: 5px solid var(--cat);
	font-size: 1.15em;
	font-style: italic;
}

.prose img,
.prose figure img { border-radius: var(--radius); }

.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: .5rem; font-family: var(--f-display); font-size: .82em; color: var(--ink-soft); }

.prose hr { border: 0; height: 3px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 18px, transparent 18px 30px); }

.prose code { font-size: .9em; padding: .1em .35em; background: var(--surface); border-radius: 4px; }

.prose strong { font-weight: 700; }

.table-scroll { overflow-x: auto; }

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--f-display);
	font-size: .9em;
}

.prose th,
.prose td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface); }

.alignwide { margin-inline: calc(-1 * min(6rem, 8vw)); max-width: none; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }

/* Rekomendacija tekste */
.inline-read { margin-block: 2em; }

.prose .inline-read a {
	display: grid;
	grid-template-columns: 5.5rem 1fr;
	gap: 1.1rem;
	align-items: center;
	padding: .9rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-left: 5px solid var(--cat);
	border-radius: var(--radius);
	color: var(--ink);
	text-decoration: none;
}

.inline-read__media { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 4px; }
.inline-read__media img,
.inline-read__media .thumb-fallback { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.inline-read__media .thumb-fallback span { display: none; }

.inline-read__label {
	display: block;
	margin-bottom: .2rem;
	color: var(--ink-soft);
	font-family: var(--f-display);
	font-size: .85rem;
	font-weight: 600;
}

.inline-read__title {
	display: block;
	font-family: var(--f-display);
	font-size: 1.15rem;
	font-weight: 750;
	font-stretch: 85%;
	line-height: 1.2;
}

.prose .inline-read a:hover .inline-read__title { text-decoration: underline; text-decoration-color: var(--cat); }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; list-style: none; }
.tags a { font-weight: 600; font-size: .92rem; color: var(--ink-soft); text-decoration: none; }
.tags a:hover { color: var(--ink); text-decoration: underline; }

.page-links { margin-top: 2rem; display: flex; gap: .5rem; font-weight: 600; }

/* Ankstesnis / kitas */
.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 2rem;
}

.post-nav__link {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	padding: 1.1rem 1.25rem;
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	transition: border-color .2s;
}

.post-nav__link:hover { border-color: var(--ink); }
.post-nav__link--next { grid-column: 2; text-align: right; }
.post-nav__label { color: var(--ink-soft); font-size: .85rem; font-weight: 600; }
.post-nav__title { font-weight: 700; font-stretch: 85%; font-size: 1.05rem; line-height: 1.25; }

@media (max-width: 600px) {
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__link--next { grid-column: 1; }
}

.band--related { padding-block: 1rem 2rem; }

/* „Skaitykite toliau“ */
.next-up {
	position: fixed;
	left: 1.25rem;
	bottom: 1.25rem;
	z-index: 40;
	display: flex;
	align-items: center;
	width: min(25rem, calc(100% - 6.5rem));
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 5px solid var(--cat);
	border-radius: var(--radius);
	box-shadow: 0 18px 40px -18px rgba(22, 33, 42, .45);
}

.next-up[hidden] { display: none; }
.next-up.is-in { animation: bz-rise .35s var(--ease); }

.next-up__link {
	flex: 1;
	min-width: 0;
	display: grid;
	grid-template-columns: 4rem 1fr;
	gap: .85rem;
	align-items: center;
	padding: .8rem;
	text-decoration: none;
}

.next-up__media { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 4px; }
.next-up__media img,
.next-up__media .thumb-fallback { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.next-up__media .thumb-fallback span { display: none; }
.next-up__label { display: block; color: var(--ink-soft); font-size: .8rem; font-weight: 600; }

.next-up__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-weight: 750;
	font-stretch: 85%;
	line-height: 1.2;
}

.next-up__link:hover .next-up__title { text-decoration: underline; }
.next-up__close { flex: none; margin-right: .3rem; }

@keyframes bz-rise {
	from { transform: translateY(1.5rem); opacity: 0; }
}

/* Puslapis */
.article--page .article__head { max-width: calc(46rem + var(--gutter) * 2); padding-bottom: 1.5rem; }
.article--page .wrap--text { padding-bottom: 4rem; }
.article--page .prose { --cat: var(--blue); }

/* Komentarai */
.comments { padding-block: 2rem 4rem; border-top: 1px solid var(--line); }
.comment-list { list-style: none; margin: 1.5rem 0 2.5rem; }
.comment-list .children { list-style: none; margin-left: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--line); }
.comment-body { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.comment-meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; font-size: .9rem; color: var(--ink-soft); }
.comment-meta a { text-decoration: none; }
.comment-author { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-content { margin-top: .6rem; font-family: var(--f-body); line-height: 1.65; }
.comment-content p + p { margin-top: .8em; }
.reply { margin-top: .5rem; font-size: .9rem; font-weight: 600; }
.comment-respond { margin-top: 1rem; }
.comment-form { display: grid; gap: 1rem; margin-top: 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-weight: 600; font-size: .92rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: .75rem .9rem;
	border: 2px solid var(--line-strong);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
}

.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: start; font-size: .9rem; }
.comment-form-cookies-consent label { font-weight: 400; }
.comment-notes,
.logged-in-as { color: var(--ink-soft); font-size: .9rem; }

/* ==========================================================================
   9. 404
   ========================================================================== */
.notfound {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
	padding-block: 4rem 2rem;
}

.notfound__sign svg { width: clamp(8rem, 18vw, 13rem); height: auto; }
.notfound__lead { max-width: 52ch; margin: 1rem 0 1.5rem; font-family: var(--f-body); font-size: 1.12rem; line-height: 1.6; color: var(--ink-soft); }
.notfound .search-form { max-width: 34rem; margin-bottom: 1.5rem; }

@media (max-width: 700px) {
	.notfound { grid-template-columns: 1fr; padding-top: 2.5rem; }
}

/* ==========================================================================
   10. Poraštė ir mygtukas „Į viršų“
   ========================================================================== */
.site-footer {
	margin-top: 2rem;
	background: var(--asphalt);
	color: var(--on-asphalt);
	position: relative;
}

.site-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	background: repeating-linear-gradient(90deg, var(--yellow) 0 44px, transparent 44px 70px);
}

.site-footer a { color: var(--on-asphalt); }
.site-footer :focus-visible { outline-color: var(--yellow); box-shadow: none; }

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 2.5rem;
	padding-block: 4rem 3rem;
}

@media (max-width: 960px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
	.site-footer__grid { grid-template-columns: 1fr; }
}

.site-footer .brand { color: var(--on-asphalt); }
.site-footer .brand__line2 { color: rgba(233, 238, 233, .7); }

.site-footer__about { margin-top: 1.25rem; max-width: 34ch; line-height: 1.6; opacity: .82; }

.site-footer__social { display: flex; gap: 1rem; margin-top: 1.25rem; list-style: none; font-weight: 600; }

.footer__title {
	margin-bottom: 1rem;
	font-size: 1.15rem;
	font-weight: 800;
	font-stretch: 80%;
}

.footer-topics {
	columns: 2;
	column-gap: 1.5rem;
	list-style: none;
}

.footer-topics li {
	display: flex;
	align-items: center;
	gap: .55rem;
	padding-block: .3rem;
	break-inside: avoid;
}

.footer-topics li::before {
	content: "";
	flex: none;
	width: .65rem;
	height: .65rem;
	border-radius: 50%;
	border: 3px solid var(--cat);
	background: var(--asphalt);
}

.footer-topics a,
.footer-links a { text-decoration: none; opacity: .88; }

.footer-topics a:hover,
.footer-links a:hover { opacity: 1; text-decoration: underline; }

.footer-links { list-style: none; }
.footer-links li { padding-block: .3rem; }

.site-footer__rss a { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem; text-decoration: none; opacity: .88; }
.site-footer__rss .icon { width: 1.05rem; }

.site-footer__widgets .widget + .widget { margin-top: 1.5rem; }

.site-footer__bottom {
	padding-block: 1.25rem 1.75rem;
	border-top: 1px solid rgba(233, 238, 233, .14);
	font-size: .88rem;
	opacity: .75;
}

.to-top {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 45;
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: var(--asphalt);
	color: var(--on-asphalt);
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(.75rem);
	transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); }
[data-theme="dark"] .to-top { background: var(--surface); border: 1px solid var(--line); }

.to-top .icon { grid-area: 1 / 1; width: 1.4rem; height: 1.4rem; }

.to-top__ring {
	grid-area: 1 / 1;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.to-top__ring circle {
	fill: none;
	stroke: var(--yellow);
	stroke-width: 3;
	stroke-dasharray: 100;
	stroke-dashoffset: calc(100 - var(--p, 0) * 100);
	stroke-linecap: round;
}

.to-top__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

/* No-JS: mygtukas vis tiek veikia (nuoroda į #turinys) ir matomas */
html:not(.js) .to-top { opacity: 1; visibility: visible; transform: none; }

/* ==========================================================================
   11. Judesio mažinimas ir spausdinimas
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.ticker__viewport { overflow-x: auto; scrollbar-width: none; }
	.ticker__track { animation: none !important; }
	.ticker__track[aria-hidden="true"],
	.ticker__pause { display: none; }
}

@media print {
	.topbar,
	.routes,
	.search-open,
	.article__rail,
	.article__aside,
	.share,
	.post-nav,
	.band--related,
	.next-up,
	.to-top,
	.read-progress,
	.site-footer,
	.inline-read,
	.comments { display: none !important; }
	body { background: #fff; color: #000; }
	.article__layout { display: block; }
	.prose a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
