/* ==========================================================================
   Verslo pulsas – pagrindiniai stiliai
   Spalvos: Baltijos mėlyna (ink), mineralinis baltas (paper), pulso žalia (accent)
   Šriftai: sisteminiai (be išorinių užklausų – greitas LCP, jokio GDPR rizikos)
   ========================================================================== */

:root {
	--ink: #10243a;
	--ink-2: #2b3f55;
	--muted: #586a7a;
	--paper: #f2f5f4;
	--surface: #ffffff;
	--line: #d8e0e3;
	--line-2: #e7ecee;
	--accent: #0e9f78;
	--accent-ink: #067256;
	--amber: #f2a93b;
	--topbar: #10243a;
	--topbar-ink: #d7e3ea;

	--logo-tile: #10243a;
	--logo-pulse: #2fd3a5;
	--logo-ink: #10243a;
	--logo-accent: #067256;

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

	--fs-xs: .8125rem;
	--fs-sm: .9375rem;
	--fs-md: 1.0625rem;
	--fs-lg: 1.3125rem;
	--fs-xl: 1.625rem;
	--fs-2xl: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);
	--fs-3xl: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);

	--wrap: 1240px;
	--gutter: clamp(16px, 3vw, 28px);
	--radius: 6px;
	--header-h: 68px;
	color-scheme: light;
}

[data-theme="dark"] {
	--ink: #e6edf2;
	--ink-2: #c3d1dc;
	--muted: #95abbb;
	--paper: #0b1826;
	--surface: #112437;
	--line: #223a52;
	--line-2: #1a2f45;
	--accent: #2bd4a4;
	--accent-ink: #5fe3bd;
	--topbar: #071220;
	--topbar-ink: #b7c8d5;
	--logo-tile: #e6edf2;
	--logo-pulse: #0e9f78;
	--logo-ink: #e6edf2;
	--logo-accent: #5fe3bd;
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ink: #e6edf2;
		--ink-2: #c3d1dc;
		--muted: #95abbb;
		--paper: #0b1826;
		--surface: #112437;
		--line: #223a52;
		--line-2: #1a2f45;
		--accent: #2bd4a4;
		--accent-ink: #5fe3bd;
		--topbar: #071220;
		--topbar-ink: #b7c8d5;
		--logo-tile: #e6edf2;
		--logo-pulse: #0e9f78;
		--logo-ink: #e6edf2;
		--logo-accent: #5fe3bd;
		color-scheme: dark;
	}
}

/* ---------- Pagrindas ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 var(--fs-md)/1.55 var(--sans);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.18; margin: 0; letter-spacing: -.012em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

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

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius);
	text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--paper); }
.site-main:focus { outline: none; }

.icon { flex: none; }

/* ---------- Viršutinė juosta ---------- */
.topbar { background: var(--topbar); color: var(--topbar-ink); font-size: var(--fs-xs); }
.topbar__in { display: flex; align-items: center; gap: 24px; min-height: 36px; }
.topbar__date { white-space: nowrap; opacity: .85; }
.ticker { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.ticker__label { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: #fff; white-space: nowrap; }
.ticker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(242, 169, 59, .25); }
.ticker__list { list-style: none; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.ticker__list::-webkit-scrollbar { display: none; }
.ticker__list li { white-space: nowrap; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; }
.ticker__list a { text-decoration: none; color: var(--topbar-ink); }
.ticker__list a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 720px) { .topbar__date { display: none; } .ticker__list li { max-width: 72vw; } }

/* ---------- Antraštė ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--surface) 92%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__in { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.brand { margin: 0; line-height: 0; font-size: 1rem; }
.brand__link { display: inline-block; color: var(--ink); }
.brand .custom-logo { max-height: 44px; width: auto; }
.logo { width: auto; height: 46px; display: block; overflow: visible; }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 4px; font-size: var(--fs-sm); font-weight: 600; }
.nav__list > li { position: relative; }
.nav__list a {
	display: block; padding: 10px 12px; text-decoration: none; border-radius: 4px; color: var(--ink-2);
}
.nav__list a:hover { color: var(--ink); background: var(--line-2); }
.nav__list .current-menu-item > a,
.nav__list .current-menu-ancestor > a,
.nav__list .current-category-ancestor > a { color: var(--accent-ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav__list .sub-menu {
	list-style: none; position: absolute; left: 0; top: 100%; min-width: 220px; padding: 8px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: 0 12px 32px -12px rgba(16, 36, 58, .25);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s ease;
}
.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.header-actions { display: flex; gap: 4px; }
.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	border: 0; background: transparent; cursor: pointer; color: var(--ink-2);
}
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.ico-sun, .ico-close { display: none; }
[data-theme="dark"] .ico-sun { display: inline; }
[data-theme="dark"] .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .ico-sun { display: inline; }
	:root:not([data-theme="light"]) .ico-moon { display: none; }
}
.nav-toggle { display: none; }
.nav-open .nav-toggle .ico-open { display: none; }
.nav-open .nav-toggle .ico-close { display: inline; }

/* Pulso linija = skaitymo progresas */
.pulse { height: 16px; margin-top: -6px; line-height: 0; pointer-events: none; }
.pulse svg { width: 100%; height: 16px; display: block; overflow: visible; }
.pulse path { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pulse__base { stroke: var(--line); }
.pulse__fill { stroke: var(--accent); stroke-width: 2.4; clip-path: inset(0 84% 0 0); }
.is-article .pulse__fill { clip-path: inset(0 100% 0 0); }

/* Paieška */
.search-panel { border-top: 1px solid var(--line); background: var(--surface); padding: 18px 0 22px; }
.search {
	display: flex; align-items: center; gap: 10px; max-width: 760px;
	background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 18px;
	color: var(--muted);
}
.search:focus-within { border-color: var(--accent); }
.search__input {
	flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
	font: 400 var(--fs-md) var(--sans); padding: 10px 0; outline: none;
}
.search__input::-webkit-search-cancel-button { cursor: pointer; }
.search__btn {
	border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer;
	background: var(--ink); color: var(--paper); font-weight: 600; font-size: var(--fs-sm);
}
.search__btn:hover { background: var(--accent-ink); color: #fff; }

@media (max-width: 1020px) {
	.nav-toggle { display: inline-grid; }
	.header-actions { margin-left: auto; }
	.nav {
		position: absolute; left: 0; right: 0; top: 100%; margin: 0;
		background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
		display: none; max-height: calc(100vh - 120px); overflow: auto;
		box-shadow: 0 20px 40px -20px rgba(16, 36, 58, .35);
	}
	.nav-open .nav { display: block; }
	.nav__list { flex-direction: column; padding: 12px var(--gutter) 20px; font-size: var(--fs-md); }
	.nav__list a { padding: 13px 4px; border-bottom: 1px solid var(--line-2); border-radius: 0; }
	.nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 16px; background: none; }
	.nav__list .current-menu-item > a { box-shadow: none; }
}
@media (max-width: 480px) { .logo { height: 40px; } }

/* ---------- Bendri elementai ---------- */
.kicker {
	--cat-h: 162;
	display: inline-flex; align-items: center; gap: 7px;
	font: 700 var(--fs-xs)/1.2 var(--sans); letter-spacing: .01em;
	color: hsl(var(--cat-h) 70% 28%); text-decoration: none; margin-bottom: 8px;
}
.kicker::before {
	content: ""; width: 14px; height: 3px; border-radius: 2px; background: hsl(var(--cat-h) 70% 42%);
}
.kicker:hover { color: hsl(var(--cat-h) 70% 22%); text-decoration: underline; }
[data-theme="dark"] .kicker { color: hsl(var(--cat-h) 65% 72%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kicker { color: hsl(var(--cat-h) 65% 72%); } }
.kicker--lg { font-size: var(--fs-sm); }

.section-head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	border-top: 2px solid var(--ink); padding-top: 12px; margin-bottom: 22px;
}
.section-title { font-size: var(--fs-xl); font-weight: 700; }
.section-title a { text-decoration: none; }
.section-link { font-size: var(--fs-sm); font-weight: 600; color: var(--accent-ink); text-decoration: none; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600;
	border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); background: var(--surface);
}
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }

.btn-more {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 26px; border-radius: 999px; border: 1.5px solid var(--ink);
	font: 700 var(--fs-sm) var(--sans); text-decoration: none; color: var(--ink); background: transparent; cursor: pointer;
}
.btn-more:hover { background: var(--ink); color: var(--paper); }
.btn-more[aria-busy="true"] { opacity: .6; pointer-events: none; }
.more-wrap { text-align: center; margin: 32px 0 8px; }

/* ---------- Kortelės ---------- */
.card { position: relative; min-width: 0; }
.card__media { display: block; text-decoration: none; }
.media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--line-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--ph {
	--cat-h: 162;
	position: relative; display: grid; align-items: end;
	background: hsl(var(--cat-h) 38% 90%); color: hsl(var(--cat-h) 60% 34%);
}
.media--ph svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.media--ph span {
	position: relative; padding: 12px 14px; font: 700 var(--fs-sm)/1.2 var(--sans); color: hsl(var(--cat-h) 60% 24%);
}
[data-theme="dark"] .media--ph { background: hsl(var(--cat-h) 30% 16%); color: hsl(var(--cat-h) 60% 55%); }
[data-theme="dark"] .media--ph span { color: hsl(var(--cat-h) 50% 80%); }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .media--ph { background: hsl(var(--cat-h) 30% 16%); color: hsl(var(--cat-h) 60% 55%); }
	:root:not([data-theme="light"]) .media--ph span { color: hsl(var(--cat-h) 50% 80%); }
}

.card__body { padding-top: 12px; }
.card__title { font-size: var(--fs-lg); font-weight: 700; line-height: 1.22; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.card__excerpt { margin-top: 8px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 10px; font-size: var(--fs-xs); color: var(--muted); }
.meta-read { display: inline-flex; align-items: center; gap: 5px; }

.card--lead .card__title { font-size: var(--fs-3xl); line-height: 1.08; letter-spacing: -.02em; }
.card--lead .card__excerpt { font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.card--lead .card__body { padding-top: 18px; }

.card--mini { padding: 14px 0; border-top: 1px solid var(--line); }
.card--mini .card__body { padding: 0; }
.card--mini .card__title { font-size: var(--fs-md); line-height: 1.3; }
.card--mini .kicker { display: none; }
.card--mini .card__meta { margin-top: 6px; }

.card--row { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); }
.card--row:first-child { border-top: 0; padding-top: 0; }
.card--row .card__body { padding-top: 0; }
.card--row .card__title { font-size: var(--fs-xl); }
@media (max-width: 640px) {
	.card--row { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
	.card--row .media { aspect-ratio: 1 / 1; }
	.card--row .media--ph span { display: none; }
	.card--row .card__title { font-size: var(--fs-md); line-height: 1.28; }
	.card--row .card__excerpt { display: none; }
	.card--row .kicker { margin-bottom: 4px; }
}

/* ---------- Pagrindinis puslapis ---------- */
.front-lead {
	display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 36px;
	padding-top: 32px; padding-bottom: 44px;
}
.front-lead__side { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; align-content: start; }
.front-lead__side .card__title { font-size: var(--fs-md); line-height: 1.28; }
.front-lead__side .card__meta .meta-read { display: none; }
@media (max-width: 960px) {
	.front-lead { grid-template-columns: 1fr; gap: 30px; padding-top: 20px; }
}
@media (max-width: 520px) {
	.front-lead__side { grid-template-columns: 1fr; gap: 0; }
	.front-lead__side .card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
	.front-lead__side .media { aspect-ratio: 1 / 1; }
	.front-lead__side .media--ph span { display: none; }
	.front-lead__side .card__body { padding-top: 0; }
}

/* Reitingas (skaitomiausi) */
.front-popular { padding-bottom: 48px; }
.rank { list-style: none; counter-reset: rank; }
.rank__item {
	counter-increment: rank; position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr);
	align-items: start; column-gap: 6px; padding: 14px 0; border-top: 1px solid var(--line);
}
.rank__item:first-child { border-top: 0; padding-top: 4px; }
.rank__item::before {
	content: counter(rank); grid-row: span 2;
	font: 700 2.25rem/0.9 var(--serif); color: var(--accent); font-variant-numeric: lining-nums;
}
.rank__item a { font: 700 var(--fs-md)/1.3 var(--serif); text-decoration: none; }
.rank__item a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.rank__meta { grid-column: 2; font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; }
.rank--row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 26px; }
.rank--row .rank__item { border-top: 0; padding: 4px 0 0; grid-template-columns: 1fr; }
.rank--row .rank__item::before { grid-row: auto; font-size: 3rem; margin-bottom: 8px; }
.rank--row .rank__meta { grid-column: 1; }
@media (max-width: 1020px) {
	.rank--row { grid-template-columns: 1fr; }
	.rank--row .rank__item { grid-template-columns: 52px minmax(0, 1fr); padding: 14px 0; border-top: 1px solid var(--line); }
	.rank--row .rank__item:first-child { border-top: 0; }
	.rank--row .rank__item::before { grid-row: span 2; font-size: 2.25rem; margin: 0; }
	.rank--row .rank__meta { grid-column: 2; }
}

/* Kategorijų blokai */
.front-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 44px; padding-bottom: 56px; }
.cat-block .section-head { border-top-color: hsl(var(--cat-h) 65% 36%); border-top-width: 3px; }
[data-theme="dark"] .cat-block .section-head { border-top-color: hsl(var(--cat-h) 60% 55%); }
.cat-block__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 24px; }
.cat-block__grid .card--std { grid-row: span 3; }
.cat-block__grid .card--std .card__title { font-size: var(--fs-lg); }
.cat-block__grid .card--mini:nth-child(2) { border-top: 0; padding-top: 0; }
@media (max-width: 1020px) { .front-cats { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
	.cat-block__grid { grid-template-columns: 1fr; }
	.cat-block__grid .card--std { grid-row: auto; margin-bottom: 8px; }
	.cat-block__grid .card--mini:nth-child(2) { border-top: 1px solid var(--line); padding-top: 14px; }
}

/* ---------- Išdėstymas su šonine juosta ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-bottom: 64px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 36px; }
.admin-bar .sidebar { top: calc(var(--header-h) + 60px); }
.side-box__title { font: 700 var(--fs-lg) var(--serif); padding-top: 12px; border-top: 2px solid var(--ink); margin-bottom: 14px; }
.side-box ul:not(.chips) { list-style: none; }
.side-box ul:not(.chips) li { padding: 8px 0; border-top: 1px solid var(--line-2); }
.side-box ul:not(.chips) a { text-decoration: none; }
@media (max-width: 1020px) {
	.layout { grid-template-columns: 1fr; gap: 40px; }
	.sidebar { position: static; }
}

/* Archyvai */
.page-head { padding-top: 28px; padding-bottom: 34px; }
.page-title { font-size: var(--fs-3xl); line-height: 1.08; letter-spacing: -.02em; margin-top: 10px; }
.page-desc { margin-top: 12px; max-width: 68ch; font: 400 var(--fs-lg)/1.55 var(--serif); color: var(--ink-2); }
.page-desc p + p { margin-top: .8em; }
.page-count { margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); }
.page-head .chips { margin-top: 16px; }
.page-search { margin-top: 20px; }
.archive-lead { padding-bottom: 32px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.archive-lead + .stream .card--row:first-child { padding-top: 22px; }

.page-head--404 { text-align: left; padding-top: 48px; }
.err-code { color: var(--accent); }
.err-actions { margin-top: 20px; }

.empty__text { font: 400 var(--fs-lg)/1.5 var(--serif); margin-bottom: 18px; max-width: 60ch; }
.empty__title { margin: 40px 0 20px; padding-top: 12px; border-top: 2px solid var(--ink); }

/* Puslapiavimas */
.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px;
	border-radius: 999px; text-decoration: none; font-weight: 600; font-size: var(--fs-sm); border: 1px solid var(--line);
}
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .page-numbers.dots { border: 0; }
.js .js-more ~ .js-pagination, .js .more-wrap + .js-pagination { display: none; }

/* Duonos trupiniai */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: var(--fs-xs); color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.crumbs li + li::before { content: "/"; opacity: .5; padding-right: 2px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

/* ---------- Straipsnis ---------- */
.article__head { max-width: calc(860px + var(--gutter) * 2); padding-top: 26px; padding-bottom: 26px; }
.article__head .kicker { margin-top: 20px; }
.article__title { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); font-weight: 700; line-height: 1.07; letter-spacing: -.022em; text-wrap: balance; }
.article__dek { margin-top: 16px; font: 400 var(--fs-xl)/1.45 var(--serif); color: var(--ink-2); text-wrap: pretty; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 22px; font-size: var(--fs-sm); color: var(--muted); }
.byline { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.byline a { text-decoration: none; }
.meta-updated { display: inline-flex; gap: 4px; }
.avatar {
	display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	background: var(--ink); color: var(--paper); font: 700 var(--fs-sm) var(--serif);
}
.avatar--lg { width: 56px; height: 56px; font-size: var(--fs-xl); flex: none; }

.article__hero { margin: 0 auto 8px; }
.article__hero img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.article__hero figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: 8px; }

.article__layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 56px; justify-content: center; padding-top: 32px; padding-bottom: 56px; }
.article__aside { order: 0; }
.article__sticky { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 28px; }
.admin-bar .article__sticky { top: calc(var(--header-h) + 64px); }

.toc-wrap summary { list-style: none; font: 700 var(--fs-sm) var(--sans); cursor: pointer; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.toc-wrap summary::-webkit-details-marker { display: none; }
.toc-wrap summary::after { content: "+"; float: right; font-weight: 400; }
.toc-wrap[open] summary::after { content: "–"; }
.toc__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.toc ol { list-style: none; margin-top: 10px; max-height: calc(100vh - 300px); overflow: auto; }
.toc li a {
	display: block; padding: 7px 0 7px 12px; border-left: 2px solid var(--line); font-size: var(--fs-sm); line-height: 1.35;
	text-decoration: none; color: var(--ink-2);
}
.toc li.toc__l3 a { padding-left: 24px; font-size: var(--fs-xs); }
.toc li a:hover { color: var(--ink); border-left-color: var(--ink-2); }
.toc li a.is-active { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 600; }

.share-box__title { font: 700 var(--fs-sm) var(--sans); margin-bottom: 10px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; text-decoration: none;
}
.share__btn:hover { border-color: var(--accent); color: var(--accent-ink); }

@media (max-width: 1020px) {
	.article__layout { grid-template-columns: minmax(0, 720px); gap: 0; padding-top: 20px; }
	.article__sticky { position: static; }
	.share-box { display: none; }
	.toc-wrap { margin-bottom: 28px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
	.toc-wrap summary { border-bottom: 0; padding-bottom: 0; }
	.toc ol { max-height: none; }
}

/* Tekstas */
.prose { font: 400 1.1875rem/1.75 var(--serif); color: var(--ink); max-width: 68ch; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--fs-2xl); margin-top: 1.8em; line-height: 1.2; }
.prose h3 { font-size: var(--fs-xl); margin-top: 1.6em; }
.prose h4 { font-size: var(--fs-lg); margin-top: 1.4em; }
.prose a { color: var(--accent-ink); text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent); text-decoration-thickness: 1.5px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
	margin-inline: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent);
	font-size: 1.3rem; line-height: 1.55; font-style: italic; color: var(--ink-2);
}
.prose img, .prose figure img { border-radius: var(--radius); height: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-caption-text, .prose .wp-element-caption { font: 400 var(--fs-xs)/1.4 var(--sans); color: var(--muted); margin-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose code { font-size: .88em; background: var(--line-2); padding: .1em .35em; border-radius: 3px; }
.prose pre { overflow: auto; background: var(--line-2); padding: 16px; border-radius: var(--radius); font-size: .9rem; }
.prose .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font: 400 var(--fs-sm)/1.45 var(--sans); }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 700; background: var(--line-2); }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose iframe { max-width: 100%; }
.prose > p:first-of-type::first-letter {
	float: left; font-size: 3.6em; line-height: .82; font-weight: 700; padding: .06em .1em 0 0; color: var(--accent-ink);
}

.inset-read {
	display: grid; gap: 6px; margin: 1.8em 0; padding: 16px 0 16px 20px;
	border-left: 3px solid var(--accent); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%);
}
.inset-read__label { font: 700 var(--fs-xs) var(--sans); color: var(--accent-ink); }
.inset-read a { font: 700 var(--fs-lg)/1.3 var(--serif); text-decoration: none; color: var(--ink); }
.inset-read a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

.page-links { margin-top: 24px; display: flex; gap: 8px; font-weight: 600; }

.article__foot { margin-top: 40px; display: grid; gap: 28px; max-width: 68ch; }
.share-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-end p { font-weight: 600; font-size: var(--fs-sm); }
.author-box { display: flex; gap: 16px; align-items: flex-start; }
.author-box__name { font: 700 var(--fs-lg) var(--serif); }
.author-box__name a { text-decoration: none; }
.author-box__bio { margin-top: 4px; color: var(--ink-2); font-size: var(--fs-sm); }

.related { padding-bottom: 56px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 22px; }
.grid-4 .card__title { font-size: var(--fs-md); line-height: 1.28; }
@media (max-width: 960px) {
	.grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.grid-3, .grid-4 { grid-template-columns: 1fr; gap: 0; }
	.grid-3 .card, .grid-4 .card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
	.grid-3 .media, .grid-4 .media { aspect-ratio: 1 / 1; }
	.grid-3 .media--ph span, .grid-4 .media--ph span { display: none; }
	.grid-3 .card__body, .grid-4 .card__body { padding-top: 0; }
	.grid-3 .card__title, .grid-4 .card__title { font-size: var(--fs-md); line-height: 1.28; }
}

.article--page .article__head { padding-bottom: 20px; }
.prose--page { margin-inline: auto; padding-bottom: 64px; }

/* „Skaitykite toliau“ */
.up-next {
	position: fixed; left: 20px; bottom: 20px; z-index: 40; width: min(360px, calc(100vw - 100px));
	padding: 16px 44px 16px 18px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
	box-shadow: 0 18px 48px -18px rgba(16, 36, 58, .45);
	transform: translateY(16px); opacity: 0; transition: transform .25s ease, opacity .25s ease;
}
.up-next.is-visible { transform: none; opacity: 1; }
.up-next__label { font: 700 var(--fs-xs) var(--sans); color: var(--accent-ink); margin-bottom: 4px; }
.up-next__link { font: 700 var(--fs-md)/1.3 var(--serif); text-decoration: none; display: block; }
.up-next__link::after { content: ""; position: absolute; inset: 0; }
.up-next__close {
	position: absolute; top: 8px; right: 8px; z-index: 1; width: 30px; height: 30px; border-radius: 50%;
	border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted);
}
.up-next__close:hover { background: var(--line-2); color: var(--ink); }

/* ---------- Mygtukas „į viršų“ ---------- */
.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 45;
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	background: var(--surface); color: var(--ink); text-decoration: none;
	box-shadow: 0 10px 28px -10px rgba(16, 36, 58, .5);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--accent-ink); }
.to-top > .icon { position: relative; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke-width: 2.5; stroke: var(--line); }
.to-top__ring circle + circle { stroke: var(--accent); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }

/* ---------- Poraštė ---------- */
.site-footer { background: var(--topbar); color: var(--topbar-ink); padding-top: 56px; font-size: var(--fs-sm); --logo-tile: #e6edf2; --logo-pulse: #0e9f78; --logo-ink: #e6edf2; --logo-accent: #5fe3bd; }
.site-footer a { text-decoration: none; color: var(--topbar-ink); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1fr; gap: 40px; padding-bottom: 44px; }
.foot-about p { margin-top: 16px; line-height: 1.6; max-width: 40ch; }
.foot-col__title { font: 700 var(--fs-md) var(--sans); color: #fff; margin-bottom: 14px; }
.foot-col ul { list-style: none; display: grid; gap: 9px; }
.social { list-style: none; display: flex; gap: 8px; margin-top: 18px; }
.social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
.social a:hover { border-color: var(--logo-accent); text-decoration: none; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs-xs); opacity: .8; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* WordPress klasės */
.alignwide, .alignfull { max-width: 100%; }
.wp-block-image img { height: auto; }
.sticky, .bypostauthor, .gallery-caption { /* WP reikalavimai */ }

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

@media print {
	.topbar, .site-header, .site-footer, .article__aside, .share-end, .related, .up-next, .to-top, .sidebar { display: none !important; }
	.article__layout { display: block; }
	body { background: #fff; color: #000; }
}
