/* ==========================================================================
   Juosta – Savanoriškos žinios
   Motyvas: lietuviška austinė juosta (rombų raštas) kaip struktūrinis ženklas.
   ========================================================================== */

/* ---------- Šriftai (savame serveryje, be išorinių užklausų) ---------- */
@font-face {
	font-family: "Juosta Sans";
	src: url("../fonts/juosta-sans.woff") format("woff");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Juosta Serif";
	src: url("../fonts/juosta-serif.woff") format("woff");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Juosta Serif";
	src: url("../fonts/juosta-serif-italic.woff") format("woff");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

/* ---------- Kintamieji ---------- */
:root {
	--paper: #ffffff;
	--linen: #eceee8;
	--linen-2: #e1e5dc;
	--ink: #1b2430;
	--ink-2: #4a5563;
	--rule: #d5d9d1;
	--indigo: #2b3a8c;
	--rue: #2f6b4f;
	--madder: #a8243b;
	--amber: #e0a526;
	--link: #2b3a8c;
	--footer-bg: #1b2430;
	--footer-ink: #e6e9e2;

	--f-sans: "Juosta Sans", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
	--f-serif: "Juosta Serif", "Bitter", Georgia, "Times New Roman", serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 72px;
	--band: url("../img/juosta.svg");
	--c: var(--indigo);

	color-scheme: light;
}

:root[data-theme="dark"] {
	--paper: #12161d;
	--linen: #1a1f28;
	--linen-2: #232a35;
	--ink: #e8eae4;
	--ink-2: #a9b0ba;
	--rule: #2e3541;
	--link: #a9b5ff;
	--footer-bg: #0c0f14;
	--footer-ink: #c9ced6;
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #12161d;
		--linen: #1a1f28;
		--linen-2: #232a35;
		--ink: #e8eae4;
		--ink-2: #a9b0ba;
		--rule: #2e3541;
		--link: #a9b5ff;
		--footer-bg: #0c0f14;
		--footer-ink: #c9ced6;
		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; }
	@view-transition { navigation: auto; }
}

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

img,
svg,
video,
iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-sans);
	line-height: 1.12;
	margin: 0;
	font-weight: 800;
	text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

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

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

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

.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 200;
	background: var(--ink);
	color: var(--paper);
	padding: 10px 16px;
	font-family: var(--f-sans);
	font-weight: 700;
	text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Juosta (raštas) ---------- */
.band {
	height: 14px;
	background: var(--c);
	-webkit-mask: var(--band) repeat-x left center / 28px 14px;
	mask: var(--band) repeat-x left center / 28px 14px;
}
.band--top,
.band--footer {
	background: linear-gradient(
		90deg,
		var(--indigo) 0 25%,
		var(--rue) 25% 50%,
		var(--madder) 50% 75%,
		var(--amber) 75% 100%
	);
}
.band--top { height: 12px; -webkit-mask-size: 24px 12px; mask-size: 24px 12px; }

/* ---------- Antraštė ---------- */
.masthead {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--paper) 94%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--rule);
}
.admin-bar .masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar .masthead { top: 0; } }

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

.brand { margin: 0; flex: none; }
.brand__link {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--ink);
	text-decoration: none;
}
.brand__mark {
	width: 42px;
	height: 42px;
	flex: none;
	background: url("../img/mark.svg") center / contain no-repeat;
}
.brand__text {
	display: flex;
	flex-direction: column;
	font-family: var(--f-sans);
	line-height: 1;
}
.brand__l1 { font-weight: 800; font-size: 1.375rem; letter-spacing: -0.005em; }
.brand__l2 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	font-size: 1rem;
	letter-spacing: 0.08em;
	margin-top: 3px;
}
.brand__l2::after {
	content: "";
	flex: 1;
	height: 9px;
	background: var(--amber);
	-webkit-mask: var(--band) repeat-x left center / 18px 9px;
	mask: var(--band) repeat-x left center / 18px 9px;
}
.brand--custom img { max-height: 52px; width: auto; }

.nav { flex: 1; min-width: 0; }
.nav__list,
.nav .menu {
	display: flex;
	gap: 4px 22px;
	list-style: none;
	font-family: var(--f-sans);
	font-weight: 600;
	font-size: 1.0625rem;
	overflow-x: auto;
	scrollbar-width: none;
}
.nav__list::-webkit-scrollbar { display: none; }
.nav li { flex: none; position: relative; }
.nav a {
	display: block;
	padding: 6px 0;
	color: var(--ink);
	text-decoration: none;
	text-decoration-thickness: 3px;
	text-underline-offset: 8px;
}
.nav a:hover,
.nav a[aria-current="page"],
.nav .current-menu-item > a,
.nav .current-category-ancestor > a {
	text-decoration-line: underline;
	text-decoration-color: var(--c, var(--amber));
}
.nav .sub-menu { display: none; }

.masthead__tools {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	flex: none;
}
.today {
	font-family: var(--f-sans);
	font-size: 0.9375rem;
	color: var(--ink-2);
	margin-right: 8px;
	white-space: nowrap;
}
.today:first-letter { text-transform: uppercase; }
.tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	border: 1px solid var(--rule);
	border-radius: 2px;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	font-family: var(--f-sans);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
}
.tool:hover { background: var(--linen); }
.tool--menu { display: none; }
.tool--menu__close { display: none; }
.nav-open .tool--menu__open { display: none; }
.nav-open .tool--menu__close { display: inline-flex; }

@media (max-width: 1180px) {
	.today { display: none; }
	.tool--random .tool__text { display: none; }
}
@media (max-width: 960px) {
	:root { --header-h: 64px; }
	.masthead__in { gap: 12px; }
	.brand__mark { width: 36px; height: 36px; }
	.brand__l1 { font-size: 1.1875rem; }
	.tool--menu { display: inline-flex; }
	.nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--paper);
		border-bottom: 1px solid var(--rule);
		padding: 8px var(--gutter) 20px;
		display: none;
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
	}
	.nav-open .nav { display: block; }
	.nav__list,
	.nav .menu { flex-direction: column; overflow: visible; font-size: 1.25rem; }
	.nav a { padding: 10px 0; border-bottom: 1px solid var(--rule); }
	.nav .sub-menu { display: block; list-style: none; padding-left: 16px; font-size: 1.0625rem; }
}

/* ---------- Bendri elementai ---------- */
.label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--f-sans);
	font-weight: 700;
	font-size: 1rem;
	color: var(--ink-2);
	margin: 0 0 14px;
}
.label::before {
	content: "";
	width: 9px;
	height: 9px;
	background: var(--amber);
	transform: rotate(45deg);
	flex: none;
}

.cat {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--f-sans);
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--c);
	text-decoration: none;
	line-height: 1.2;
}
.cat::before {
	content: "";
	width: 7px;
	height: 7px;
	background: var(--c);
	transform: rotate(45deg);
	flex: none;
}
:root[data-theme="dark"] .cat,
:root[data-theme="dark"] .card__rank { color: color-mix(in srgb, var(--c) 45%, #ffffff); }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .cat,
	:root:not([data-theme="light"]) .card__rank { color: color-mix(in srgb, var(--c) 45%, #ffffff); }
}
a.cat:hover { text-decoration: underline; text-underline-offset: 3px; }

.badge {
	display: inline-block;
	font-family: var(--f-sans);
	font-weight: 700;
	font-size: 0.8125rem;
	line-height: 1;
	padding: 4px 6px;
	background: var(--madder);
	color: #fff;
	border-radius: 2px;
}

.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
	font-family: var(--f-sans);
	font-size: 0.9375rem;
	color: var(--ink-2);
	line-height: 1.3;
}
.meta > * + *::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin: 0 11px 2px;
	background: currentColor;
	opacity: 0.55;
	transform: rotate(45deg);
	vertical-align: middle;
}

.button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	background: var(--amber);
	color: #1b2430;
	font-family: var(--f-sans);
	font-weight: 700;
	font-size: 1.0625rem;
	text-decoration: none;
	border-radius: 2px;
	border: 0;
	cursor: pointer;
}
.button:hover { background: #f0b73a; }

/* ---------- Kortelės ---------- */
.card { position: relative; }
.card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--linen);
	border-radius: 2px;
}
.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.card__body { padding-top: 14px; }
.card__kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	min-height: 1.2em;
}
.card__title {
	font-size: 1.3125rem;
	font-weight: 700;
	line-height: 1.18;
	margin-bottom: 10px;
}
.card__title a {
	color: var(--ink);
	text-decoration: none;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.card:hover .card__title a,
.card__title a:focus-visible {
	text-decoration-line: underline;
	text-decoration-color: var(--c);
}
.card__dek {
	color: var(--ink-2);
	font-size: 1rem;
	line-height: 1.55;
	margin-bottom: 12px;
}
.card .cat { position: relative; z-index: 2; }

/* Pagrindinė */
.card--lead .card__media { aspect-ratio: 16 / 9; }
.card--lead .card__body { padding-top: 20px; }
.card--lead .card__title {
	font-size: clamp(1.875rem, 3.3vw, 2.875rem);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -0.012em;
	margin-bottom: 14px;
}
.card--lead .card__dek {
	font-size: 1.1875rem;
	line-height: 1.55;
	max-width: 62ch;
}

/* Eilutė */
.card--row {
	display: grid;
	grid-template-columns: 104px 1fr;
	gap: 16px;
	padding: 16px 0;
	border-top: 1px solid var(--rule);
}
.card--row .card__media { aspect-ratio: 1; }
.card--row .card__body { padding-top: 0; }
.card--row .card__kicker { margin-bottom: 4px; }
.card--row .card__title { font-size: 1.125rem; margin-bottom: 6px; }
.card--row .meta { font-size: 0.875rem; }

/* Reitingas */
.card--rank {
	display: grid;
	grid-template-columns: 64px 1fr;
	align-items: start;
	gap: 8px;
	padding: 18px 0;
}
.card__rank {
	font-family: var(--f-sans);
	font-weight: 800;
	font-size: 2.75rem;
	line-height: 0.9;
	color: var(--c);
	font-variant-numeric: lining-nums tabular-nums;
}
.card--rank .card__body { padding-top: 0; }
.card--rank .card__title { font-size: 1.1875rem; margin: 0; }

/* Paveikslėlio pakaitalas */
.thumb-fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background-color: var(--c);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath fill='%23fff' fill-opacity='.14' d='M0 0h28v1.5H0zM0 12.5h28V14H0zM14 3l5 4-5 4-5-4zM0 3l5 4-5 4zM28 3l-5 4 5 4z'/%3E%3C/svg%3E");
	background-size: 28px 14px;
}
.thumb-fallback__mark {
	width: 34%;
	max-width: 96px;
	aspect-ratio: 1;
	background: url("../img/mark-mono.svg") center / contain no-repeat;
	opacity: 0.9;
}

/* ---------- Tinkleliai ---------- */
.grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 44px 32px;
}
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; }
.grid--4 .card__title { font-size: 1.1875rem; }
.grid__lead { grid-column: 1 / -1; }
.grid__lead .card--lead {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 36px;
	align-items: center;
	padding-bottom: 44px;
	border-bottom: 1px solid var(--rule);
}
.grid__lead .card--lead .card__body { padding-top: 0; }

@media (max-width: 1100px) {
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
	.grid__lead .card--lead { grid-template-columns: 1fr; gap: 0; }
	.grid__lead .card--lead .card__body { padding-top: 18px; }
}
@media (max-width: 600px) {
	.grid,
	.grid--4 { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Sekcijų antraštės ---------- */
.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 28px;
}
.section-head__title {
	font-size: clamp(1.625rem, 2.4vw, 2.125rem);
	letter-spacing: -0.01em;
}
.section-head__title a { color: inherit; text-decoration: none; }
.section-head__title a:hover { text-decoration: underline; text-decoration-color: var(--c); text-underline-offset: 6px; }
.section-head__more {
	font-family: var(--f-sans);
	font-weight: 700;
	font-size: 1rem;
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--c);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}
.section-head--band { position: relative; padding-bottom: 22px; }
.section-head--band::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 14px;
	background: var(--c);
	-webkit-mask: var(--band) repeat-x left center / 28px 14px;
	mask: var(--band) repeat-x left center / 28px 14px;
}

/* ---------- Pradžia ---------- */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	gap: 44px;
	padding-top: 36px;
	padding-bottom: 20px;
}
.hero__side .card--row:last-child { border-bottom: 1px solid var(--rule); }
@media (max-width: 960px) {
	.hero { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; }
}

.resume {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin-top: 16px;
	font-family: var(--f-sans);
	font-size: 1.0625rem;
}
.resume[hidden] { display: none; }
.resume__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	width: 100%;
	padding: 14px 18px;
	background: var(--linen);
	border-left: 6px solid var(--amber);
}
.resume a { color: var(--ink); font-weight: 700; }
.resume button {
	margin-left: auto;
	background: none;
	border: 0;
	color: var(--ink-2);
	cursor: pointer;
	text-decoration: underline;
}

.topics { padding-top: 40px; padding-bottom: 12px; }
.topics__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
	list-style: none;
}
.topic {
	display: flex;
	flex-direction: column;
	gap: 2px;
	height: 100%;
	padding: 12px 14px 12px 18px;
	background: var(--linen);
	border-left: 6px solid var(--c);
	border-radius: 0 2px 2px 0;
	color: var(--ink);
	text-decoration: none;
	font-family: var(--f-sans);
}
.topic:hover { background: var(--linen-2); }
.topic__name { font-weight: 700; font-size: 1.125rem; line-height: 1.2; }
.topic__count { font-size: 0.9375rem; color: var(--ink-2); }

@media (max-width: 600px) {
	.topics__list {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(150px, 46%);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 6px;
		scrollbar-width: thin;
	}
	.topics__list li { scroll-snap-align: start; }
	.card--lead .card__dek {
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.crumbs li:last-child { display: none; }
}

.latest { padding-top: 48px; padding-bottom: 64px; }

.popular {
	background: var(--linen);
	padding: 56px 0 64px;
}
.popular__in {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: 56px;
	align-items: start;
}
.popular__list .section-head__title { margin-bottom: 12px; }
.ranks { list-style: none; }
.ranks li + li { border-top: 1px solid var(--rule); }

.discover {
	position: relative;
	padding: 36px 32px 34px;
	background: var(--indigo);
	color: #fff;
	border-radius: 2px;
	overflow: hidden;
}
.discover::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 14px;
	background: var(--amber);
	-webkit-mask: var(--band) repeat-x left center / 28px 14px;
	mask: var(--band) repeat-x left center / 28px 14px;
}
.discover__mark {
	display: block;
	width: 64px;
	height: 64px;
	margin-bottom: 20px;
	background: url("../img/mark-mono.svg") center / contain no-repeat;
}
.discover__title { font-size: 1.75rem; margin-bottom: 12px; }
.discover__text { font-size: 1.0625rem; line-height: 1.55; margin-bottom: 22px; opacity: 0.92; }

@media (max-width: 900px) {
	.popular__in { grid-template-columns: 1fr; gap: 36px; }
}

.strand { padding-top: 64px; }
.strand:last-of-type { padding-bottom: 72px; }
.strand__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 40px;
	align-items: start;
}
.strand--flip .strand__main { order: 2; }
.strand__main .card__title { font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 800; }
.strand__list .card--row:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 900px) {
	.strand__grid { grid-template-columns: 1fr; gap: 20px; }
	.strand--flip .strand__main { order: 0; }
	.strand__list .card--row:first-child { border-top: 1px solid var(--rule); padding-top: 16px; }
}

/* ---------- Puslapiavimas ---------- */
.more { display: flex; justify-content: center; margin-top: 48px; }
.more__btn {
	padding: 14px 28px;
	background: var(--ink);
	color: var(--paper);
	border: 0;
	border-radius: 2px;
	font-family: var(--f-sans);
	font-weight: 700;
	font-size: 1.0625rem;
	cursor: pointer;
}
.more__btn:hover { background: var(--indigo); color: #fff; }
.more__btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.pager { margin-top: 40px; }
.js .more + .pager { margin-top: 20px; }
.pager .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	font-family: var(--f-sans);
	font-weight: 600;
}
.pager .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--rule);
	border-radius: 2px;
	color: var(--ink);
	text-decoration: none;
}
.pager a.page-numbers:hover { background: var(--linen); }
.pager .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager .page-numbers.dots { border: 0; }

/* ---------- Archyvai ---------- */
.archive-head {
	background: var(--linen);
	padding-top: 28px;
	margin-bottom: 44px;
}
.archive-head .band { margin-top: 28px; }
.archive-head__title {
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	letter-spacing: -0.015em;
	line-height: 1.02;
	margin-top: 14px;
}
.archive-head__page {
	display: block;
	font-size: 0.4em;
	font-weight: 600;
	color: var(--ink-2);
	letter-spacing: 0;
	margin-top: 6px;
}
.archive-head__desc {
	max-width: 68ch;
	margin-top: 14px;
	font-size: 1.125rem;
	color: var(--ink-2);
}
.archive-head__desc p + p { margin-top: 0.8em; }
.archive-head__count {
	margin-top: 12px;
	font-family: var(--f-sans);
	font-weight: 600;
	color: var(--ink-2);
}
.listing { padding-bottom: 72px; }

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin-top: 18px;
}
.chips a,
.tags a {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--rule);
	border-radius: 2px;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-sans);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
}
.chips a:hover,
.tags a:hover { border-color: var(--ink); }

.empty { padding-block: 64px; max-width: 760px; }
.empty h1,
.empty h2 { font-size: 2.25rem; margin-bottom: 12px; }
.empty p { margin-bottom: 20px; color: var(--ink-2); }
.empty .nav__list { flex-wrap: wrap; font-family: var(--f-sans); display: flex; gap: 10px 20px; list-style: none; font-weight: 700; }
.empty .nav__list a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Naršymo kelias ---------- */
.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	font-family: var(--f-sans);
	font-size: 0.9375rem;
	color: var(--ink-2);
}
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before {
	content: "";
	width: 5px;
	height: 5px;
	margin: 0 10px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
	flex: none;
}
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
.crumbs li:last-child span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 46ch;
}

/* ---------- Įrašas ---------- */
.progress {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	height: 8px;
	z-index: 60;
	pointer-events: none;
}
.admin-bar .progress { top: 32px; }
.progress__bar {
	display: block;
	height: 100%;
	background: var(--amber);
	-webkit-mask: var(--band) repeat-x left center / 16px 8px;
	mask: var(--band) repeat-x left center / 16px 8px;
	clip-path: inset(0 calc(100% - var(--p, 0) * 100%) 0 0);
}

.story__head {
	max-width: calc(980px + var(--gutter) * 2);
	padding-top: 28px;
}
.story__kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 22px;
	margin-bottom: 14px;
}
.story__kicker .cat { font-size: 1.0625rem; }
.story__title {
	font-size: clamp(2rem, 4.4vw, 3.5rem);
	line-height: 1.04;
	letter-spacing: -0.018em;
	max-width: 24ch;
}
.story--page .story__title { margin-top: 18px; }
.story__dek {
	margin-top: 18px;
	font-size: clamp(1.1875rem, 1.8vw, 1.375rem);
	line-height: 1.5;
	color: var(--ink-2);
	max-width: 60ch;
}
.story__meta {
	margin-top: 22px;
	padding: 14px 0;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	font-size: 1rem;
}
.meta__author { font-weight: 700; color: var(--ink); }

.story__figure {
	margin: 32px auto 0;
	max-width: calc(1100px + var(--gutter) * 2);
}
.story__figure img { width: 100%; border-radius: 2px; }
.story__figure figcaption {
	margin-top: 10px;
	font-family: var(--f-sans);
	font-size: 0.9375rem;
	color: var(--ink-2);
}

.story__grid {
	display: grid;
	grid-template-columns: 56px minmax(0, 720px);
	justify-content: center;
	gap: 48px;
	max-width: calc(1100px + var(--gutter) * 2);
	padding-top: 40px;
}
.story__grid.has-toc { grid-template-columns: 250px minmax(0, 720px); gap: 56px; }
.story--page .story__grid { grid-template-columns: minmax(0, 720px); }

.story__rail {
	position: sticky;
	top: calc(var(--header-h) + 28px);
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: 28px;
	max-height: calc(100vh - var(--header-h) - 56px);
	overflow-y: auto;
	scrollbar-width: thin;
}

.toc { font-family: var(--f-sans); }
.toc__title {
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--rule);
	list-style: none;
}
.toc__title::-webkit-details-marker { display: none; }
.toc__title::after {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-left: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}
.toc[open] .toc__title::after { transform: translateY(1px) rotate(-135deg); }
.toc__list { list-style: none; padding-top: 6px; }
.toc__item a {
	display: block;
	padding: 7px 0 7px 14px;
	border-left: 3px solid transparent;
	color: var(--ink-2);
	text-decoration: none;
	font-size: 0.9688rem;
	line-height: 1.3;
}
.toc__item--h3 a { padding-left: 28px; font-size: 0.9063rem; }
.toc__item a:hover { color: var(--ink); }
.toc__item a.is-active {
	color: var(--ink);
	font-weight: 700;
	border-left-color: var(--c);
}

.share { font-family: var(--f-sans); }
.share__label { display: block; font-weight: 700; font-size: 0.9375rem; color: var(--ink-2); margin-bottom: 10px; }
.share__list { display: flex; gap: 8px; list-style: none; flex-wrap: wrap; }
.share__btn {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--rule);
	border-radius: 2px;
	background: var(--paper);
	color: var(--ink);
	cursor: pointer;
}
.share__btn:hover { background: var(--c); border-color: var(--c); color: #fff; }

.story__grid:not(.has-toc) .share--rail .share__label { display: none; }
.story__grid:not(.has-toc) .share--rail .share__list { flex-direction: column; }

/* Turinys */
.entry-content {
	font-size: 1.1875rem;
	line-height: 1.75;
	min-width: 0;
}
.entry-content > * { margin-top: 0; margin-bottom: 1.25em; }
.entry-content h2 {
	font-size: clamp(1.5rem, 2.4vw, 1.875rem);
	margin-top: 2em;
	margin-bottom: 0.6em;
	letter-spacing: -0.01em;
}
.entry-content h3 { font-size: 1.375rem; margin-top: 1.7em; margin-bottom: 0.5em; }
.entry-content h4 { font-size: 1.1875rem; margin-top: 1.5em; margin-bottom: 0.4em; }
.entry-content a {
	color: var(--link);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.45em; }
.entry-content ul li::marker { color: var(--c); }
.entry-content ol li::marker { font-family: var(--f-sans); font-weight: 700; color: var(--c); }
.entry-content strong { font-weight: 700; }
.entry-content blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 4px 0 4px 24px;
	border-left: 6px solid var(--c);
	font-style: italic;
	font-size: 1.25rem;
}
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption,
.entry-content .wp-caption-text {
	margin-top: 8px;
	font-family: var(--f-sans);
	font-size: 0.9375rem;
	color: var(--ink-2);
}
.entry-content img { border-radius: 2px; }
.entry-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-family: var(--f-sans);
	font-size: 1rem;
	line-height: 1.45;
}
.entry-content th,
.entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.entry-content th { background: var(--linen); font-weight: 700; }
.entry-content hr { border: 0; height: 14px; background: var(--rule); -webkit-mask: var(--band) repeat-x left center / 28px 14px; mask: var(--band) repeat-x left center / 28px 14px; margin: 2.5em 0; }
.entry-content iframe { width: 100%; }
.entry-content pre { overflow-x: auto; background: var(--linen); padding: 16px; font-size: 0.9375rem; }
.entry-content .alignwide { margin-left: -6%; margin-right: -6%; max-width: none; }
.entry-content .alignleft { float: left; margin: 0.3em 1.4em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: 0.3em 0 1em 1.4em; max-width: 50%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.page-links { font-family: var(--f-sans); font-weight: 700; }

.story__grid--foot { padding-top: 12px; padding-bottom: 56px; }
.story__foot {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.share--foot { padding-top: 24px; border-top: 1px solid var(--rule); }

@media (max-width: 1100px) {
	.story__grid,
	.story__grid.has-toc { grid-template-columns: minmax(0, 720px); gap: 24px; padding-top: 28px; }
	.story__rail { position: static; max-height: none; overflow: visible; }
	.story__spacer { display: none; }
	.share--rail { display: none; }
	.toc { background: var(--linen); padding: 14px 16px; border-radius: 2px; }
	.toc__title { border-bottom: 0; padding-bottom: 0; }
	.toc[open] .toc__title { padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 600px) {
	.entry-content { font-size: 1.125rem; line-height: 1.7; }
	.entry-content .alignleft,
	.entry-content .alignright { float: none; margin: 0 0 1em; max-width: 100%; }
	.entry-content .alignwide { margin-left: 0; margin-right: 0; }
}

.related { padding-top: 56px; padding-bottom: 80px; border-top: 1px solid var(--rule); }

/* Kitas straipsnis */
.upnext {
	position: fixed;
	right: 92px;
	bottom: 24px;
	z-index: 40;
	display: flex;
	align-items: stretch;
	width: min(400px, calc(100vw - 120px));
	background: var(--paper);
	border: 1px solid var(--rule);
	border-top: 4px solid var(--c);
	border-radius: 2px;
	box-shadow: 0 18px 40px -18px rgba(27, 36, 48, 0.45);
	transform: translateY(calc(100% + 40px));
	visibility: hidden;
}
.upnext.is-visible { transform: none; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
	.upnext { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.35s; }
}
.upnext__link {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 12px;
	flex: 1;
	min-width: 0;
	color: var(--ink);
	text-decoration: none;
}
.upnext__media { width: 72px; height: 72px; flex: none; overflow: hidden; border-radius: 2px; background: var(--linen); }
.upnext__media img { width: 100%; height: 100%; object-fit: cover; }
.upnext__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-family: var(--f-sans); }
.upnext__label { font-size: 0.875rem; font-weight: 700; color: var(--ink-2); }
.upnext__title {
	font-weight: 700;
	font-size: 1.0625rem;
	line-height: 1.2;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.upnext__link:hover .upnext__title { text-decoration: underline; text-decoration-color: var(--c); }
.upnext__close {
	flex: none;
	width: 40px;
	border: 0;
	border-left: 1px solid var(--rule);
	background: transparent;
	color: var(--ink-2);
	cursor: pointer;
}
.upnext__close:hover { color: var(--ink); background: var(--linen); }
@media (max-width: 600px) {
	.upnext { left: 12px; right: 76px; bottom: 12px; width: auto; }
	.upnext__media { width: 56px; height: 56px; }
}

/* ---------- Į viršų ---------- */
.totop {
	position: fixed;
	right: 28px;
	bottom: 30px;
	z-index: 45;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	background: var(--ink);
	color: var(--paper);
	transform: rotate(45deg) scale(0.6);
	opacity: 0;
	visibility: hidden;
	overflow: hidden;
	border-radius: 3px;
	text-decoration: none;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: rotate(45deg) scale(1); }
@media (prefers-reduced-motion: no-preference) {
	.totop { transition: opacity 0.25s, transform 0.25s, visibility 0.25s; }
}
.totop__fill {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 150%;
	height: 150%;
	transform: translate(-50%, -50%) rotate(-45deg);
	background: linear-gradient(to top, var(--amber) calc(var(--p, 0) * 100%), transparent 0);
}
.totop .icon {
	position: relative;
	transform: rotate(-45deg);
	width: 22px;
	height: 22px;
}
.totop:hover { background: var(--indigo); color: #fff; }
.totop:focus-visible { outline-offset: 4px; }
@media (max-width: 600px) {
	.totop { right: 20px; bottom: 22px; }
}

/* ---------- Pranešimas ---------- */
.toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 70;
	transform: translateX(-50%);
	padding: 10px 18px;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--f-sans);
	font-weight: 600;
	border-radius: 2px;
}
.toast[hidden] { display: none; }

/* ---------- Poraštė ---------- */
.footer {
	background: var(--footer-bg);
	color: var(--footer-ink);
	font-family: var(--f-sans);
	margin-top: 0;
}
.footer__in {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
	gap: 48px;
	padding-top: 56px;
	padding-bottom: 40px;
}
.footer .brand__link { color: #fff; }
.footer__desc { margin-top: 18px; max-width: 42ch; font-family: var(--f-serif); font-size: 1rem; line-height: 1.6; opacity: 0.85; }
.footer__random {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	color: var(--amber);
	font-weight: 700;
	text-decoration: none;
}
.footer__random:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__title { font-weight: 700; font-size: 1.0625rem; color: #fff; margin-bottom: 14px; }
.footer__topics {
	list-style: none;
	columns: 2;
	column-gap: 24px;
}
.footer__topics li { break-inside: avoid; margin-bottom: 8px; }
.footer__topics a,
.footer__links a {
	color: var(--footer-ink);
	text-decoration: none;
}
.footer__topics a::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 9px;
	background: color-mix(in srgb, var(--c) 60%, #ffffff);
	transform: rotate(45deg) translateY(-2px);
}
.footer__topics a:hover,
.footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 8px; }
.footer__base {
	padding-top: 18px;
	padding-bottom: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.9375rem;
	opacity: 0.75;
}
@media (max-width: 900px) {
	.footer__in { grid-template-columns: 1fr 1fr; }
	.footer__about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.footer__in { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- WordPress klasės ---------- */
.wp-caption { max-width: 100%; }
.sticky,
.bypostauthor,
.gallery-caption { /* WP reikalaujamos klasės */ }

/* ---------- Spausdinimas ---------- */
@media print {
	.masthead,
	.band,
	.footer,
	.totop,
	.upnext,
	.progress,
	.story__rail,
	.share,
	.related,
	.toast { display: none !important; }
	body { font-size: 12pt; color: #000; background: #fff; }
	.story__grid { display: block; }
	.entry-content a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* ---------- Mažiau judesio ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
