/*
Theme Name: Šančiai
Theme URI: https://sanciai.lt/
Author: sanciai.lt
Description: Kauno naujienų portalo tema, įkvėpta tarpukario Kauno modernizmo ir Nemuno. Veikia be papildomų įskiepių: SEO meta žymos, Open Graph, NewsArticle struktūriniai duomenys, Google News žemėlapis, skaitomiausių skaitiklis, „Rodyti daugiau“, straipsnio turinys, skaitymo progresas, tamsus režimas, peradresavimai. Jokių formų lankytojams.
Version: 1.0.0
Requires at least: 6.4
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: sanciai
Tags: news, blog, two-columns, custom-menu, custom-logo, featured-images, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. Kintamieji
   ========================================================================== */
:root {
	--paper: #F3EEE4;
	--paper-2: #EAE2D3;
	--card: #FBF8F2;
	--ink: #15181C;
	--ink-2: #3B4047;
	--muted: #686C70;
	--rule: #D6CCBB;
	--brick: #B5432B;
	--river: #0D5C63;
	--sun: #E3A72F;
	--on-dark: #F3EEE4;
	--band: #15181C;

	--c1: #B5432B;
	--c2: #0D5C63;
	--c3: #7B3F75;
	--c4: #3F6B2A;
	--c5: #9A5A12;
	--c6: #24508F;
	--cat: var(--brick);

	--f-display: "Anton", "Impact", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
	--f-head: "Bitter", "Rockwell", "Georgia", serif;
	--f-ui: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1320px;
	--gut: clamp(1rem, 3.2vw, 2rem);
	--gap: clamp(1.25rem, 2.4vw, 2rem);
	--head-h: 72px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: light;
}

[data-theme="dark"] {
	--paper: #0F1315;
	--paper-2: #161C1F;
	--card: #151A1D;
	--ink: #ECE6DA;
	--ink-2: #C8C1B4;
	--muted: #969389;
	--rule: #2A3236;
	--brick: #E5715A;
	--river: #52B5BB;
	--band: #080A0B;
	--c1: #E5715A;
	--c2: #52B5BB;
	--c3: #C98BC0;
	--c4: #8FC06C;
	--c5: #E3A72F;
	--c6: #86A9E8;
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #0F1315;
		--paper-2: #161C1F;
		--card: #151A1D;
		--ink: #ECE6DA;
		--ink-2: #C8C1B4;
		--muted: #969389;
		--rule: #2A3236;
		--brick: #E5715A;
		--river: #52B5BB;
		--band: #080A0B;
		--c1: #E5715A;
		--c2: #52B5BB;
		--c3: #C98BC0;
		--c4: #8FC06C;
		--c5: #E3A72F;
		--c6: #86A9E8;
		color-scheme: dark;
	}
}

.cat-1 { --cat: var(--c1); }
.cat-2 { --cat: var(--c2); }
.cat-3 { --cat: var(--c3); }
.cat-4 { --cat: var(--c4); }
.cat-5 { --cat: var(--c5); }
.cat-6 { --cat: var(--c6); }

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--head-h) + 1rem);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1rem/1.55 var(--f-ui);
	font-kerning: normal;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

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(--cat); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--f-head); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

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

::selection { background: var(--sun); color: #15181C; }

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

.sr-only {
	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: 1rem; top: -100px;
	z-index: 1000;
	padding: .75rem 1rem;
	background: var(--sun);
	color: #15181C;
	font-weight: 700;
	text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.site-main { display: block; outline: none; padding-bottom: clamp(3rem, 6vw, 5rem); }

.icon { flex: none; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 46px;
	padding: .7rem 1.35rem;
	border: 2px solid var(--ink);
	background: var(--ink);
	color: var(--paper);
	font: 700 .9rem/1 var(--f-ui);
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { color: var(--paper); background: var(--brick); border-color: var(--brick); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: var(--paper); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px; height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.icon-btn .icon { width: 24px; height: 24px; }

/* ==========================================================================
   3. Viršutinė juosta
   ========================================================================== */
.topbar {
	background: var(--band);
	color: var(--on-dark);
	font-size: .8125rem;
}
.topbar__in {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-height: 38px;
}
.topbar p { margin: 0; }
.topbar__date { font-weight: 700; letter-spacing: .02em; }
.topbar__sun { display: flex; align-items: center; gap: .4rem; opacity: .82; }
.topbar__sun .icon { width: 16px; height: 16px; color: var(--sun); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.social { display: flex; gap: .25rem; list-style: none; }
.social a { display: grid; place-items: center; width: 32px; height: 32px; color: inherit; opacity: .8; }
.social a:hover { opacity: 1; color: var(--sun); }
.social .icon { width: 16px; height: 16px; }
.theme-toggle {
	display: grid; place-items: center;
	width: 34px; height: 30px;
	padding: 0;
	border: 1px solid rgba(243, 238, 228, .3);
	background: transparent;
	color: var(--on-dark);
	cursor: pointer;
}
.theme-toggle:hover { border-color: var(--sun); color: var(--sun); }
.theme-toggle .icon { width: 16px; height: 16px; }
.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: 640px) {
	.topbar__len, .topbar__sun > span:first-of-type { display: none; }
	.topbar__in { gap: .75rem; }
	.social { display: none; }
}

/* ==========================================================================
   4. Antraštė (masthead)
   ========================================================================== */
.masthead {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
	box-shadow: inset 0 -4px 0 var(--ink);
	transition: box-shadow .25s;
}
.admin-bar .masthead { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .masthead { top: 0; } }

.masthead__in {
	display: flex;
	align-items: center;
	gap: clamp(.75rem, 2vw, 2rem);
	min-height: var(--head-h);
	padding-block: .75rem;
	transition: min-height .25s var(--ease), padding .25s var(--ease);
}

.brand { margin: 0; font-size: 1rem; line-height: 0; flex: none; }
.brand a { display: block; color: var(--ink); }
.brand .logo, .brand .brand__img { height: 52px; width: auto; transition: height .25s var(--ease); }
.logo__tag { fill: var(--brick); }

.is-stuck .masthead { box-shadow: inset 0 -3px 0 var(--ink), 0 8px 24px -16px rgba(0, 0, 0, .45); }
.is-stuck .masthead__in { min-height: 58px; padding-block: .4rem; }
.is-stuck .brand .logo, .is-stuck .brand .brand__img { height: 40px; }

.nav { flex: 1; min-width: 0; }
.nav__list, .nav .menu { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav li { flex: none; }
.nav a {
	position: relative;
	display: block;
	padding: .6rem .7rem;
	font: 700 .8125rem/1 var(--f-ui);
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
}
.nav a::after {
	content: "";
	position: absolute;
	left: .7rem; right: .7rem; bottom: .15rem;
	height: 3px;
	background: var(--cat, var(--brick));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav .is-current a::after, .nav .current-menu-item a::after, .nav a[aria-current]::after { transform: scaleX(1); }

.search-toggle { margin-left: auto; }
.menu-toggle { display: none; }
.menu-toggle .icon--close, .menu-toggle[aria-expanded="true"] .icon--menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (min-width: 1000px) {
	.nav { overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); }
	.nav::-webkit-scrollbar { display: none; }
	.search-toggle { margin-left: 0; }
}

@media (max-width: 999px) {
	:root { --head-h: 60px; }
	.menu-toggle { display: inline-grid; margin-left: -10px; }
	.brand .logo, .brand .brand__img { height: 40px; }
	.is-stuck .brand .logo { height: 34px; }
	.masthead__in { min-height: var(--head-h); padding-block: .5rem; }
	.nav {
		position: fixed;
		inset: 0 auto 0 0;
		z-index: 90;
		width: min(86vw, 380px);
		padding: 5rem 1.5rem 2rem;
		background: var(--paper);
		border-right: 4px solid var(--ink);
		overflow-y: auto;
		transform: translateX(-105%);
		transition: transform .3s var(--ease);
		visibility: hidden;
	}
	.nav.is-open { transform: none; visibility: visible; }
	.nav__list, .nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nav a {
		padding: 1rem 0 1rem 1.25rem;
		border-bottom: 1px solid var(--rule);
		font: 700 1.25rem/1.2 var(--f-head);
		letter-spacing: 0;
		text-transform: none;
	}
	.nav a::after { left: 0; right: auto; top: 1.1rem; bottom: 1.1rem; width: 6px; height: auto; transform: none; }
	body.menu-open { overflow: hidden; }
	.menu-open .masthead { z-index: 100; }
	body.menu-open::after {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 80;
		background: rgba(10, 12, 14, .55);
	}
	.menu-open .menu-toggle { position: fixed; top: 1rem; left: 1.25rem; z-index: 95; }
}

/* Paieška */
.search-panel {
	border-top: 1px solid var(--rule);
	background: var(--paper-2);
	padding-block: 1rem;
}
.search-panel[hidden] { display: none; }
.search-form {
	position: relative;
	display: flex;
	align-items: center;
	gap: .5rem;
	max-width: 760px;
	margin: 0 auto;
	border-bottom: 3px solid var(--ink);
}
.search-form > .icon { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search-form__input {
	flex: 1;
	min-width: 0;
	padding: .85rem .25rem;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: 600 clamp(1.1rem, 2.2vw, 1.4rem)/1.2 var(--f-head);
	outline: none;
}
.search-form__input::placeholder { color: var(--muted); font-weight: 400; }
.search-form .btn { min-height: 40px; padding: .55rem 1rem; }

/* Naujienų juosta */
.ticker {
	background: var(--river);
	color: #F3EEE4;
	font-size: .875rem;
	overflow: hidden;
}
[data-theme="dark"] .ticker { background: #0B3A3E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ticker { background: #0B3A3E; } }
.ticker__in { display: flex; align-items: stretch; min-height: 40px; padding-inline: 0; }
.ticker__label {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex: none;
	padding: 0 1rem 0 var(--gut);
	background: var(--sun);
	color: #15181C;
	font: 400 1rem/1 var(--f-display);
	letter-spacing: .06em;
	text-transform: uppercase;
	clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
	padding-right: 1.4rem;
}
.ticker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brick); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(181, 67, 43, .7); } 70% { box-shadow: 0 0 0 8px rgba(181, 67, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(181, 67, 43, 0); } }
.ticker__viewport { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; list-style: none; }
.ticker__list li { display: flex; align-items: center; }
.ticker__list a {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .55rem 1.5rem;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}
.ticker__list li + li a::before, .ticker__list li:first-child a::before { content: ""; width: 6px; height: 6px; background: var(--sun); transform: rotate(45deg); margin-right: .9rem; }
.ticker__list time { opacity: .7; font-size: .8em; font-weight: 700; }
.ticker__list a:hover .ticker__title { text-decoration: underline; }
@keyframes 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. Sekcijų antraštės, kicker
   ========================================================================== */
.sec-head {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	margin: 0 0 1.5rem;
	padding-top: .85rem;
	border-top: 4px solid var(--ink);
}
.sec-head__title {
	display: flex;
	align-items: center;
	gap: .65rem;
	font: 400 clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem)/1 var(--f-display);
	letter-spacing: .02em;
	text-transform: uppercase;
}
.sec-head__title a { text-decoration: none; }
.sec-head__sq { width: .62em; height: .62em; background: var(--cat, var(--brick)); flex: none; }
.sec-head__count { color: var(--muted); font-size: .85rem; }
.sec-head__more {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font: 700 .8rem/1 var(--f-ui);
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}
.sec-head__more .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.sec-head__more:hover .icon { transform: translateX(4px); }

.kicker {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin-bottom: .55rem;
	color: var(--cat);
	font: 700 .72rem/1.2 var(--f-ui);
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
}
.kicker::before { content: ""; width: 8px; height: 8px; background: var(--cat); flex: none; }
.kicker:hover { color: var(--ink); }

/* ==========================================================================
   6. Kortelės
   ========================================================================== */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media { display: block; order: -1; margin-bottom: .9rem; }
.thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--paper-2);
}
.thumb__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.card:hover .thumb__img { transform: scale(1.045); }
.thumb--ph {
	display: grid;
	place-items: center;
	background:
		repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255, 255, 255, .08) 14px 28px),
		var(--cat);
}
.thumb--ph .mark { width: 22%; max-width: 72px; height: auto; box-shadow: 6px 6px 0 rgba(0, 0, 0, .18); }

.card__title { font-size: 1.2rem; line-height: 1.22; font-weight: 700; }
.card__title a {
	text-decoration: none;
	background: linear-gradient(var(--cat), var(--cat)) 0 100% / 0 2px no-repeat;
	transition: background-size .35s var(--ease);
}
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__title a { background-size: 100% 2px; color: inherit; }
.card__excerpt { margin: .6rem 0 0; color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem .9rem;
	margin-top: .7rem;
	color: var(--muted);
	font-size: .8rem;
}
.card__read { display: inline-flex; align-items: center; gap: .3rem; }
.card__read .icon { width: 14px; height: 14px; }

/* Pagrindinė */
.card--lead .card__media { margin-bottom: 1.25rem; }
.card--lead .thumb { aspect-ratio: 16 / 9.5; box-shadow: 14px 14px 0 var(--cat); }
.card--lead .card__title { font-size: clamp(1.75rem, 1rem + 2.4vw, 3.05rem); line-height: 1.07; letter-spacing: -.02em; font-weight: 800; }
.card--lead .card__title a { background-size: 0 4px; }
.card--lead:hover .card__title a { background-size: 100% 4px; }
.card--lead .card__excerpt { font: 400 1.1rem/1.6 var(--f-head); max-width: 62ch; }
.card--lead .card__body { padding-right: 14px; }

/* Eilutė */
.card--row { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 1rem; align-items: start; padding-block: 1rem; border-top: 1px solid var(--rule); }
.card--row .card__media { order: 2; margin: 0; }
.card--row .thumb { aspect-ratio: 1; }
.card--row .card__title { font-size: 1.02rem; line-height: 1.28; }
.card--row .kicker { margin-bottom: .35rem; }
.card--row .card__meta { margin-top: .45rem; }
.card--row .card__num { position: absolute; left: 0; top: .85rem; }
.card--row:has(.card__num) .card__body { padding-left: 3.6rem; }
.card--row .card__num { font-size: 2.5rem; top: 1rem; }

/* Numeruota */
.card__num {
	font: 400 2.6rem/1 var(--f-display);
	color: transparent;
	-webkit-text-stroke: 1.5px var(--cat);
	letter-spacing: -.01em;
}
.card--num { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; align-items: start; }
.card--num .card__num { font-size: 3.4rem; margin-top: -.15rem; }
.card--num .card__title { font-size: 1.02rem; line-height: 1.3; }
.card--num .card__meta { margin-top: .4rem; }

/* Ant nuotraukos */
.card--over { min-height: 380px; justify-content: flex-end; color: #F3EEE4; isolation: isolate; }
.card--over .card__media { position: absolute; inset: 0; margin: 0; z-index: -1; }
.card--over .thumb { height: 100%; aspect-ratio: auto; }
.card--over .card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 14, 0) 25%, rgba(10, 12, 14, .88) 92%); }
.card--over .card__body { padding: 1.5rem; }
.card--over .kicker { color: #F3EEE4; }
.card--over .kicker::before { background: var(--sun); }
.card--over .card__title { font-size: 1.45rem; }
.card--over .card__meta { color: rgba(243, 238, 228, .78); }
.card--over:hover .card__title a { color: #F3EEE4; }

/* ==========================================================================
   7. Tinkleliai
   ========================================================================== */
.grid { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem) var(--gap); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid__wide { grid-column: span 2; }
.grid--list .grid__wide + .card { align-self: start; }
@media (max-width: 1000px) {
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid__wide { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
	.grid--3 { grid-template-columns: minmax(0, 1fr); }
	.grid--3 > .card--std { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: .9rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
	.grid--3 > .card--std .card__media { order: 2; margin: 0; }
	.grid--3 > .card--std .thumb { aspect-ratio: 1; }
	.grid--3 > .card--std .card__excerpt { display: none; }
	.grid--3 > .card--std .card__title { font-size: 1.05rem; }
	.grid { gap: 1.25rem; }
}

/* ==========================================================================
   8. Pradžios puslapis
   ========================================================================== */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	padding-block: clamp(1.5rem, 3.5vw, 2.75rem) clamp(2.5rem, 5vw, 4rem);
}
.hero__side-title {
	margin: 0 0 .25rem;
	font: 400 1.25rem/1 var(--f-display);
	letter-spacing: .04em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: .75rem;
}
.hero__side-title::after { content: ""; flex: 1; height: 4px; background: var(--ink); }
.hero__side .card--row:first-of-type { border-top: 0; }
@media (max-width: 900px) {
	.hero { grid-template-columns: minmax(0, 1fr); }
	.card--lead .thumb { box-shadow: 8px 8px 0 var(--cat); }
}

.stream { padding-bottom: clamp(2.5rem, 5vw, 4rem); }

.popular {
	position: relative;
	padding-block: clamp(2.25rem, 4vw, 3.25rem);
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
	background: var(--paper-2);
}
.popular .sec-head { border-top-color: transparent; padding-top: 0; }
.popular__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); list-style: none; counter-reset: none; }
.popular__list > li { padding-top: 1rem; border-top: 2px solid var(--ink); }
@media (max-width: 1100px) {
	.popular__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; scrollbar-width: thin; }
	.popular__list > li { scroll-snap-align: start; }
}

.home-banner { margin-bottom: 3rem; }
.popular--article { margin: clamp(3rem, 6vw, 4.5rem) 0 0; }
.widgets--wide { margin-top: 2rem; }

.cat-block { margin-bottom: clamp(2.75rem, 5vw, 4.25rem); }
.cat-block .sec-head { border-top-color: var(--cat); }
.cat-block .sec-head__title a:hover { color: var(--cat); }
.cat-block--feature .cat-block__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	grid-template-rows: repeat(3, auto);
	column-gap: var(--gap);
}
.cat-block--feature .card--std { grid-row: 1 / span 3; }
.cat-block--feature .card--std .card__title { font-size: clamp(1.35rem, 1rem + 1vw, 1.8rem); }
.cat-block--feature .card--row:nth-child(2) { border-top: 0; padding-top: 0; }
.cat-block--quad .cat-block__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 900px) {
	.cat-block--feature .cat-block__grid { grid-template-columns: minmax(0, 1fr); }
	.cat-block--feature .card--std { grid-row: auto; margin-bottom: .5rem; }
	.cat-block--feature .card--row:nth-child(2) { border-top: 1px solid var(--rule); padding-top: 1rem; }
	.cat-block--quad .cat-block__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
	.cat-block--quad .cat-block__grid { grid-template-columns: minmax(0, 1fr); }
}

.vault {
	position: relative;
	margin-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 5vw, 4.5rem);
	padding-block: clamp(3rem, 6vw, 5rem);
	background: var(--band);
	color: #F3EEE4;
}
.vault::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: -14px;
	height: 16px;
	background: radial-gradient(circle at 10px -2px, transparent 12px, var(--band) 13px) 0 0 / 20px 16px repeat-x;
}
.vault__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; margin-bottom: 2rem; }
.vault__title { font: 400 clamp(2.4rem, 1.5rem + 3.5vw, 4.5rem)/.95 var(--f-display); text-transform: uppercase; letter-spacing: .01em; color: var(--sun); }
.vault__sub { margin: 0; max-width: 40ch; opacity: .8; font-family: var(--f-head); font-style: italic; }
.vault__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.vault__grid .card:nth-child(2) { transform: translateY(2rem); }
@media (max-width: 900px) {
	.vault__grid { grid-template-columns: minmax(0, 1fr); }
	.vault__grid .card:nth-child(2) { transform: none; }
	.card--over { min-height: 300px; }
}

.topics { margin-top: 1rem; }
.topics__list { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; }
.topics__list a {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	padding: .6rem .9rem .6rem .75rem;
	border: 1.5px solid var(--ink);
	border-left: 8px solid var(--cat);
	background: var(--card);
	font-weight: 700;
	font-size: .9rem;
	text-decoration: none;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.topics__list a:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--cat); }
.topics__list small { color: var(--muted); font-weight: 500; font-size: .78rem; }

/* Daugiau / puslapiavimas */
.more { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }
.btn--more .icon { width: 18px; height: 18px; }
.pager { margin-top: 2rem; }
.js .more + .pager.is-hidden { display: none; }
.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; list-style: none; }
.pager a, .pager span {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 .6rem;
	border: 1.5px solid var(--rule);
	font-weight: 700;
	text-decoration: none;
}
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager .dots { border: 0; }
.pager .icon { width: 18px; height: 18px; }

/* ==========================================================================
   9. Archyvų antraštė
   ========================================================================== */
.page-head {
	position: relative;
	margin-bottom: clamp(2rem, 4vw, 3rem);
	padding-block: clamp(1.5rem, 3vw, 2.25rem) clamp(1.75rem, 3.5vw, 2.75rem);
	background: var(--paper-2);
	border-bottom: 4px solid var(--cat, var(--ink));
	overflow: hidden;
}
.page-head::after {
	content: "";
	position: absolute;
	right: -40px; bottom: -60px;
	width: 260px; height: 260px;
	border: 34px solid var(--cat, var(--brick));
	border-radius: 50% 50% 0 0;
	opacity: .12;
	pointer-events: none;
}
.page-head__kicker { margin: 1.25rem 0 .35rem; color: var(--cat, var(--brick)); font: 700 .78rem/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; }
.page-head__title { font: 400 clamp(2.4rem, 1.4rem + 4vw, 4.75rem)/.95 var(--f-display); text-transform: uppercase; letter-spacing: .005em; word-break: break-word; }
.page-head__desc { max-width: 70ch; margin-top: 1rem; color: var(--ink-2); font: 400 1.075rem/1.6 var(--f-head); }
.page-head__desc p:last-child { margin: 0; }
.page-head__count { margin: 1rem 0 0; color: var(--muted); font-size: .9rem; font-weight: 700; }
.page-head__search { margin-top: 1.25rem; max-width: 640px; }
.page-head__search .search-form { margin: 0; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; font-size: .8125rem; color: var(--muted); }
.crumbs li { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; 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; color: var(--ink); }
.crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

.empty { padding-block: 1rem 2rem; }
.empty__text { font: 400 1.2rem/1.6 var(--f-head); max-width: 60ch; }
.empty__search { margin: 1.5rem 0 3rem; }
.empty__search .search-form { margin: 0; }

/* ==========================================================================
   10. Straipsnis
   ========================================================================== */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 4px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--cat), var(--sun)); transform-origin: 0 50%; transform: scaleX(0); }

.article__head { max-width: 980px; padding-top: clamp(1.25rem, 3vw, 2rem); text-align: left; }
.article__head .crumbs { margin-bottom: 1.5rem; }
.article__head .kicker { font-size: .8rem; }
.article__title { font-size: clamp(2rem, 1.1rem + 3.4vw, 3.6rem); line-height: 1.06; letter-spacing: -.022em; font-weight: 800; margin-bottom: 1.1rem; }
.article__dek { max-width: 62ch; color: var(--ink-2); font: 400 clamp(1.1rem, 1rem + .4vw, 1.3rem)/1.55 var(--f-head); }
.article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem 1.5rem;
	margin-top: 1.5rem;
	padding-block: .9rem;
	border-block: 1px solid var(--rule);
	color: var(--muted);
	font-size: .875rem;
}
.article__author { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 700; }
.article__author a { text-decoration: none; }
.mark--sm { width: 28px; height: 28px; }
.article__updated { margin-left: .6rem; padding-left: .6rem; border-left: 1px solid var(--rule); }
.article__read { display: inline-flex; align-items: center; gap: .35rem; }
.article__read .icon { width: 16px; height: 16px; }

.article__hero { max-width: 1180px; margin: clamp(1.5rem, 3vw, 2.25rem) auto 0; }
.article__img { width: 100%; max-height: 72vh; object-fit: cover; box-shadow: 14px 14px 0 var(--cat); }
.article__hero figcaption { margin-top: 1.4rem; color: var(--muted); font-size: .85rem; }

.article__layout {
	display: grid;
	grid-template-columns: minmax(0, 720px) 300px;
	justify-content: center;
	gap: clamp(2rem, 5vw, 4.5rem);
	margin-top: clamp(2rem, 4vw, 3rem);
}
.article__layout--single { grid-template-columns: minmax(0, 760px); }
.article__aside { display: flex; flex-direction: column; gap: 2.25rem; }
.article__sticky { position: sticky; top: calc(var(--head-h) + 1.25rem); display: flex; flex-direction: column; gap: 1.5rem; }
.admin-bar .article__sticky { top: calc(var(--head-h) + 1.25rem + 32px); }
.toc--inline { display: none; }

@media (max-width: 1060px) {
	.article__layout { grid-template-columns: minmax(0, 720px); }
	.article__aside { display: none; }
	.toc--inline { display: block; }
}

/* Turinys (TOC) */
.toc__title { margin: 0 0 .75rem; font: 400 1.1rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .05em; }
.toc__list { list-style: none; counter-reset: toc; border-left: 2px solid var(--rule); }
.toc__item a {
	display: block;
	margin-left: -2px;
	padding: .4rem 0 .4rem .9rem;
	border-left: 2px solid transparent;
	color: var(--ink-2);
	font-size: .9rem;
	line-height: 1.35;
	text-decoration: none;
	transition: color .2s, border-color .2s;
}
.toc__item--h3 a { padding-left: 1.75rem; font-size: .84rem; }
.toc__item a:hover { color: var(--ink); }
.toc__item a.is-active { border-left-color: var(--cat); color: var(--ink); font-weight: 700; }
.toc--inline { margin-bottom: 2rem; border: 1.5px solid var(--ink); background: var(--card); }
.toc--inline summary { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem; cursor: pointer; font-weight: 700; list-style: none; }
.toc--inline summary::-webkit-details-marker { display: none; }
.toc--inline summary .icon { width: 18px; height: 18px; color: var(--cat); }
.toc__count { margin-left: auto; display: grid; place-items: center; min-width: 26px; height: 26px; background: var(--cat); color: #fff; font-size: .78rem; }
.toc--inline .toc__list { margin: 0 1.1rem 1rem; }

/* Bendrinimas */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.share__label { margin-right: .4rem; font: 700 .75rem/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.share__btn {
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	padding: 0;
	border: 1.5px solid var(--ink);
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background .2s, color .2s, transform .2s var(--ease);
}
.share__btn .icon { width: 18px; height: 18px; }
.share__btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.share--side .share__label { width: 100%; margin-bottom: .2rem; }
.share__native[hidden] { display: none; }

.side-popular .sec-head { margin-bottom: 1rem; }
.side-popular .sec-head__title { font-size: 1.35rem; }
.side-popular ol { list-style: none; display: grid; gap: 1.1rem; }
.side-popular .card--num .card__num { font-size: 2.4rem; }
.side-popular .card--num .card__title { font-size: .95rem; }
.side-popular .kicker { display: none; }

/* Straipsnio tekstas */
.entry-content {
	font: 400 1.1875rem/1.75 var(--f-head);
	color: var(--ink);
	overflow-wrap: break-word;
}
.entry-content > * { margin-block: 0 1.35em; }
.entry-content > p:first-of-type::first-letter {
	float: left;
	margin: .06em .12em 0 0;
	color: var(--cat);
	font: 400 4.6em/.8 var(--f-display);
}
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 2em; margin-bottom: .7em; line-height: 1.2; scroll-margin-top: calc(var(--head-h) + 1.5rem); }
.entry-content h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem); padding-top: .6em; border-top: 3px solid var(--ink); }
.entry-content h3 { font-size: 1.35rem; }
.entry-content h4 { font-size: 1.15rem; }
.entry-content a { color: var(--ink); text-decoration-color: var(--cat); text-decoration-thickness: 2px; }
.entry-content a:hover { color: var(--cat); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .45em; }
.entry-content ul li::marker { color: var(--cat); }
.entry-content ol li::marker { color: var(--cat); font-weight: 700; font-family: var(--f-ui); }
.entry-content strong { font-weight: 700; }
.entry-content blockquote, .entry-content .wp-block-quote {
	position: relative;
	margin-inline: 0;
	padding: .5em 0 .5em 1.4em;
	border-left: 6px solid var(--cat);
	font-size: 1.3em;
	font-style: italic;
	line-height: 1.5;
}
.entry-content blockquote p:last-child { margin: 0; }
.entry-content blockquote cite, .entry-content figcaption { display: block; margin-top: .6em; color: var(--muted); font: 400 .8rem/1.4 var(--f-ui); font-style: normal; }
.entry-content .wp-block-pullquote { border-block: 4px solid var(--ink); padding: 1.5em 0; text-align: left; }
.entry-content figure { margin-inline: 0; }
.entry-content img { margin-inline: auto; }
.entry-content .alignwide { margin-inline: calc(-1 * clamp(0px, 6vw, 80px)); max-width: none; }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.entry-content .aligncenter { margin-inline: auto; text-align: center; }
.entry-content hr { width: 72px; height: 6px; margin: 2.5em auto; border: 0; background: repeating-linear-gradient(90deg, var(--cat) 0 18px, transparent 18px 27px); }
.entry-content code, .entry-content pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
.entry-content pre { padding: 1rem; overflow-x: auto; background: var(--paper-2); }
.entry-content iframe, .entry-content video { width: 100%; }
.table-wrap, .entry-content .wp-block-table { overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font: 400 .92rem/1.45 var(--f-ui); }
.entry-content th, .entry-content td { padding: .65rem .75rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.entry-content th { border-bottom: 2px solid var(--ink); font-weight: 700; }
.entry-content::after { content: ""; display: table; clear: both; }
@media (max-width: 640px) {
	.entry-content { font-size: 1.1rem; line-height: 1.7; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 auto 1.35em; max-width: 100%; }
	.entry-content .alignwide { margin-inline: 0; }
	.article__img { box-shadow: 8px 8px 0 var(--cat); }
}

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

.article__foot { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 4px solid var(--ink); display: flex; flex-direction: column; gap: 1.25rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.tags a { display: inline-block; padding: .35rem .7rem; background: var(--paper-2); font-size: .85rem; font-weight: 700; text-decoration: none; }
.tags a:hover { background: var(--ink); color: var(--paper); }

.related { margin-top: clamp(3rem, 6vw, 5rem); }
.popular--article + .related { margin-top: clamp(2.5rem, 5vw, 4rem); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: clamp(2.5rem, 5vw, 4rem); }
.post-nav__link { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1.4rem; border: 1.5px solid var(--ink); text-decoration: none; background: var(--card); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.post-nav__link:hover { color: var(--ink); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--cat); }
.post-nav__link--next { text-align: right; grid-column: 2; }
.post-nav__label { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font: 700 .75rem/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; }
.post-nav__link--next .post-nav__label { justify-content: flex-end; }
.post-nav__label .icon { width: 16px; height: 16px; }
.post-nav__title { font: 700 1.05rem/1.3 var(--f-head); }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav__link--next { grid-column: auto; } }

/* Kitas straipsnis */
.upnext {
	position: fixed;
	left: 1rem; bottom: 1rem;
	z-index: 60;
	width: min(360px, calc(100vw - 6rem));
	padding: 1rem 1rem 1rem;
	border: 2px solid var(--ink);
	background: var(--card);
	box-shadow: 8px 8px 0 var(--cat);
	transform: translateY(calc(100% + 2rem));
	transition: transform .45s var(--ease);
}
.upnext.is-in { transform: none; }
.upnext__label { margin: 0 0 .6rem; color: var(--cat); font: 700 .72rem/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; }
.upnext__link { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: .85rem; align-items: center; text-decoration: none; }
.upnext__link .thumb { aspect-ratio: 1; }
.upnext__title { font: 700 .98rem/1.3 var(--f-head); }
.upnext__close { position: absolute; top: .35rem; right: .35rem; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.upnext__close .icon { width: 18px; height: 18px; }

/* Puslapis nerastas */
.notfound { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.notfound__code { margin: 0; font: 400 clamp(7rem, 4rem + 14vw, 16rem)/.8 var(--f-display); color: transparent; -webkit-text-stroke: 3px var(--brick); }
.notfound__title { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); margin-bottom: 1rem; }
.notfound__body > p { font: 400 1.1rem/1.6 var(--f-head); max-width: 56ch; }
.notfound .search-form { margin: 1.5rem 0; }
@media (max-width: 760px) { .notfound { grid-template-columns: 1fr; } }

/* ==========================================================================
   11. Valdikliai
   ========================================================================== */
.widget { margin-bottom: 2rem; }
.widget__title { margin-bottom: 1rem; padding-top: .7rem; border-top: 4px solid var(--ink); font: 400 1.3rem/1 var(--f-display); text-transform: uppercase; }
.widget ul { list-style: none; }
.widget li { padding: .45rem 0; border-bottom: 1px solid var(--rule); }

/* ==========================================================================
   12. Poraštė
   ========================================================================== */
.site-footer { position: relative; margin-top: clamp(2rem, 5vw, 4rem); background: var(--band); color: #E4DED2; font-size: .92rem; }
.footer__wave {
	position: absolute;
	left: 0; right: 0; top: -22px;
	height: 24px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='24' viewBox='0 0 60 24'%3E%3Cpath d='M0 24V12q15-12 30 0t30 0v12z' fill='%2315181C'/%3E%3C/svg%3E") 0 0 / 60px 24px repeat-x;
}
[data-theme="dark"] .footer__wave { filter: brightness(.55); }
.footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
	gap: clamp(2rem, 4vw, 3.5rem);
	padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.footer__logo { display: inline-block; margin-bottom: 1.25rem; }
.footer__logo img { height: 56px; width: auto; }
.footer__about p { max-width: 42ch; opacity: .82; line-height: 1.6; }
.footer__title { margin: 0 0 1rem; padding-top: .6rem; border-top: 3px solid var(--sun); color: #F3EEE4; font: 400 1.15rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.site-footer ul { list-style: none; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.footer__cats { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1rem; }
.footer__cats li { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; }
.footer__cats li::before { content: ""; width: 7px; height: 7px; background: var(--cat); flex: none; }
.footer__latest li, .footer__menu li { padding: .45rem 0; border-bottom: 1px solid rgba(243, 238, 228, .1); line-height: 1.4; }
.social--footer { margin-top: 1.25rem; }
.social--footer a { width: 38px; height: 38px; border: 1px solid rgba(243, 238, 228, .25); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.5rem 2rem; border-top: 1px solid rgba(243, 238, 228, .12); font-size: .82rem; opacity: .75; }
.footer__bottom p { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__links a { display: inline-flex; align-items: center; gap: .3rem; }
.footer__links .icon { width: 14px; height: 14px; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } }

/* Į viršų */
.to-top {
	position: fixed;
	right: clamp(.9rem, 2vw, 1.5rem);
	bottom: clamp(.9rem, 2vw, 1.5rem);
	z-index: 70;
	display: grid;
	place-items: center;
	width: 54px; height: 54px;
	background: var(--ink);
	color: var(--paper);
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	transition: opacity .3s, transform .3s var(--ease), visibility .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--paper); background: var(--brick); }
.to-top .icon { position: relative; width: 22px; height: 22px; transition: transform .2s var(--ease); }
.to-top:hover .icon { transform: translateY(-3px); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.to-top__ring rect { fill: none; stroke: var(--sun); stroke-width: 4; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0)); transition: stroke-dashoffset .1s linear; }
.to-top__label { position: absolute; right: calc(100% + .5rem); padding: .35rem .6rem; background: var(--ink); color: var(--paper); font-size: .75rem; font-weight: 700; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.to-top:hover .to-top__label, .to-top:focus-visible .to-top__label { opacity: 1; transform: none; }
.is-article .to-top { bottom: clamp(.9rem, 2vw, 1.5rem); }

.toast {
	position: fixed;
	left: 50%; bottom: 1.5rem;
	z-index: 300;
	padding: .75rem 1.1rem;
	background: var(--ink);
	color: var(--paper);
	font-weight: 700;
	font-size: .9rem;
	transform: translate(-50%, calc(100% + 3rem));
	visibility: hidden;
	transition: transform .35s var(--ease), visibility .35s;
}
.toast.is-in { transform: translate(-50%, 0); visibility: visible; }

/* Naujai įkeltos kortelės */
.card.is-new { animation: rise .55s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

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

@media print {
	.topbar, .masthead, .ticker, .site-footer, .to-top, .article__aside, .share, .related, .post-nav, .upnext, .progress, .toc { display: none !important; }
	body { background: #fff; color: #000; }
	.article__layout { display: block; }
	.entry-content a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
