/*
Theme Name: Kampas
Theme URI: https://www.teatr-studio.lt/
Author: teatr-studio.lt
Description: Išskirtinė naujienų portalo tema „Kultūringos žinios lenkišku kampu“. Kampuota redakcinė estetika, įtaisytas SEO (meta, Open Graph, Schema.org NewsArticle, trupinių kelias), skaitomiausių straipsnių skaitiklis, turinio rodyklė, skaitymo progresas, tamsus režimas, mygtukas „į viršų“ ir nukreipimai be įskiepių. Be formų ir be išorinių šriftų – greita ir paprasta.
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: kampas
Tags: news, blog, one-column, two-columns, custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready
*/

/* =========================================================================
   1. Kintamieji
   ====================================================================== */
:root {
	--paper: #f5efe4;
	--paper-2: #ebe3d4;
	--card: #fffaf1;
	--ink: #17120e;
	--ink-2: #463c34;
	--muted: #7b6e62;
	--line: #d8ccb9;
	--karmin: #b3122a;
	--karmin-d: #8c0c1f;
	--amber: #e3a92b;
	--on-karmin: #fff8ee;
	--band: #17120e;
	--band-ink: #f3ebde;
	--band-muted: #b2a594;
	--band-line: #3a312a;

	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, Cambria, "Noto Serif", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--cut: 26px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--shadow: 0 1px 0 rgba(23, 18, 14, .06), 0 12px 30px -18px rgba(23, 18, 14, .35);
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.07 0 0 0 0 0.05 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	color-scheme: light;
}

html[data-theme="dark"] {
	--paper: #131010;
	--paper-2: #1c1816;
	--card: #1e1a17;
	--ink: #f2eadd;
	--ink-2: #d3c7b7;
	--muted: #9d9183;
	--line: #3a322c;
	--karmin: #e0475c;
	--karmin-d: #c22a40;
	--amber: #e8b44a;
	--on-karmin: #fff8ee;
	--band: #0b0908;
	--band-ink: #f2eadd;
	--band-muted: #a89b8b;
	--band-line: #2e2722;
	--shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 30px -18px rgba(0, 0, 0, .8);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) {
		--paper: #131010;
		--paper-2: #1c1816;
		--card: #1e1a17;
		--ink: #f2eadd;
		--ink-2: #d3c7b7;
		--muted: #9d9183;
		--line: #3a322c;
		--karmin: #e0475c;
		--karmin-d: #c22a40;
		--amber: #e8b44a;
		--on-karmin: #fff8ee;
		--band: #0b0908;
		--band-ink: #f2eadd;
		--band-muted: #a89b8b;
		--band-line: #2e2722;
		--shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 30px -18px rgba(0, 0, 0, .8);
		color-scheme: dark;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 90px;
}

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

body {
	margin: 0;
	background: var(--paper) var(--grain);
	color: var(--ink);
	font: 400 1rem/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

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

img { height: auto; display: block; }

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
}

a:hover { color: var(--karmin); }

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

button { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--serif);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.012em;
	margin: 0 0 .5em;
	text-wrap: balance;
}

p { margin: 0 0 1em; }

::selection { background: var(--karmin); color: var(--on-karmin); }

.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: 1000;
	background: var(--karmin);
	color: var(--on-karmin);
	padding: 10px 16px;
	font-weight: 700;
	text-decoration: none;
}

.skip-link:focus { top: 12px; color: var(--on-karmin); }

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

.wrap--mid { max-width: calc(940px + var(--gutter) * 2); }
.wrap--text { max-width: calc(760px + var(--gutter) * 2); }

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

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }

/* =========================================================================
   3. Skaitymo progresas
   ====================================================================== */
.progress {
	position: fixed;
	inset: 0 0 auto;
	height: 4px;
	z-index: 200;
	pointer-events: none;
}

.progress__bar {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--karmin), var(--amber));
	transform-origin: 0 50%;
	transform: scaleX(var(--p, 0));
}

/* =========================================================================
   4. Viršutinė juosta + bėganti eilutė
   ====================================================================== */
.topbar {
	background: var(--band);
	color: var(--band-ink);
	font-size: .8rem;
	border-bottom: 3px solid var(--karmin);
}

.topbar__in {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 38px;
}

.topbar__date {
	margin: 0;
	white-space: nowrap;
	display: flex;
	gap: 10px;
	align-items: baseline;
}

.topbar__pl {
	color: var(--band-muted);
	font-family: var(--serif);
	font-style: italic;
}

.topbar__pl::before { content: "· "; font-style: normal; }

.ticker {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: stretch;
	overflow: hidden;
}

.ticker__label {
	flex: none;
	background: var(--amber);
	color: #17120e;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .7rem;
	padding: 4px 18px 4px 12px;
	clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
	display: flex;
	align-items: center;
}

.ticker__viewport {
	flex: 1;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent);
}

.ticker__track {
	display: flex;
	width: max-content;
	animation: kampas-ticker 70s linear infinite;
}

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

.ticker__list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ticker__list li {
	display: flex;
	align-items: center;
	padding: 0 22px;
	white-space: nowrap;
}

.ticker__list li::before {
	content: "";
	width: 7px;
	height: 7px;
	background: var(--karmin);
	margin-right: 12px;
	clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.ticker__list a {
	text-decoration: none;
	color: var(--band-ink);
	line-height: 30px;
}

.ticker__list a:hover { color: var(--amber); }

@keyframes kampas-ticker {
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.ticker__track { animation: none; }
	.ticker__viewport { overflow-x: auto; }
	.ticker__list[aria-hidden] { display: none; }
}

/* =========================================================================
   5. Antraštė (masthead) ir navigacija
   ====================================================================== */
.masthead__in {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 28px;
	padding-block: 22px 18px;
}

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

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

.brand__mark { flex: none; display: block; }
.brand__mark .m-bg { fill: var(--karmin); transition: fill .3s; }
.brand__mark .m-fold { fill: var(--amber); transform-origin: 56px 8px; transition: transform .4s var(--ease); }
.brand__mark .m-k { fill: var(--on-karmin); }
.brand:hover .m-fold { transform: scale(1.35); }

.brand__img { max-height: 64px; width: auto; }

.brand__name {
	margin: 0;
	font-family: var(--serif);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.015em;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.brand__l1 { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); }

.brand__l2 {
	font-size: clamp(1.05rem, .85rem + .8vw, 1.45rem);
	font-style: italic;
	font-weight: 400;
	color: var(--karmin);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.brand__l2::after {
	content: "";
	width: 12px;
	height: 12px;
	border-right: 3px solid var(--karmin);
	border-bottom: 3px solid var(--karmin);
	transform: translateY(-3px);
}

.masthead__claim {
	margin: 0;
	justify-self: end;
	max-width: 30ch;
	text-align: right;
	font-family: var(--serif);
	font-style: italic;
	color: var(--muted);
	font-size: .98rem;
	line-height: 1.35;
	border-right: 2px solid var(--line);
	padding-right: 20px;
}

.masthead__tools { display: flex; gap: 8px; }

.tool {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 1.5px solid var(--ink);
	background: transparent;
	cursor: pointer;
	clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
	transition: background .2s, color .2s;
}

.tool:hover { background: var(--ink); color: var(--paper); }

.tool .icon--sun { display: none; }
html[data-theme="dark"] .tool .icon--moon { display: none; }
html[data-theme="dark"] .tool .icon--sun { display: block; }

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

.nav {
	position: sticky;
	top: 0;
	z-index: 60;
	background: color-mix(in srgb, var(--paper) 92%, transparent);
	backdrop-filter: saturate(1.4) blur(8px);
	-webkit-backdrop-filter: saturate(1.4) blur(8px);
	border-block: 1px solid var(--ink);
}

.admin-bar .nav { top: 32px; }

@media (max-width: 782px) {
	.admin-bar .nav { top: 0; }
}

.nav__in {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nav__mini {
	display: flex;
	width: 0;
	overflow: hidden;
	opacity: 0;
	transition: width .3s var(--ease), opacity .3s;
}

.nav.is-stuck .nav__mini { width: 30px; opacity: 1; }

.nav__scroll {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}

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

.nav__list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0 30px 0 0;
	gap: 2px;
	white-space: nowrap;
}

.nav__list a {
	display: block;
	position: relative;
	padding: 14px 14px 13px;
	text-decoration: none;
	font-weight: 650;
	font-size: .92rem;
	letter-spacing: .01em;
}

.nav__list a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: -1px;
	height: 4px;
	background: var(--karmin);
	transform: scaleX(0) skewX(-30deg);
	transform-origin: left;
	transition: transform .25s var(--ease);
}

.nav__list a:hover::after,
.nav__list .current-menu-item > a::after,
.nav__list .current-category-ancestor > a::after,
.nav__list .current-post-ancestor > a::after { transform: scaleX(1) skewX(-30deg); }

.nav__list .current-menu-item > a { color: var(--karmin); }

/* Paieškos skydelis */
.search-panel {
	background: var(--band);
	color: var(--band-ink);
	border-bottom: 3px solid var(--karmin);
}

.search-panel[hidden] { display: none; }

.search-panel__in {
	display: flex;
	gap: 12px;
	align-items: center;
	padding-block: 22px;
}

.search-panel .sform { flex: 1; }
.search-panel .tool { border-color: var(--band-ink); }
.search-panel .tool:hover { background: var(--band-ink); color: var(--band); }

.sform {
	display: flex;
	max-width: 720px;
	border: 2px solid currentColor;
	background: var(--card);
	color: var(--ink);
}

.search-panel .sform { border-color: var(--band-ink); }

.sform__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: 400 1.15rem/1.2 var(--serif);
	padding: 14px 16px;
}

.sform__input:focus { outline: none; }
.sform:focus-within { outline: 3px solid var(--amber); outline-offset: 2px; }

.sform__btn {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 0;
	background: var(--karmin);
	color: var(--on-karmin);
	font-weight: 700;
	padding: 0 20px;
	cursor: pointer;
}

.sform__btn:hover { background: var(--karmin-d); }

/* =========================================================================
   6. Bendri komponentai
   ====================================================================== */

/* Kampuotas paveikslėlis su užlenktu kampu */
.thumb {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--paper-2);
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
	transition: clip-path .45s var(--ease);
}

.thumb::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: var(--cut);
	height: var(--cut);
	background: linear-gradient(to top right, var(--amber) 50%, transparent 50%);
	transition: width .45s var(--ease), height .45s var(--ease);
	z-index: 2;
	pointer-events: none;
}

.thumb__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .8s var(--ease), filter .4s;
}

.card:hover .thumb,
.lead:hover .thumb,
.mini:hover .thumb { --cut: 40px; }

.card:hover .thumb__img,
.lead:hover .thumb__img { transform: scale(1.04); }

/* Pakaitalas, kai nėra paveikslėlio */
.ph {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 16px 18px;
	color: var(--on-karmin);
	background:
		linear-gradient(135deg, transparent 0 55%, rgba(0, 0, 0, .14) 55% 100%),
		repeating-linear-gradient(-45deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 12px),
		var(--ph-bg, var(--karmin));
	overflow: hidden;
}

.ph--1 { --ph-bg: #2f4a3c; }
.ph--2 { --ph-bg: #3a2d55; }
.ph--3 { --ph-bg: #7a4a12; }

.ph__l {
	font-family: var(--serif);
	font-weight: 700;
	font-size: clamp(4rem, 12vw, 9rem);
	line-height: .8;
	opacity: .9;
	text-shadow: 6px 6px 0 rgba(0, 0, 0, .15);
}

.ph__c {
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-weight: 700;
	opacity: .85;
	align-self: flex-end;
}

.mini .ph { padding: 8px; }
.mini .ph__l { font-size: 2.6rem; }
.card .ph__c,
.lead .ph__c,
.mini .ph__c { display: none; }

/* Kategorijos etiketė */
.tag {
	position: relative;
	z-index: 3;
	display: inline-block;
	background: var(--karmin);
	color: var(--on-karmin);
	font: 800 .68rem/1 var(--sans);
	text-transform: uppercase;
	letter-spacing: .12em;
	text-decoration: none;
	padding: 6px 14px 6px 10px;
	clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
	transition: background .2s;
}

.tag:hover { background: var(--ink); color: var(--paper); }

.tag--plain {
	background: none;
	color: var(--karmin);
	padding: 0;
	clip-path: none;
}

.tag--plain:hover { background: none; color: var(--ink); }

/* Meta eilutė */
.meta {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	font-size: .78rem;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.meta__sep { color: var(--line); }
.meta__rt { display: inline-flex; align-items: center; gap: 4px; }
.meta .icon { width: 13px; height: 13px; }

/* Visa kortelė paspaudžiama */
.stretch { text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Skyriaus antraštė */
.block { margin-block: clamp(48px, 7vw, 88px); }

.block__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ink);
	position: relative;
}

.block__head::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 90px;
	height: 7px;
	background: var(--karmin);
	clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}

.block__title {
	margin: 0;
	font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.9rem);
	line-height: 1;
	position: relative;
	padding-left: 26px;
}

.block__title::before {
	content: "";
	position: absolute;
	left: 0;
	top: .08em;
	width: 15px;
	height: 15px;
	border-top: 4px solid var(--karmin);
	border-left: 4px solid var(--karmin);
}

.block__title em {
	font-weight: 400;
	color: var(--karmin);
}

.block__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: .9rem;
	text-decoration: none;
	white-space: nowrap;
	padding-bottom: 4px;
}

.block__more .icon { transition: transform .25s var(--ease); }
.block__more:hover .icon { transform: translateX(4px); }

.kicker {
	font: 800 .78rem/1 var(--sans);
	text-transform: uppercase;
	letter-spacing: .16em;
	margin: 0 0 18px;
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--karmin);
}

.kicker::after {
	content: "";
	flex: 1;
	height: 1px;
	background: currentColor;
	opacity: .5;
}

.kicker span::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 10px;
	background: currentColor;
	clip-path: polygon(0 0, 100% 0, 0 100%);
}

.kicker--inv { color: var(--amber); }

/* Įstrižas rėmelio kraštas nukirptame kampe */
.tool,
.chips a,
.pager a,
.pager span:not(.dots),
.topics__list a,
.cta__btn,
.pn__item {
	--bc: var(--ink);
	--c: 10px;
	--bw: .9px;
	background-image: linear-gradient(to bottom left, transparent calc(50% - var(--bw)), var(--bc) calc(50% - var(--bw)), var(--bc) calc(50% + var(--bw)), transparent calc(50% + var(--bw)));
	background-size: var(--c) var(--c);
	background-position: top right;
	background-repeat: no-repeat;
}

.chips a,
.topics__list a,
.pager a,
.pager span { --c: 9px; }
.topics__list a { --bc: var(--line); --bw: .6px; }
.cta__btn { --c: 34px; --bw: 1.2px; }
.pn__item { --c: 22px; }
.pn__item--prev { background-position: bottom left; }
.search-panel .tool { --bc: var(--band-ink); }

/* Žymų „traškučiai“ */
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.chips a {
	display: inline-block;
	padding: 7px 14px;
	border: 1.5px solid var(--ink);
	text-decoration: none;
	font-weight: 650;
	font-size: .88rem;
	clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
	transition: background .2s, color .2s;
}

.chips a:hover { background: var(--ink); color: var(--paper); }

/* Trupinių kelias */
.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	font-size: .8rem;
	color: var(--muted);
}

.crumbs li { display: flex; align-items: center; }

.crumbs li + li::before {
	content: "";
	width: 6px;
	height: 6px;
	margin: 0 10px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.crumbs [aria-current] {
	max-width: 42ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* =========================================================================
   7. Pradžia: pagrindinė naujiena
   ====================================================================== */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	margin-top: clamp(24px, 4vw, 44px);
}

.lead { position: relative; }

.lead__media { aspect-ratio: 16 / 10; --cut: 46px; }
.lead:hover .lead__media { --cut: 64px; }

.lead__body {
	position: relative;
	z-index: 2;
	margin: -110px 0 0 clamp(16px, 4vw, 48px);
	background: var(--card);
	padding: clamp(20px, 3vw, 34px) clamp(20px, 3vw, 36px) clamp(18px, 2.5vw, 28px);
	border-left: 7px solid var(--karmin);
	box-shadow: var(--shadow);
}

.lead__body .tag { margin-bottom: 14px; }

.lead__title {
	font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.55rem);
	line-height: 1.08;
	margin-bottom: 14px;
}

.lead__title a { background: linear-gradient(var(--karmin), var(--karmin)) 0 100% / 0 3px no-repeat; transition: background-size .5s var(--ease); }
.lead:hover .lead__title a { background-size: 100% 3px; color: inherit; }

.lead__ex {
	font-family: var(--serif);
	font-size: 1.12rem;
	line-height: 1.55;
	color: var(--ink-2);
}

.lead__foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding-top: 14px;
	border-top: 1px dashed var(--line);
}

.lead__go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 800;
	font-size: .82rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--karmin);
}

.lead__go .icon { transition: transform .3s var(--ease); }
.lead:hover .lead__go .icon { transform: translateX(5px); }

/* Sunumeruotas sąrašas */
.ranked {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: r;
}

.row {
	position: relative;
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.row:first-child { padding-top: 4px; }

.row__n {
	font: 700 2.9rem/.9 var(--serif);
	color: transparent;
	-webkit-text-stroke: 1.5px var(--karmin);
	font-variant-numeric: lining-nums;
	transition: color .25s;
}

.row:hover .row__n { color: var(--karmin); }

.row__body .tag { margin-bottom: 6px; }

.row__title {
	font-size: 1.14rem;
	line-height: 1.25;
	margin: 0 0 6px;
}

.row__title a:hover { color: var(--karmin); }

/* Temų juosta */
.topics {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: clamp(36px, 5vw, 56px);
}

.topics__label {
	flex: none;
	font: italic 400 1.4rem/1 var(--serif);
	color: var(--karmin);
}

.topics__list {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 4px 0;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.topics__list li { scroll-snap-align: start; flex: none; }

.topics__list a {
	display: block;
	padding: 9px 16px;
	background-color: var(--card);
	border: 1px solid var(--line);
	text-decoration: none;
	font-weight: 650;
	font-size: .9rem;
	white-space: nowrap;
	clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
	transition: background .2s, color .2s, border-color .2s;
}

.topics__list a:hover { background: var(--karmin); border-color: var(--karmin); color: var(--on-karmin); }

.topics__list sup {
	font-size: .68em;
	margin-left: 4px;
	opacity: .65;
}

/* =========================================================================
   8. Kortelės ir tinkleliai
   ====================================================================== */
.grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 3.5vw, 44px) clamp(20px, 2.6vw, 34px);
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
}

.card__media { aspect-ratio: 3 / 2; }

.card__tag {
	position: absolute;
	left: 0;
	bottom: 0;
}

.card__body { padding-top: 16px; }

.card__title {
	font-size: clamp(1.18rem, 1.05rem + .45vw, 1.38rem);
	line-height: 1.2;
	margin-bottom: 8px;
}

.card__title a { transition: color .2s; }
.card:hover .card__title a { color: var(--karmin); }

.card__ex {
	color: var(--ink-2);
	font-size: .95rem;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 10px;
}

/* Didelė kortelė sąrašuose */
.grid--listing .card--wide {
	grid-column: span 2;
	grid-row: span 2;
}

.card--wide .card__media { aspect-ratio: auto; flex: 1; min-height: 320px; --cut: 44px; }
.card--wide .card__title { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); line-height: 1.08; }
.card--wide .card__ex { font-family: var(--serif); font-size: 1.08rem; -webkit-line-clamp: 4; }
.card--wide .card__body { padding-top: 20px; }

/* Teminio bloko kortelė */
.card--feature .card__media { aspect-ratio: 3 / 2; --cut: 38px; }
.card--feature .card__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); }
.card--feature .card__ex { font-family: var(--serif); font-size: 1.04rem; }

/* Mini kortelė */
.mini {
	position: relative;
	display: grid;
	grid-template-columns: 112px 1fr;
	gap: 16px;
	align-items: start;
}

.mini__media { aspect-ratio: 1; --cut: 16px; }
.mini:hover .mini__media { --cut: 24px; }

.mini__title {
	font-size: 1.04rem;
	line-height: 1.25;
	margin: 0 0 6px;
}

.mini:hover .mini__title a { color: var(--karmin); }

/* =========================================================================
   9. Teminiai blokai
   ====================================================================== */
.topic {
	display: grid;
	grid-template-columns: minmax(200px, .75fr) minmax(0, 1.35fr) minmax(0, 1fr);
	grid-template-areas: "head feature list";
	gap: clamp(20px, 3vw, 44px);
	margin-block: clamp(56px, 8vw, 96px);
	align-items: start;
}

.topic--flip {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(200px, .75fr);
	grid-template-areas: "list feature head";
}

.topic__head {
	grid-area: head;
	position: sticky;
	top: 80px;
	border-top: 7px solid var(--ink);
	padding-top: 18px;
}

.topic__no {
	display: block;
	font: 700 clamp(4rem, 3rem + 4vw, 7rem)/.8 var(--serif);
	color: transparent;
	-webkit-text-stroke: 2px var(--karmin);
	margin-bottom: 14px;
}

.topic__title {
	font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem);
	line-height: 1;
	margin-bottom: 12px;
}

.topic__title a { text-decoration: none; }

.topic__desc {
	font-family: var(--serif);
	font-style: italic;
	color: var(--ink-2);
}

.topic__all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	font-size: .82rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--karmin);
	text-decoration: none;
	border-bottom: 2px solid currentColor;
	padding-bottom: 3px;
}

.topic__feature { grid-area: feature; }

.topic__list {
	grid-area: list;
	display: grid;
	gap: 22px;
}

.topic__list .mini {
	padding-bottom: 22px;
	border-bottom: 1px solid var(--line);
}

.topic__list .mini:last-child { border-bottom: 0; }

/* =========================================================================
   10. Tamsi juosta (skaitomiausi / archyvas)
   ====================================================================== */
.band {
	background: var(--band) var(--grain);
	color: var(--band-ink);
	padding-block: calc(clamp(56px, 7vw, 90px) + 40px) clamp(56px, 7vw, 90px);
	margin-top: clamp(48px, 7vw, 90px);
	clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
	--line: var(--band-line);
	--muted: var(--band-muted);
	--ink: var(--band-ink);
	--ink-2: var(--band-muted);
	--paper-2: #2a231e;
}

.band--slim { padding-block: calc(48px + 40px) 56px; margin-bottom: 0; }

.band + .cta { margin-top: clamp(40px, 6vw, 64px); }

.band__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: clamp(32px, 6vw, 80px);
}

.band__note {
	font-family: var(--serif);
	font-style: italic;
	color: var(--band-muted);
	margin-top: -6px;
}

.band__minis {
	display: grid;
	gap: 24px;
}

.band__minis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.band__minis--4 .mini { grid-template-columns: 1fr; }
.band__minis--4 .mini__media { aspect-ratio: 3 / 2; }

.band a:hover,
.band .mini:hover .mini__title a,
.band .row__title a:hover { color: var(--amber); }

.ranked--inv .row__n { -webkit-text-stroke-color: var(--amber); }
.ranked--inv .row:hover .row__n { color: var(--amber); }
.band .tag--plain { color: var(--amber); }

/* Kvietimas į archyvą */
.cta { margin-block: clamp(40px, 6vw, 72px); }

.cta__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 40px);
	border: 2px solid var(--ink);
	text-decoration: none;
	font: 700 clamp(1.5rem, 1rem + 2vw, 2.6rem)/1 var(--serif);
	clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
	position: relative;
	overflow: hidden;
	transition: color .3s;
	isolation: isolate;
}

.cta__btn::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--karmin);
	transform: translateX(-101%) skewX(-12deg);
	transform-origin: left;
	transition: transform .5s var(--ease);
	z-index: -1;
}

.cta__btn:hover { color: var(--on-karmin); }
.cta__btn:hover::before { transform: translateX(0) skewX(0); }

.cta__btn small {
	font: 500 .9rem/1.2 var(--sans);
	opacity: .75;
	margin-left: auto;
}

.cta__btn .icon { width: 1em; height: 1em; }

/* =========================================================================
   11. Sąrašai (archyvai, paieška)
   ====================================================================== */
.listing-head {
	isolation: isolate;
	padding-block: clamp(28px, 5vw, 56px) clamp(24px, 4vw, 40px);
	border-bottom: 1px solid var(--ink);
	position: relative;
	overflow: hidden;
}

.listing-head::after {
	content: "";
	position: absolute;
	right: -60px;
	top: 0;
	bottom: 0;
	width: min(36vw, 420px);
	background: var(--karmin);
	clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
	opacity: .95;
	z-index: -1;
}

.listing-head__kick {
	font: 800 .78rem/1 var(--sans);
	text-transform: uppercase;
	letter-spacing: .16em;
	color: var(--karmin);
	margin-bottom: 10px;
}

.listing-head__title {
	font-size: clamp(2.2rem, 1.4rem + 4vw, 4.6rem);
	line-height: .98;
	max-width: 18ch;
	margin-bottom: 14px;
}

.listing-head__desc {
	max-width: 62ch;
	font-family: var(--serif);
	font-size: 1.1rem;
	color: var(--ink-2);
}

.listing-head__count {
	margin: 0;
	font-size: .85rem;
	color: var(--muted);
	font-weight: 600;
}

.listing { padding-block: clamp(32px, 5vw, 56px); }

.empty {
	max-width: 720px;
	padding: 32px;
	background: var(--card);
	border-left: 7px solid var(--karmin);
	margin-bottom: 40px;
}

.empty__t { font: 700 1.6rem/1.2 var(--serif); }
.empty .sform { margin-block: 18px; }

/* Puslapiavimas */
.pager { margin-top: clamp(40px, 6vw, 64px); }

.pager ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.pager a,
.pager span {
	display: grid;
	place-items: center;
	min-width: 48px;
	height: 48px;
	padding: 0 10px;
	border: 1.5px solid var(--ink);
	text-decoration: none;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}

.pager a:hover { background: var(--ink); color: var(--paper); }
.pager .current { background: var(--karmin); border-color: var(--karmin); color: var(--on-karmin); }
.pager .dots { border-color: transparent; }

/* =========================================================================
   12. Straipsnis
   ====================================================================== */
.article__head {
	padding-top: clamp(24px, 4vw, 48px);
	text-align: left;
}

.article__head > .tag { margin-bottom: 18px; }

.article__title {
	font-size: clamp(2rem, 1.2rem + 3.6vw, 3.9rem);
	line-height: 1.04;
	letter-spacing: -.02em;
	margin-bottom: 20px;
}

.article__lead {
	font: italic 400 clamp(1.15rem, 1rem + .6vw, 1.45rem)/1.5 var(--serif);
	color: var(--ink-2);
	max-width: 60ch;
	padding-left: 20px;
	border-left: 3px solid var(--karmin);
}

.byline {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-block: 18px;
	margin-top: 22px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.mono {
	flex: none;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	background: var(--ink);
	color: var(--paper);
	font: 700 1.05rem/1 var(--serif);
	clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.byline__txt { display: flex; flex-direction: column; gap: 3px; }

.byline__author { font-weight: 750; text-decoration: none; }

.byline__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	font-size: .85rem;
	color: var(--muted);
}

.byline__rt { display: inline-flex; align-items: center; gap: 5px; }

.article__hero { margin: clamp(24px, 4vw, 40px) auto 0; }

.article__img { aspect-ratio: 16 / 9; --cut: 56px; }

.article__hero figcaption {
	font-size: .82rem;
	color: var(--muted);
	padding-top: 10px;
	max-width: 760px;
}

.article__body {
	display: grid;
	grid-template-columns: 230px minmax(0, 740px);
	justify-content: center;
	gap: clamp(32px, 5vw, 72px);
	margin-top: clamp(32px, 5vw, 56px);
}

.article--page .wrap--text { margin-top: clamp(24px, 4vw, 40px); }

.article__aside { position: relative; }

.article__sticky {
	position: sticky;
	top: 84px;
	display: grid;
	gap: 28px;
}

/* Turinio rodyklė */
.toc {
	border-top: 4px solid var(--ink);
	padding-top: 14px;
}

.toc__t {
	font: 800 .74rem/1 var(--sans);
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--karmin);
	cursor: pointer;
	list-style: none;
	margin-bottom: 12px;
}

.toc__t::-webkit-details-marker { display: none; }

.toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: toc;
	font-size: .88rem;
	line-height: 1.35;
}

.toc__list li { margin-bottom: 9px; }

.toc__list a {
	display: block;
	text-decoration: none;
	color: var(--muted);
	padding-left: 14px;
	border-left: 2px solid var(--line);
	transition: color .2s, border-color .2s;
}

.toc__l3 a { padding-left: 26px; font-size: .95em; }

.toc__list a:hover,
.toc__list a.is-active { color: var(--ink); border-left-color: var(--karmin); }

/* Dalinimasis */
.share {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.share__label {
	width: 100%;
	font: 800 .74rem/1 var(--sans);
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--muted);
	margin-bottom: 2px;
}

.share__btn {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1.5px solid var(--ink);
	background: transparent;
	cursor: pointer;
	position: relative;
	transition: background .2s, color .2s;
}

.share__btn:hover { background: var(--karmin); border-color: var(--karmin); color: var(--on-karmin); }

.share__btn.is-copied { background: var(--amber); border-color: var(--amber); color: #17120e; }

.share__btn.is-copied::after {
	content: attr(data-done);
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	background: var(--ink);
	color: var(--paper);
	font-size: .72rem;
	padding: 4px 8px;
	white-space: nowrap;
}

/* Straipsnio tekstas */
.entry-content {
	font-family: var(--serif);
	font-size: clamp(1.08rem, 1rem + .3vw, 1.2rem);
	line-height: 1.75;
	color: var(--ink);
	min-width: 0;
	overflow-wrap: break-word;
}

.entry-content > * { margin-block: 0 1.25em; }

.is-article .entry-content > p:first-of-type::first-letter {
	float: left;
	font-size: 4.4em;
	line-height: .82;
	font-weight: 700;
	color: var(--karmin);
	padding: .06em .1em 0 0;
	margin-top: .04em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.9em;
	margin-bottom: .6em;
	scroll-margin-top: 90px;
}

.entry-content h2 {
	font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.1rem);
	position: relative;
	padding-top: 18px;
}

.entry-content h2::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 22px;
	height: 22px;
	border-top: 4px solid var(--karmin);
	border-left: 4px solid var(--karmin);
	transform: translateY(-2px);
}

.entry-content h3 { font-size: clamp(1.28rem, 1.1rem + .6vw, 1.55rem); }
.entry-content h4 { font-size: 1.15rem; }

.entry-content a {
	color: var(--karmin);
	text-decoration-thickness: 2px;
	text-decoration-color: color-mix(in srgb, var(--karmin) 35%, transparent);
	transition: text-decoration-color .2s;
}

.entry-content a:hover { text-decoration-color: var(--karmin); }

.entry-content ul,
.entry-content ol { padding-left: 1.3em; }

.entry-content li { margin-bottom: .45em; }
.entry-content ul li::marker { color: var(--karmin); content: "◤  "; font-size: .7em; }
.entry-content ol li::marker { color: var(--karmin); font-weight: 700; }

.entry-content blockquote,
.entry-content .wp-block-quote {
	margin-inline: 0;
	padding: 6px 0 6px 28px;
	border-left: 4px solid var(--karmin);
	font-style: italic;
	font-size: 1.15em;
	color: var(--ink-2);
	position: relative;
}

.entry-content blockquote::before {
	content: "„";
	position: absolute;
	right: 0;
	top: -.35em;
	font-size: 5em;
	line-height: 1;
	color: var(--karmin);
	opacity: .18;
	font-style: normal;
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content cite,
.entry-content blockquote cite {
	display: block;
	font: 700 .8rem/1.4 var(--sans);
	font-style: normal;
	margin-top: 10px;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .08em;
}

.entry-content .wp-block-pullquote {
	border-block: 4px solid var(--ink);
	padding: 28px 0;
	text-align: center;
	font-size: 1.35em;
}

.entry-content .wp-block-pullquote blockquote { border: 0; padding: 0; }

.entry-content img { margin-inline: auto; }

.entry-content figure,
.entry-content .wp-caption { margin-inline: 0; max-width: 100%; }

.entry-content figcaption,
.entry-content .wp-caption-text,
.entry-content .wp-element-caption {
	font: 400 .82rem/1.5 var(--sans);
	color: var(--muted);
	margin-top: 8px;
	text-align: left;
}

.entry-content hr {
	border: 0;
	height: 12px;
	margin-block: 2.5em;
	background: linear-gradient(to top right, var(--karmin) 50%, transparent 50%) center / 12px 12px no-repeat;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font: .95rem/1.5 var(--sans);
	display: block;
	overflow-x: auto;
}

.entry-content th,
.entry-content td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { border-bottom: 2px solid var(--ink); }

.entry-content pre,
.entry-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .88em;
	background: var(--paper-2);
}

.entry-content pre { padding: 16px; overflow-x: auto; }
.entry-content code { padding: .1em .3em; }

.entry-content iframe { width: 100%; }

.alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.aligncenter { margin-inline: auto; display: block; }

@media (min-width: 1100px) {
	.entry-content .alignwide { margin-inline: -80px; max-width: none; width: calc(100% + 160px); }
}

.entry-content .alignfull { width: 100%; }

.entry-content::after { content: ""; display: table; clear: both; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery-item { margin: 0; }

/* Įterptas „Taip pat skaitykite“ */
.inline-read {
	position: relative;
	margin-block: 2em !important;
	padding: 20px 24px 20px 28px;
	background: var(--card);
	border-left: 7px solid var(--karmin);
	box-shadow: var(--shadow);
	clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.inline-read__k {
	display: block;
	font: 800 .72rem/1 var(--sans);
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--karmin);
	margin-bottom: 8px;
}

.entry-content .inline-read a {
	font: 700 1.2rem/1.3 var(--serif);
	color: var(--ink);
	text-decoration: none;
}

.entry-content .inline-read a::after { content: " →"; color: var(--karmin); }
.entry-content .inline-read a:hover { color: var(--karmin); }

.page-links { font-family: var(--sans); display: flex; gap: 8px; }

/* Straipsnio pabaiga */
.article__foot {
	margin-top: clamp(24px, 4vw, 40px);
	display: grid;
	gap: 28px;
}

.endmark { display: flex; justify-content: center; }
.endmark .brand__mark .m-bg { fill: var(--karmin); }
.endmark .brand__mark .m-fold { fill: var(--amber); }
.endmark .brand__mark .m-k { fill: var(--on-karmin); }

.article__foot .share { justify-content: center; }
.article__foot .share__label { text-align: center; }

.author-box {
	display: flex;
	gap: 18px;
	padding: 24px;
	background: var(--card);
	border-top: 4px solid var(--ink);
}

.author-box .mono { width: 64px; height: 64px; font-size: 1.35rem; }
.author-box__k { font: 800 .7rem/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--karmin); margin-bottom: 6px; }
.author-box__name { font: 700 1.25rem/1.2 var(--serif); margin-bottom: 6px; }
.author-box__name a { text-decoration: none; }
.author-box__bio { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Ankstesnis / kitas */
.pn {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: clamp(40px, 6vw, 72px);
}

.pn__item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 24px;
	border: 1.5px solid var(--ink);
	text-decoration: none;
	transition: background .25s, color .25s;
}

.pn__item--prev { clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.pn__item--next { grid-column: 2; text-align: right; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.pn__item--next .pn__k { justify-content: flex-end; }

.pn__k {
	display: flex;
	align-items: center;
	gap: 6px;
	font: 800 .74rem/1 var(--sans);
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--karmin);
}

.pn__t { font: 700 1.2rem/1.25 var(--serif); }

.pn__item:hover { background: var(--ink); color: var(--paper); }
.pn__item:hover .pn__k { color: var(--amber); }

/* =========================================================================
   13. 404
   ====================================================================== */
.nf {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(24px, 5vw, 72px);
	align-items: center;
	padding-block: clamp(40px, 7vw, 90px) 0;
}

.nf__code {
	margin: 0;
	font: 700 clamp(7rem, 4rem + 14vw, 16rem)/.8 var(--serif);
	color: transparent;
	-webkit-text-stroke: 3px var(--karmin);
	letter-spacing: -.04em;
}

.nf__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.nf__txt > p { font-family: var(--serif); font-size: 1.15rem; color: var(--ink-2); max-width: 50ch; }
.nf .sform { margin-block: 22px; }

/* =========================================================================
   14. Poraštė
   ====================================================================== */
.footer {
	position: relative;
	background: var(--band) var(--grain);
	color: var(--band-ink);
	margin-top: clamp(64px, 9vw, 120px);
	padding-top: clamp(80px, 9vw, 120px);
	overflow: hidden;
	clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 100%);
	--line: var(--band-line);
	--muted: var(--band-muted);
}

.site-main:has(> .band:last-child) + .footer { margin-top: 0; clip-path: none; padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--band-line); }

.footer__giant {
	position: absolute;
	right: -.04em;
	top: 10px;
	margin: 0;
	font: italic 700 clamp(4rem, 13vw, 13rem)/1 var(--serif);
	color: transparent;
	-webkit-text-stroke: 1px rgba(242, 234, 221, .12);
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
}

.footer__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.3fr .9fr;
	gap: clamp(28px, 4vw, 56px);
	padding-bottom: 48px;
}

.footer__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	font: 700 1.25rem/1.15 var(--serif);
	margin-bottom: 16px;
	max-width: 24ch;
}

.footer__brand:hover { color: var(--amber); }

.footer__about p { color: var(--band-muted); font-size: .95rem; max-width: 42ch; }

.footer__social {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	font-weight: 700;
	text-decoration: none;
	border: 1.5px solid var(--band-ink);
	padding: 8px 14px;
}

.footer__social:hover { background: var(--band-ink); color: var(--band); }

.footer__h {
	font: 800 .76rem/1 var(--sans);
	text-transform: uppercase;
	letter-spacing: .16em;
	color: var(--amber);
	margin-bottom: 18px;
}

.footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: .93rem;
}

.footer__list li {
	padding: 7px 0;
	border-bottom: 1px solid var(--band-line);
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.footer__list a { text-decoration: none; color: var(--band-ink); }
.footer__list a:hover { color: var(--amber); }
.footer__list--posts a { font-family: var(--serif); line-height: 1.35; }
.footer__count { color: var(--band-muted); font-variant-numeric: tabular-nums; font-size: .82rem; }

.footer__bottom {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	padding-block: 22px 28px;
	border-top: 1px solid var(--band-line);
	font-size: .82rem;
	color: var(--band-muted);
}

.footer__bottom p { margin: 0; }
.footer__sig { font-family: var(--serif); font-style: italic; }

/* =========================================================================
   15. Mygtukas „į viršų“
   ====================================================================== */
.totop {
	position: fixed;
	right: clamp(14px, 3vw, 28px);
	bottom: clamp(14px, 3vw, 28px);
	z-index: 90;
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	border: 0;
	background: var(--karmin);
	color: var(--on-karmin);
	cursor: pointer;
	clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	transition: opacity .3s, transform .3s var(--ease), visibility .3s, background .2s;
	box-shadow: var(--shadow);
}

.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--ink); color: var(--paper); }
.totop .icon { width: 22px; height: 22px; position: relative; transition: transform .25s var(--ease); }
.totop:hover .icon { transform: translateY(-3px); }

.totop__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.totop__track,
.totop__fill { fill: none; stroke-width: 3; }
.totop__track { stroke: rgba(255, 255, 255, .18); }

.totop__fill {
	stroke: var(--amber);
	stroke-dasharray: 100;
	stroke-dashoffset: calc(100 - var(--sp, 0) * 100);
}

/* =========================================================================
   16. Prisitaikymas
   ====================================================================== */
@media (max-width: 1100px) {
	.masthead__claim { display: none; }
	.masthead__in { grid-template-columns: 1fr auto; }

	.topic,
	.topic--flip {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
		grid-template-areas: "head head" "feature list";
	}

	.topic__head {
		position: static;
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: end;
		gap: 4px 20px;
	}

	.topic__no { grid-row: span 2; margin: 0; }
	.topic__title { margin: 0; }
	.topic__desc { grid-column: 2; margin: 0; }
	.topic__all { grid-column: 3; grid-row: 1 / span 2; align-self: end; }

	.footer__grid { grid-template-columns: 1fr 1fr; }

	.article__body { grid-template-columns: minmax(0, 740px); }
	.article__aside { order: -1; }
	.article__sticky { position: static; }
	.article__aside .share { display: none; }
	.toc { background: var(--card); padding: 16px 18px; }
}

@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--listing .card--wide { grid-row: auto; }
	.card--wide .card__media { aspect-ratio: 16 / 9; min-height: 0; flex: none; }
	.band__grid { grid-template-columns: 1fr; }
	.band__minis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nf { grid-template-columns: 1fr; }
	.listing-head::after { opacity: .9; width: 30vw; }
}

@media (max-width: 700px) {
	:root { --cut: 20px; }
	.topbar__date { display: none; }
	.topbar__in { gap: 0; }
	.masthead__in { padding-block: 14px 12px; gap: 12px; }
	.brand { gap: 10px; }
	.brand__mark { width: 40px; height: 40px; }
	.tool { width: 40px; height: 40px; }
	.nav__list a { padding: 12px 11px; font-size: .88rem; }

	.lead__body { margin: -48px 10px 0; }
	.lead__media { --cut: 30px; }

	.grid { grid-template-columns: 1fr; }
	.grid--listing .card--wide { grid-column: auto; }

	.topic,
	.topic--flip { grid-template-columns: 1fr; grid-template-areas: "head" "feature" "list"; }
	.topic__head { grid-template-columns: auto 1fr; }
	.topic__all { grid-column: 1 / -1; grid-row: auto; justify-self: start; margin-top: 10px; }
	.topic__no { font-size: 3.6rem; }

	.mini { grid-template-columns: 92px 1fr; gap: 14px; }

	.band { clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%); padding-top: calc(56px + 24px); }
	.band__minis--4 { grid-template-columns: 1fr; }
	.band__minis--4 .mini { grid-template-columns: 92px 1fr; }
	.band__minis--4 .mini__media { aspect-ratio: 1; }

	.cta__btn { flex-wrap: wrap; }
	.cta__btn small { margin-left: 0; width: 100%; order: 3; }

	.footer { clip-path: polygon(0 0, 100% 24px, 100% 100%, 0 100%); }
	.footer__grid { grid-template-columns: 1fr; }

	.listing-head::after { display: none; }

	.pn { grid-template-columns: 1fr; }
	.pn__item--next { grid-column: auto; }

	.byline__upd { display: none; }
	.article__img { --cut: 30px; }
	.alignleft,
	.alignright { float: none; margin: 0 0 1em; max-width: 100%; }
	.crumbs [aria-current] { max-width: 24ch; }
}

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

/* =========================================================================
   17. Spausdinimas
   ====================================================================== */
@media print {
	.topbar,
	.nav,
	.masthead__tools,
	.search-panel,
	.article__aside,
	.share,
	.pn,
	.band,
	.block,
	.footer,
	.totop,
	.progress,
	.inline-read { display: none !important; }

	body { background: #fff; color: #000; }
	.thumb { clip-path: none; }
	.thumb::after { display: none; }
	.article__body { display: block; }
	.entry-content a::after { content: " (" attr(href) ")"; font-size: .8em; }
}

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