/* ==========================================================================
   Myliu Panda – pagrindiniai stiliai
   Idėja: panda juoda-balta struktūra + vienas džiaugsmo akcentas – geltonas
   „žymeklis“, kuriuo pabraukiamos antraštės. Kiekviena tema turi savo spalvą.
   ========================================================================== */

:root {
	--paper: #ffffff;
	--paper-2: #f1f4ee;
	--ink: #000000;
	--text: #26282b;
	--muted: #5c6168;
	--line: #e1e5de;
	--sun: #ffd23f;
	--sun-ink: #000000;
	--bamboo: #1f7a4a;
	--header-bg: rgba(255, 255, 255, .94);

	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Iowan Old Style", Georgia, serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--r-sm: 10px;
	--r: 16px;
	--r-lg: 24px;
	--header-h: 72px;

	color-scheme: light;
}

[data-theme="dark"] {
	--paper: #111311;
	--paper-2: #1c201c;
	--ink: #f6f6f1;
	--text: #d9ddd6;
	--muted: #a0a79f;
	--line: #2d332d;
	--header-bg: rgba(17, 19, 17, .94);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #111311;
		--paper-2: #1c201c;
		--ink: #f6f6f1;
		--text: #d9ddd6;
		--muted: #a0a79f;
		--line: #2d332d;
		--header-bg: rgba(17, 19, 17, .94);
		color-scheme: dark;
	}
}

/* ---------- Pagrindas ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

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

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--ink); }

h1, h2, h3, h4, h5, h6 {
	color: var(--ink);
	font-family: var(--sans);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.02em;
	margin: 0;
	text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
mark { background: var(--sun); color: var(--sun-ink); padding: 0 .1em; border-radius: 3px; }

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

.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: -60px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--sun);
	color: #000;
	font-weight: 700;
	border-radius: var(--r-sm);
	text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.site-main { display: block; min-height: 50vh; }

/* ---------- Mygtukai ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 24px;
	border: 2px solid var(--ink);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font: 700 1rem/1 var(--sans);
	text-decoration: none;
	cursor: pointer;
}
.btn:hover { background: var(--sun); color: #000; border-color: var(--sun); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--sun); color: #000; }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px; height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}
.icon-btn:hover { background: var(--paper-2); }
.icon { flex: none; }

.when-dark, .when-open { display: none; }
[data-theme="dark"] .when-dark { display: contents; }
[data-theme="dark"] .when-light { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .when-dark { display: contents; }
	:root:not([data-theme="light"]) .when-light { display: none; }
}
[aria-expanded="true"] > .when-open { display: contents; }
[aria-expanded="true"] > .when-closed { display: none; }

/* ---------- Skaitymo progreso juosta ---------- */

.progress {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 200;
	height: 4px;
	pointer-events: none;
}
.progress-bar {
	display: block;
	height: 100%;
	width: 100%;
	background: var(--sun);
	transform-origin: 0 50%;
	transform: scaleX(0);
}

/* ---------- Viršutinė juosta ---------- */

.topline {
	background: #000;
	color: #e9e9e4;
	font-size: .8125rem;
}
.topline-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 38px;
}
.topline-date { flex: none; color: #fff; font-weight: 600; }
.ticker {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1;
}
.ticker-label {
	flex: none;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--sun);
	color: #000;
	font-weight: 700;
	font-size: .75rem;
}
.ticker-list {
	display: flex;
	gap: 28px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	white-space: nowrap;
	mask-image: linear-gradient(90deg, #000 85%, transparent);
	-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.ticker-list::-webkit-scrollbar { display: none; }
.ticker-list a { color: #e9e9e4; text-decoration: none; }
.ticker-list a:hover { color: var(--sun); }

@media (max-width: 640px) {
	.topline-date { display: none; }
}

/* ---------- Antraštė ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--header-bg);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 2px solid var(--ink);
	transition: transform .3s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }

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

.brand { margin: 0; font-size: inherit; letter-spacing: 0; line-height: 1; flex: none; }
.brand-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--ink);
	text-decoration: none;
}
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { display: grid; gap: 3px; }
.brand-name {
	font: 900 1.5rem/1 var(--sans);
	letter-spacing: -.045em;
	color: var(--ink);
}
.brand-tag {
	font: 500 .75rem/1 var(--serif);
	font-style: italic;
	color: var(--muted);
	letter-spacing: 0;
}

.nav { flex: 1; min-width: 0; }
.nav-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 6px;
	list-style: none;
}
.nav-list a {
	position: relative;
	display: block;
	padding: 10px 12px;
	color: var(--ink);
	font-weight: 650;
	font-size: .9375rem;
	text-decoration: none;
	white-space: nowrap;
}
.nav-list a::after {
	content: "";
	position: absolute;
	left: 12px; right: 12px; bottom: 4px;
	height: 3px;
	border-radius: 3px;
	background: var(--cat, var(--sun));
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform .2s ease;
}
.nav-list a:hover::after,
.nav-list [aria-current="page"]::after,
.nav-list .current-menu-item > a::after { transform: scaleX(1); }
.nav-list .sub-menu { display: none; }

.header-actions { display: flex; gap: 2px; margin-left: auto; flex: none; }
.menu-btn { display: none; }

.search-panel {
	border-top: 1px solid var(--line);
	padding: 20px 0 24px;
	background: var(--paper);
}

@media (max-width: 1100px) {
	.menu-btn { display: inline-grid; }
	.nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
		background: var(--paper);
		border-bottom: 2px solid var(--ink);
		padding: 8px var(--gutter) 24px;
	}
	.nav.is-open { display: block; }
	.nav-list { flex-direction: column; justify-content: flex-start; }
	.nav-list a { font-size: 1.25rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.nav-list a::after { left: 0; right: auto; width: 40px; bottom: 8px; }
	.nav-list .sub-menu { display: block; padding-left: 16px; list-style: none; }
}

@media (max-width: 480px) {
	.brand-mark { width: 38px; height: 38px; }
	.brand-name { font-size: 1.25rem; }
	.brand-tag { font-size: .6875rem; }
	.header-inner { gap: 12px; }
	.icon-btn { width: 40px; height: 40px; }
}

/* ---------- Paieška ---------- */

.search-form {
	position: relative;
	display: flex;
	gap: 10px;
	max-width: 760px;
}
.search-form > .icon {
	position: absolute;
	left: 18px; top: 50%;
	transform: translateY(-50%);
	color: var(--muted);
	pointer-events: none;
}
.search-field {
	flex: 1;
	min-width: 0;
	min-height: 54px;
	padding: 0 18px 0 50px;
	border: 2px solid var(--ink);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font: 500 1.0625rem var(--sans);
}
.search-field::placeholder { color: var(--muted); }
.search-field:focus { outline: none; box-shadow: 0 0 0 4px var(--sun); }
.search-form .btn { min-height: 54px; }
@media (max-width: 480px) {
	.search-form .btn { padding: 0 16px; }
	.search-field { font-size: 1rem; }
}

/* ---------- Kategorijos žymė ---------- */

.chip {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ink);
	font: 700 .8125rem/1.2 var(--sans);
	text-decoration: none;
}
.chip::before {
	content: "";
	width: 10px; height: 10px;
	border-radius: 50%;
	background: var(--cat, var(--bamboo));
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat, var(--bamboo)) 22%, transparent);
}
a.chip:hover { text-decoration: underline; text-decoration-color: var(--cat); text-decoration-thickness: 2px; }

/* ---------- Geltonas žymeklis (signatūrinis elementas) ---------- */

.hl {
	background-image: linear-gradient(transparent 60%, var(--sun) 60%, var(--sun) 94%, transparent 94%);
	background-repeat: no-repeat;
	background-size: 0% 100%;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	transition: background-size .35s cubic-bezier(.2, .7, .2, 1);
}
.card:hover .hl,
.card:focus-within .hl { background-size: 100% 100%; }

[data-theme="dark"] .hl { background-image: linear-gradient(transparent 84%, var(--sun) 84%, var(--sun) 96%, transparent 96%); }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .hl { background-image: linear-gradient(transparent 84%, var(--sun) 84%, var(--sun) 96%, transparent 96%); }
}

/* ---------- Kortelės ---------- */

.card { position: relative; min-width: 0; }
.card-title { font-size: 1.1875rem; line-height: 1.22; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:focus-visible { outline: none; box-shadow: none; }
.card:focus-within { outline: 3px solid var(--sun); outline-offset: 6px; border-radius: var(--r-sm); }
.card-body { display: grid; gap: 10px; align-content: start; }
.card-excerpt { color: var(--muted); font-size: .9688rem; line-height: 1.55; }

.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	color: var(--muted);
	font-size: .8125rem;
}
.meta-rt { display: inline-flex; align-items: center; gap: 5px; }
.meta-rt .icon { width: 14px; height: 14px; }

.thumb {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--r);
	background: var(--paper-2);
	aspect-ratio: 16 / 10;
}
.thumb-img { width: 100%; height: 100%; object-fit: cover; }
.thumb--empty {
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 22% 28%, color-mix(in srgb, var(--cat) 28%, transparent) 0 18%, transparent 19%),
		radial-gradient(circle at 80% 76%, color-mix(in srgb, var(--cat) 18%, transparent) 0 22%, transparent 23%),
		color-mix(in srgb, var(--cat) 10%, var(--paper-2));
}
.thumb-mark { width: 34%; max-width: 120px; height: auto; }
.card-media { margin-bottom: 16px; }

/* Pagrindinis straipsnis: nuotrauka pandos dėmės formos */
.card--lead .thumb {
	aspect-ratio: 5 / 4;
	border-radius: 42% 58% 46% 54% / 48% 40% 60% 52%;
}
.card--lead .card-media { margin-bottom: 22px; }
.card--lead .card-title { font-size: clamp(1.9rem, 3.3vw, 2.9rem); line-height: 1.06; letter-spacing: -.03em; }
.card--lead .hl { background-size: 100% 100%; animation: mp-mark 1s .25s cubic-bezier(.2, .7, .2, 1) both; }
.card--lead .card-excerpt { font: 400 1.1rem/1.6 var(--serif); color: var(--text); max-width: 60ch; }
.card--lead .card-body { gap: 14px; }

@keyframes mp-mark { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

.card--stack .thumb { aspect-ratio: 16 / 10; }

.card--row {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 16px;
	align-items: start;
	padding-block: 16px;
	border-top: 1px solid var(--line);
}
.card--row:first-child { border-top: 0; padding-top: 0; }
.card--row .card-media { margin: 0; }
.card--row .thumb { aspect-ratio: 1; border-radius: 12px; }
.card--row .card-title { font-size: 1.0313rem; }
.card--row .card-body { gap: 8px; }

.card--rank {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 12px;
	padding-block: 14px;
	border-top: 1px solid var(--line);
}
.card--rank:first-child { border-top: 0; padding-top: 4px; }
.card-rank {
	font: 900 2.5rem/.9 var(--sans);
	letter-spacing: -.05em;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--ink);
}
.card--rank:first-child .card-rank { color: var(--sun); -webkit-text-stroke: 1.5px var(--ink); }
.card--rank .card-title { font-size: 1rem; line-height: 1.3; }
.card--rank .card-body { gap: 6px; }

.card--tile { scroll-snap-align: start; }
.card--tile .thumb { aspect-ratio: 4 / 3; }
.card--tile .card-media { margin-bottom: 12px; }
.card--tile .card-title { font-size: 1.0625rem; }

/* ---------- Pagrindinis puslapis ---------- */

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, .95fr);
	gap: 48px 40px;
	padding-block: 40px 64px;
	align-items: start;
}
.hero-secondary { display: grid; gap: 36px; }
.hero-secondary .card-title { font-size: 1.3125rem; }
.hero-popular {
	padding: 24px 22px 10px;
	border-radius: var(--r-lg);
	background: var(--paper-2);
}
.hero-popular .section-title { margin-bottom: 14px; }

@media (max-width: 1100px) {
	.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.hero-lead { grid-column: 1 / -1; }
	.hero-lead .card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
	.hero-lead .card-media { margin: 0; }
}
@media (max-width: 760px) {
	.hero { grid-template-columns: minmax(0, 1fr); padding-top: 24px; gap: 40px; }
	.hero-lead .card { display: block; }
	.hero-lead .card-media { margin-bottom: 20px; }
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 24px;
	margin-bottom: 28px;
}
.section-title { font-size: clamp(1.625rem, 2.6vw, 2.25rem); letter-spacing: -.03em; }
.section-title--small { font-size: 1.375rem; }
.section-sub { color: var(--muted); width: 100%; }
.section-link {
	color: var(--ink);
	font-weight: 700;
	text-decoration-color: var(--cat, var(--sun));
	text-decoration-thickness: 3px;
}

.block { padding-block: 56px; }
.block + .block {
	background: linear-gradient(var(--ink), var(--ink)) no-repeat center top / calc(100% - 2 * var(--gutter)) 2px;
}

.grid { display: grid; gap: 44px 32px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* Laimės dozė */
.dose {
	background: var(--sun);
	color: #000;
}
.dose-inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 32px;
	align-items: center;
	padding-block: 52px;
}
.dose-mark { width: clamp(72px, 9vw, 118px); height: auto; }
.dose-mark circle:first-child { fill: #fff; }
.dose-title { color: #000; font-size: 1rem; font-weight: 800; letter-spacing: 0; margin-bottom: 10px; }
.dose-text {
	max-width: 52ch;
	font: 400 clamp(1.3rem, 2.3vw, 1.875rem)/1.38 var(--serif);
	color: #000;
	text-wrap: pretty;
}
.dose-note { margin-top: 14px; font-size: .875rem; color: #3b3a2e; }
@media (max-width: 560px) {
	.dose-inner { grid-template-columns: 1fr; gap: 18px; padding-block: 40px; }
}

/* Temų blokai */
.topic-title { display: inline-flex; align-items: center; gap: 14px; }
.topic-title::before {
	content: "";
	width: 18px; height: 18px;
	border-radius: 50% 50% 50% 4px;
	background: var(--cat);
	flex: none;
}
.topic-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}
@media (max-width: 760px) {
	.topic-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Trumpi straipsniai – horizontalus slinkimas */
.rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(230px, 260px);
	gap: 24px;
	overflow-x: auto;
	padding-bottom: 16px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--ink) var(--paper-2);
}

/* Temų debesis */
.explore-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 24px; }
.explore-list a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 18px;
	border: 2px solid var(--ink);
	border-radius: 999px;
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
}
.explore-list a span {
	min-width: 26px;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--paper-2);
	font-size: .75rem;
	text-align: center;
}
.explore-list a:hover { background: var(--cat); border-color: var(--cat); color: #fff; }
.explore-list a:hover span { background: rgba(255, 255, 255, .25); color: #fff; }

.empty-state { padding-block: 96px; text-align: center; }
.empty-state p { color: var(--muted); margin-top: 12px; }

/* ---------- Puslapiavimas ir „Rodyti daugiau“ ---------- */

.pager { display: grid; justify-items: center; gap: 20px; margin-top: 56px; }
.btn--more { min-width: 280px; min-height: 56px; font-size: 1.0625rem; }
.btn--more.is-loading { opacity: .6; pointer-events: none; }
.pager-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager-links .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px; height: 44px;
	padding: 0 12px;
	border-radius: 999px;
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
}
.pager-links a.page-numbers:hover { background: var(--paper-2); }
.pager-links .current { background: var(--ink); color: var(--paper); }
.pager-links .dots { min-width: 0; }

/* ---------- Archyvų antraštė ---------- */

.page-head { padding-block: 32px 12px; }
.page-title { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.035em; margin-top: 14px; }
.page-title--term {
	display: inline;
	background-image: linear-gradient(transparent 64%, color-mix(in srgb, var(--cat) 30%, transparent) 64%, color-mix(in srgb, var(--cat) 30%, transparent) 94%, transparent 94%);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.page-sub { max-width: 62ch; margin-top: 16px; color: var(--muted); font: 400 1.125rem/1.6 var(--serif); }
.page-sub p { margin: 0; }
.page-count { margin-top: 14px; font-weight: 700; color: var(--ink); font-size: .9375rem; }
.page-search { margin-top: 24px; }
.feed-page .block { padding-top: 32px; }

.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	color: var(--muted);
	font-size: .8125rem;
}
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] {
	max-width: 32ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: inline-block;
	vertical-align: bottom;
}

/* ---------- Straipsnis ---------- */

.article-head { max-width: 920px; padding-top: 36px; padding-bottom: 32px; }
.article-head .crumbs { margin-bottom: 22px; }
.article-title {
	margin-top: 14px;
	font-size: clamp(2.1rem, 4.8vw, 3.75rem);
	line-height: 1.05;
	letter-spacing: -.035em;
}
.article-lead {
	margin-top: 20px;
	max-width: 62ch;
	font: 400 clamp(1.15rem, 1.8vw, 1.375rem)/1.55 var(--serif);
	color: var(--text);
}
.article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
	margin-top: 24px;
	color: var(--muted);
	font-size: .875rem;
}
.byline { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.byline-mark { width: 28px; height: 28px; }

.article-figure { margin: 0 auto; }
.article-figure .thumb { aspect-ratio: 16 / 8; border-radius: var(--r-lg); }
.article-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .8125rem; }

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 720px);
	justify-content: center;
	gap: 56px;
	padding-top: 48px;
	padding-bottom: 32px;
}
@media (min-width: 1100px) {
	.article-layout.has-toc { grid-template-columns: 250px minmax(0, 720px); justify-content: space-between; max-width: 1100px; }
	.article-aside { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; max-height: calc(100vh - var(--header-h) - 56px); overflow-y: auto; }
}

/* Turinio lentelė */
.toc {
	padding: 20px 20px 14px;
	border: 2px solid var(--ink);
	border-radius: var(--r);
	font-size: .9063rem;
}
.toc summary {
	cursor: pointer;
	font-weight: 800;
	color: var(--ink);
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 1.25rem; line-height: 1; }
.toc[open] summary::after { content: "–"; }
.toc-list { list-style: none; margin-top: 12px; counter-reset: toc; }
.toc-list li { counter-increment: toc; }
.toc-list a {
	display: grid;
	grid-template-columns: 24px 1fr;
	padding: 7px 0;
	color: var(--muted);
	text-decoration: none;
	line-height: 1.35;
}
.toc-list .toc-l2 a::before { content: counter(toc) "."; font-weight: 700; }
.toc-list .toc-l3 { counter-increment: none; }
.toc-list .toc-l3 a { padding-left: 24px; font-size: .8438rem; }
.toc-list .toc-l3 a::before { content: ""; }
.toc-list a:hover,
.toc-list a.is-active { color: var(--ink); }
.toc-list a.is-active { font-weight: 700; }
.toc-list a.is-active::before { color: var(--ink); }
.toc-list .toc-l2 a.is-active { background: linear-gradient(90deg, var(--sun), var(--sun)) no-repeat 0 50% / 4px 70%; padding-left: 10px; margin-left: -10px; }
@media (max-width: 1099px) {
	.article-aside { margin-bottom: -8px; }
}

/* Straipsnio tekstas */
.entry-content {
	font: 400 1.1875rem/1.75 var(--serif);
	color: var(--text);
	overflow-wrap: break-word;
}
.entry-content > * + * { margin-top: 1.25em; }
.entry-content p { text-wrap: pretty; }
.entry-content > p:first-child::first-letter {
	float: left;
	margin: .08em .12em 0 0;
	padding: .02em .14em 0;
	border-radius: 12px;
	background: var(--sun);
	color: #000;
	font: 900 3.4em/.88 var(--sans);
}
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 2em; margin-bottom: -.25em; scroll-margin-top: calc(var(--header-h) + 24px); }
.entry-content h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); letter-spacing: -.025em; }
.entry-content h3 { font-size: 1.375rem; }
.entry-content h4 { font-size: 1.15rem; }
.entry-content a {
	color: var(--ink);
	text-decoration-color: var(--sun);
	text-decoration-thickness: .2em;
	text-underline-offset: .12em;
	text-decoration-skip-ink: none;
}
.entry-content a:hover { background: var(--sun); color: #000; text-decoration-color: transparent; }
.entry-content strong { color: var(--ink); }
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .45em; }
.entry-content ul li::marker { color: var(--bamboo); }
.entry-content ol li::marker { font-family: var(--sans); font-weight: 800; color: var(--ink); }
.entry-content blockquote {
	margin-inline: 0;
	padding: 6px 0 6px 26px;
	border-left: 6px solid var(--sun);
	font-size: 1.3125rem;
	font-style: italic;
	color: var(--ink);
}
.entry-content blockquote cite { display: block; margin-top: 10px; font: 600 .875rem var(--sans); font-style: normal; color: var(--muted); }
.entry-content img { border-radius: var(--r); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption,
.entry-content .wp-caption-text { margin-top: 8px; color: var(--muted); font: 400 .8125rem/1.45 var(--sans); }
.entry-content hr { border: 0; height: 2px; background: var(--ink); width: 64px; margin-block: 2.4em; }
.entry-content table { width: 100%; border-collapse: collapse; font: 400 .9375rem/1.5 var(--sans); }
.entry-content th,
.entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { color: var(--ink); border-bottom: 2px solid var(--ink); }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content pre,
.entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875em; }
.entry-content pre { padding: 18px; border-radius: var(--r-sm); background: var(--paper-2); overflow-x: auto; }
.entry-content iframe { max-width: 100%; }
.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; }
.entry-content .alignwide { margin-inline: calc(-1 * min(80px, 6vw)); max-width: none; }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.entry-content .alignfull img,
.entry-content .alignwide img { border-radius: 0; width: 100%; }
@media (max-width: 640px) {
	.entry-content { font-size: 1.125rem; }
	.entry-content .alignleft,
	.entry-content .alignright { float: none; margin: 1em 0; max-width: 100%; }
}

/* „Taip pat skaitykite“ */
.entry-content .also {
	display: grid;
	gap: 6px;
	margin-block: 2em;
	padding: 18px 22px;
	border-radius: var(--r);
	background: var(--paper-2);
	border-left: 6px solid var(--cat, var(--bamboo));
	font-family: var(--sans);
}
.also-label { font-size: .8125rem; font-weight: 700; color: var(--muted); }
.entry-content .also a {
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1.3;
	text-decoration: none;
	color: var(--ink);
}
.entry-content .also a:hover { background: none; text-decoration: underline; text-decoration-color: var(--sun); }

.page-links { margin-top: 32px; font-weight: 700; display: flex; gap: 10px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 40px; }
.tags a {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--paper-2);
	color: var(--ink);
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
}
.tags a:hover { background: var(--sun); color: #000; }

/* Dalijimasis */
.share {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 2px solid var(--ink);
}
.share-title { font-weight: 800; color: var(--ink); font-size: 1.0625rem; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.share-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 2px solid var(--ink);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font: 700 .875rem var(--sans);
	text-decoration: none;
	cursor: pointer;
}
.share-btn .icon { width: 18px; height: 18px; }
.share-btn:hover { background: var(--ink); color: var(--paper); }
.share-btn.is-done { background: var(--sun); border-color: var(--sun); color: #000; }

/* Autorius */
.author-box {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 18px;
	margin-top: 40px;
	padding: 24px;
	border-radius: var(--r-lg);
	background: var(--paper-2);
}
.author-mark { width: 64px; height: 64px; }
.author-name { font-weight: 800; color: var(--ink); font-size: 1.0625rem; }
.author-bio { margin-top: 6px; color: var(--muted); font-size: .9375rem; line-height: 1.55; }

/* Ankstesnis / kitas */
.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	padding-block: 24px 16px;
}
.post-nav-link {
	display: grid;
	gap: 8px;
	padding: 22px 24px;
	border: 2px solid var(--ink);
	border-radius: var(--r-lg);
	color: var(--ink);
	text-decoration: none;
}
.post-nav-next { text-align: right; grid-column: 2; }
.post-nav-label { font-size: .8125rem; font-weight: 700; color: var(--muted); }
.post-nav-title { font-weight: 800; font-size: 1.0625rem; line-height: 1.3; }
.post-nav-link:hover { background: var(--sun); border-color: var(--sun); color: #000; }
.post-nav-link:hover .post-nav-label { color: #000; }
@media (max-width: 640px) {
	.post-nav { grid-template-columns: 1fr; }
	.post-nav-next { grid-column: auto; }
}

.related {
	margin-top: 32px;
	background: linear-gradient(var(--ink), var(--ink)) no-repeat center top / calc(100% - 2 * var(--gutter)) 2px;
}

/* „Siūlome perskaityti“ kortelė */
.read-next {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 90;
	width: min(380px, calc(100vw - 112px));
	padding: 14px 44px 14px 14px;
	border: 2px solid var(--ink);
	border-radius: var(--r);
	background: var(--paper);
	box-shadow: 6px 6px 0 var(--ink);
	transform: translateY(calc(100% + 40px));
	transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.read-next.is-visible { transform: none; }
.read-next-link { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; color: var(--ink); text-decoration: none; }
.read-next .thumb { aspect-ratio: 1; border-radius: 12px; }
.read-next-text { display: grid; gap: 4px; }
.read-next-label { font-size: .75rem; font-weight: 700; color: var(--muted); }
.read-next-title { font-weight: 800; line-height: 1.25; font-size: .9688rem; }
.read-next-link:hover .read-next-title { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; }
.read-next-close {
	position: absolute;
	top: 6px; right: 6px;
	display: grid; place-items: center;
	width: 34px; height: 34px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}
.read-next-close:hover { background: var(--paper-2); color: var(--ink); }
.read-next-close .icon { width: 18px; height: 18px; }

/* ---------- Mygtukas „Į viršų“ ---------- */

.to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 95;
	display: grid;
	place-items: center;
	width: 56px; height: 56px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ink);
	color: var(--paper);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--sun); color: #000; }
.to-top > * { grid-area: 1 / 1; }
.to-top-ring { width: 56px; height: 56px; transform: rotate(-90deg); }
.to-top-ring circle {
	fill: none;
	stroke: var(--sun);
	stroke-width: 3;
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	stroke-linecap: round;
}
.to-top:hover .to-top-ring circle { stroke: #000; }
.to-top-label {
	position: absolute;
	right: calc(100% + 10px);
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--ink);
	color: var(--paper);
	font-size: .8125rem;
	font-weight: 700;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s;
}
.to-top:hover .to-top-label,
.to-top:focus-visible .to-top-label { opacity: 1; }

@media (max-width: 640px) {
	.to-top { right: 14px; bottom: 14px; width: 50px; height: 50px; }
	.to-top-ring { width: 50px; height: 50px; }
	.read-next { left: 14px; bottom: 14px; width: calc(100vw - 92px); }
}

/* ---------- 404 ---------- */

.lost {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 48px;
	align-items: center;
	padding-block: 64px 32px;
}
.lost-mark { width: clamp(120px, 20vw, 220px); height: auto; transform: rotate(-8deg); }

@media (max-width: 760px) {
	.lost { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
}

/* ---------- Poraštė ---------- */

.site-footer {
	margin-top: 40px;
	background: #000;
	color: #c9cdc6;
	font-size: .9375rem;
}
[data-theme="dark"] .site-footer { border-top: 1px solid var(--line); }
.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
	padding-block: 64px 48px;
}
.brand-link--footer { color: #fff; }
.brand-link--footer .brand-name { color: #fff; }
.brand-link--footer .brand-tag { color: #a9aea6; }
.footer-about p { margin-top: 20px; max-width: 42ch; line-height: 1.6; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 14px; letter-spacing: 0; }
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col a { display: inline-block; padding: 5px 0; color: #c9cdc6; text-decoration: none; line-height: 1.35; }
.footer-col a:hover { color: var(--sun); text-decoration: underline; }
.social { display: flex; gap: 8px; list-style: none; margin-top: 20px; }
.social a {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border: 1.5px solid #3a3d39;
	border-radius: 50%;
	color: #fff;
}
.social a:hover { background: var(--sun); border-color: var(--sun); color: #000; }
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 22px 28px;
	border-top: 1px solid #2a2c29;
	color: #8f948d;
	font-size: .8125rem;
}
@media (max-width: 900px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Judesio mažinimas, spausdinimas ---------- */

@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 {
	.topline, .site-header, .site-footer, .share, .to-top, .read-next, .related, .post-nav, .article-aside, .progress { display: none !important; }
	body { color: #000; background: #fff; }
	.entry-content a { text-decoration: underline; }
	.entry-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* Temų blokų smulkmenos */
.topic .chip { display: none; }
.topic-lead .card-title { font-size: clamp(1.3rem, 2vw, 1.625rem); line-height: 1.15; }
.topic-lead .thumb { aspect-ratio: 16 / 9; }

/* Mobiliajame – kompaktiškas sąrašas, kad iškart matytųsi daugiau antraščių */
@media (max-width: 640px) {
	.grid--3 { gap: 0; }
	.grid--3 > .card--stack {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 14px;
		padding-block: 18px;
		border-top: 1px solid var(--line);
	}
	.grid--3 > .card--stack .card-media { margin: 0; }
	.grid--3 > .card--stack .thumb { aspect-ratio: 1; border-radius: 12px; }
	.grid--3 > .card--stack .card-title { font-size: 1.0625rem; }
	.grid--3 > .card--stack .card-excerpt { display: none; }
	.grid--3 > .card--stack .card-body { gap: 7px; }
	.grid--3 > .card--stack:first-child {
		display: block;
		padding-top: 0;
		border-top: 0;
	}
	.grid--3 > .card--stack:first-child .card-media { margin-bottom: 14px; }
	.grid--3 > .card--stack:first-child .thumb { aspect-ratio: 16 / 10; border-radius: var(--r); }
	.grid--3 > .card--stack:first-child .card-title { font-size: 1.3125rem; }
	.grid--3 > .card--stack:first-child .card-excerpt { display: block; }
	.block { padding-block: 44px; }
}

.card-title mark { padding: 0; border-radius: 2px; }
.lost-text > p > .btn { margin-top: 24px; }
.lost-text .search-form .btn { margin-top: 0; }
.block > .section-title { margin-bottom: 28px; }
