/* ==========================================================================
   Pulsas — „Verslo žinių portalas“
   Koncepcija: biržos terminalas × spausdintas laikraštis.
   Popieriaus fonas, rašalo linijos, signalinė oranžinė, mono duomenys.
   ========================================================================== */

:root {
	--paper: #f4f0e8;
	--paper-2: #ebe5d9;
	--paper-3: #e1d9c9;
	--ink: #14120f;
	--ink-2: #4a453d;
	--ink-3: #77705f;
	--rule: #14120f;
	--accent: #ff4a1c;
	--accent-ink: #b8300b;
	--up: #0b7a55;
	--card: #fbf9f4;
	--mark-bg: #14120f;
	--mark-fg: #f4f0e8;
	--shadow: 6px 6px 0 var(--accent);
	--deep: #14120f;
	--on-deep: #f4f0e8;

	--f-serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", "Palatino Linotype", Cambria, Georgia, serif;
	--f-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--f-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

	--wrap: 1240px;
	--gut: clamp(16px, 3vw, 28px);
	--radius: 2px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: light;
}

:root[data-theme="dark"] {
	--paper: #12110f;
	--paper-2: #1b1a17;
	--paper-3: #26241f;
	--ink: #f1ece2;
	--ink-2: #c9c1b2;
	--ink-3: #9a9283;
	--rule: #f1ece2;
	--accent: #ff6a3d;
	--accent-ink: #ff8a63;
	--up: #3fd39c;
	--card: #181714;
	--mark-bg: #f1ece2;
	--mark-fg: #12110f;
	--deep: #090807;
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #12110f;
		--paper-2: #1b1a17;
		--paper-3: #26241f;
		--ink: #f1ece2;
		--ink-2: #c9c1b2;
		--ink-3: #9a9283;
		--rule: #f1ece2;
		--accent: #ff6a3d;
		--accent-ink: #ff8a63;
		--up: #3fd39c;
		--card: #181714;
		--mark-bg: #f1ece2;
		--mark-fg: #12110f;
		--deep: #090807;
		color-scheme: dark;
	}
}

/* ---------- Pagrindai ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 16px/1.55 var(--f-sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-serif); line-height: 1.12; letter-spacing: -.015em; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.sr-only, .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(--accent); color: #fff; padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.site-main:focus { outline: none; }
.ico { width: 1em; height: 1em; flex: none; }
.label {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
	text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: var(--ink-2);
}

.pulse-dot {
	width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; position: relative;
}
@media (prefers-reduced-motion: no-preference) {
	.pulse-dot::after {
		content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
		animation: ping 1.8s var(--ease) infinite;
	}
}
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3); opacity: 0; } }

/* ---------- Skaitymo progreso juosta ---------- */
.readbar { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 300; pointer-events: none; }
.readbar__fill {
	display: block; height: 100%; background: var(--accent);
	transform-origin: 0 50%; transform: scaleX(var(--read, 0));
}

/* ---------- Būsenos juosta + naujienų juosta ---------- */
.statusbar { background: var(--deep); color: var(--on-deep); font-size: 13px; }
.statusbar__in { display: flex; align-items: center; gap: 18px; min-height: 38px; }
.statusbar__date { white-space: nowrap; opacity: .85; }
.ticker { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; border-left: 1px solid color-mix(in srgb, var(--on-deep) 25%, transparent); padding-left: 16px; }
.ticker__label { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; color: var(--accent); white-space: nowrap; }
.ticker__viewport {
	flex: 1; min-width: 0; overflow: hidden; display: flex;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
}
.ticker__track { display: flex; gap: 40px; padding: 0 40px 0 0; margin: 0; list-style: none; flex: none; white-space: nowrap; }
.ticker__track li { display: inline-flex; gap: 8px; align-items: baseline; }
.ticker__track .mono { color: var(--accent); font-size: .72rem; }
.ticker__track a { text-decoration: none; color: var(--on-deep); }
.ticker__track a:hover { text-decoration: underline; color: var(--on-deep); }
@media (prefers-reduced-motion: no-preference) {
	.ticker__track { animation: ticker 70s linear infinite; }
	.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
	.ticker__viewport { overflow-x: auto; }
	.ticker__track[aria-hidden] { display: none; }
}
@keyframes ticker { to { transform: translateX(-100%); } }

.mode-toggle {
	display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto;
	background: transparent; border: 1px solid color-mix(in srgb, var(--on-deep) 35%, transparent); border-radius: 50%; color: var(--on-deep);
}
.mode-toggle:hover { border-color: var(--accent); color: var(--accent); }
.mode-toggle .ico { width: 15px; height: 15px; }
.mode-toggle .ico--sun { display: none; }
:root[data-theme="dark"] .mode-toggle .ico--sun { display: block; }
:root[data-theme="dark"] .mode-toggle .ico--moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .mode-toggle .ico--sun { display: block; }
	:root:not([data-theme="light"]) .mode-toggle .ico--moon { display: none; }
}

/* ---------- Antraštė ---------- */
.masthead {
	position: sticky; top: 0; z-index: 200;
	background: color-mix(in srgb, var(--paper) 92%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 2px solid var(--rule);
	transition: box-shadow .25s var(--ease);
}
.masthead.is-stuck { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .45); }
.masthead__in { display: flex; align-items: center; gap: 28px; min-height: 78px; transition: min-height .25s var(--ease); }
.masthead.is-stuck .masthead__in { min-height: 62px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand .mark { transition: transform .4s var(--ease); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.04); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-serif); font-weight: 800; font-size: 1.62rem; letter-spacing: -.03em; }
.brand__sub {
	font-family: var(--f-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .42em;
	margin-top: 6px; display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2);
}
.brand__sub::before { content: ""; width: 7px; height: 7px; background: var(--accent); }

.mainnav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.mainnav__list, .mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mainnav li { position: relative; }
.mainnav a {
	display: block; padding: 8px 12px; text-decoration: none; font-weight: 600; font-size: .95rem;
	border-radius: 999px; transition: background .2s, color .2s;
}
.mainnav a:hover { background: var(--paper-2); color: var(--ink); }
.mainnav .current-menu-item > a, .mainnav .current-menu-ancestor > a, .mainnav .current-post-parent > a, .mainnav .current-category-ancestor > a {
	background: var(--ink); color: var(--paper);
}
.mainnav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; display: none; flex-direction: column; align-items: stretch;
	background: var(--card); border: 2px solid var(--rule); box-shadow: var(--shadow); padding: 6px; z-index: 5;
}
.mainnav li:hover > .sub-menu, .mainnav li:focus-within > .sub-menu { display: flex; }
.mainnav .sub-menu a { border-radius: 0; }

.menu-toggle {
	display: none; margin-left: auto; width: 46px; height: 46px; place-items: center;
	background: var(--ink); color: var(--paper); border: 0; border-radius: var(--radius);
}
.menu-toggle .ico--close { display: none; }
.masthead.is-open .menu-toggle .ico--close { display: block; }
.masthead.is-open .menu-toggle .ico--menu { display: none; }

.searchform { display: flex; border: 2px solid var(--rule); background: var(--card); }
.searchform input { border: 0; background: transparent; padding: 8px 10px; width: 160px; font: inherit; color: var(--ink); }
.searchform input:focus { outline: none; }
.searchform button { border: 0; background: var(--ink); color: var(--paper); padding: 0 12px; display: grid; place-items: center; }

@media (max-width: 980px) {
	.menu-toggle { display: grid; }
	.masthead__in { min-height: 66px; gap: 14px; }
	.brand__name { font-size: 1.35rem; }
	.brand .mark { width: 40px; height: 40px; }
	.mainnav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 14px;
		background: var(--paper); border-bottom: 2px solid var(--rule);
		padding: 16px var(--gut) 24px; max-height: calc(100vh - 66px); overflow-y: auto;
		display: none;
	}
	.masthead.is-open .mainnav { display: flex; }
	.mainnav__list, .mainnav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.mainnav a { border-radius: 0; padding: 14px 4px; border-bottom: 1px solid var(--paper-3); font-family: var(--f-serif); font-size: 1.25rem; }
	.mainnav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 16px; background: none; }
	.searchform input { width: 100%; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 640px) {
	.statusbar__date { display: none; }
	.ticker { border-left: 0; padding-left: 0; }
}

/* ---------- Bendri elementai ---------- */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--ink-2); }
.meta > *, .meta .mono, .meta time { display: inline-flex; align-items: center; gap: 5px; }
.meta .ico { width: 13px; height: 13px; }

.chip {
	--h: 18;
	position: relative; z-index: 2;
	display: inline-flex; align-items: center; gap: 7px;
	font-family: var(--f-mono); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
	text-decoration: none; color: var(--ink);
	padding: 4px 9px 4px 7px; border: 1px solid var(--rule); background: var(--card); border-radius: 999px;
	line-height: 1.2; transition: background .2s, color .2s;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: hsl(var(--h) 72% 46%); flex: none; }
.chip:hover { background: var(--ink); color: var(--paper); }

.btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px;
	background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700;
	border: 2px solid var(--rule); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { color: var(--paper); transform: translate(-3px, -3px); box-shadow: var(--shadow); }

.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretched { text-decoration: none; }

/* Generuotas paveikslėlio pakaitalas */
.ph {
	--h: 18;
	position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 14px 16px;
	background:
		radial-gradient(circle at 78% 30%, hsl(var(--h) 75% 55% / .9) 0 18%, transparent 19%),
		repeating-linear-gradient(135deg, hsl(var(--h) 40% 22%) 0 2px, transparent 2px 14px),
		hsl(var(--h) 35% 14%);
	color: #f4f0e8; overflow: hidden;
}
.ph__glyph { font-family: var(--f-serif); font-weight: 800; font-size: clamp(4rem, 9vw, 7rem); line-height: .8; letter-spacing: -.05em; }
.ph__cat { font-family: var(--f-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .16em; opacity: .85; text-align: right; max-width: 55%; }

/* ---------- Pagrindinio puslapio juosta ---------- */
.frontline { border-bottom: 1px solid var(--rule); }
.frontline__in { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-block: 22px; flex-wrap: wrap; }
.frontline__title { font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 800; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.frontline__tag { font-family: var(--f-sans); font-weight: 400; font-size: .95rem; color: var(--ink-2); letter-spacing: 0; }
.frontline__stats, .archive-head__stats { display: flex; gap: 0; margin: 0; }
.frontline__stats > div, .archive-head__stats > div { padding: 0 18px; border-left: 1px solid var(--rule); }
.frontline__stats > div:first-child { border-left: 0; padding-left: 0; }
.frontline__stats dt, .archive-head__stats dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); font-family: var(--f-mono); }
.frontline__stats dd, .archive-head__stats dd { margin: 2px 0 0; font-size: 1.45rem; font-weight: 700; color: var(--ink); }

/* ---------- Pagrindinis tinklelis ---------- */
.topgrid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); padding-block: clamp(22px, 3vw, 36px) 0; }
.topgrid__index { border-top: 6px solid var(--rule); padding-top: 14px; }
.topgrid__index .label { margin-bottom: 4px; }
@media (max-width: 900px) { .topgrid { grid-template-columns: 1fr; } }

/* Kortelės */
.card {
	position: relative; display: flex; flex-direction: column; background: var(--card);
	border: 1px solid var(--rule); border-radius: var(--radius);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow); }
.card:hover .card__title a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__n {
	position: absolute; left: 0; top: 0; z-index: 1;
	background: var(--accent); color: #14120f; font-weight: 700; font-size: .8rem; padding: 6px 10px;
}
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 20px; flex: 1; }
.card__title { font-size: 1.22rem; line-height: 1.2; }
.card__title a { color: var(--ink); }
.card__excerpt { color: var(--ink-2); font-size: .94rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.card--lead { border-width: 2px; }
.card--lead .card__media { aspect-ratio: 16 / 9; }
.card--lead .card__body { padding: 22px 26px 26px; gap: 14px; }
.card--lead .card__title { font-size: clamp(1.7rem, 3.4vw, 2.75rem); line-height: 1.04; letter-spacing: -.025em; }
.card--lead .card__excerpt { font-size: 1.08rem; -webkit-line-clamp: 4; }
.card--lead .card__n { font-size: 1rem; padding: 10px 14px; }
.card__cta { display: inline-flex; gap: 8px; align-items: center; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--accent-ink); margin-top: auto; }
.card__cta .ico { transition: transform .25s var(--ease); }
.card:hover .card__cta .ico { transform: translateX(6px); }

/* Indekso eilutės */
.idx { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.idx:last-child { border-bottom: 0; }
.idx__n {
	font-size: 2.1rem; font-weight: 700; line-height: 1; color: transparent;
	-webkit-text-stroke: 1.2px var(--ink); transition: color .2s;
}
.idx:hover .idx__n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.idx__body { display: flex; flex-direction: column; gap: 8px; }
.idx__title { font-size: 1.14rem; line-height: 1.2; }
.idx__title a { color: var(--ink); }
.idx:hover .idx__title a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* ---------- Sekcijos ---------- */
.sec { padding-block: clamp(30px, 4vw, 50px) 0; }
.vault.sec { padding-bottom: clamp(30px, 4vw, 54px); margin-top: clamp(40px, 5vw, 64px); }
.sec-first { padding-block: clamp(24px, 3vw, 40px) clamp(30px, 4vw, 54px); }
.sec-head {
	display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
	border-top: 6px solid var(--rule); padding-top: 12px; margin-bottom: 22px;
}
.sec-head__k { color: var(--accent-ink); font-weight: 700; }
.sec-head__t { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.025em; }
.sec-head__t a { text-decoration: none; }
.sec-head__more {
	margin-left: auto; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
	text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
	padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; transition: background .2s, color .2s;
}
.sec-head__more:hover { background: var(--ink); color: var(--paper); }
.topic .sec-head { border-top-color: hsl(var(--h) 72% 46%); }
.topic .sec-head__k { color: hsl(var(--h) 72% 38%); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.layout__side { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 92px; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } .layout__side { position: static; } }

.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Naujienų srautas (laiko juosta) */
.feed { position: relative; }
.feed::before { content: ""; position: absolute; left: 34px; top: 8px; bottom: 8px; width: 1px; background: var(--rule); opacity: .35; }
.row-card {
	position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr) 168px; gap: 20px; align-items: start;
	padding: 20px 0; border-bottom: 1px solid var(--paper-3);
}
.row-card:last-child { border-bottom: 0; }
.row-card__date {
	position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 70px; height: 70px; background: var(--paper); border: 1px solid var(--rule); border-radius: 50%; text-align: center; line-height: 1.05;
	transition: background .2s, color .2s;
}
.row-card:hover .row-card__date { background: var(--accent); border-color: var(--accent); color: #14120f; }
.row-card__d { font-size: 1.45rem; font-weight: 700; }
.row-card__m { font-size: .62rem; opacity: .8; }
.row-card__body { display: flex; flex-direction: column; gap: 8px; }
.row-card__title { font-size: 1.32rem; line-height: 1.18; }
.row-card__title a { color: var(--ink); }
.row-card:hover .row-card__title a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.row-card__excerpt { color: var(--ink-2); font-size: .95rem; margin: 0; }
.row-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--rule); background: var(--paper-2); }
.row-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.row-card__media .ph__glyph { font-size: 3rem; }
.row-card__media .ph__cat { display: none; }
@media (max-width: 700px) {
	.feed::before { left: 26px; }
	.row-card { grid-template-columns: 54px minmax(0, 1fr); gap: 14px; }
	.row-card__date { width: 54px; height: 54px; }
	.row-card__d { font-size: 1.1rem; }
	.row-card__media { display: none; }
	.row-card__title { font-size: 1.15rem; }
}

/* Šoninės dėžutės */
.box { border: 2px solid var(--rule); background: var(--card); padding: 18px 20px 20px; }
.box__title { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--rule); }
.kicker { font-family: var(--f-mono); color: var(--accent-ink); font-size: 1rem; }
.popular__list { list-style: none; margin: 0; padding: 0; counter-reset: pop; }
.mini { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--paper-3); }
.mini:last-child { border-bottom: 0; padding-bottom: 0; }
.mini__n { font-size: 1.5rem; font-weight: 700; color: var(--accent-ink); line-height: 1; }
.mini__title { display: block; font-family: var(--f-serif); font-weight: 700; font-size: 1.02rem; line-height: 1.25; text-decoration: none; color: var(--ink); }
.mini__title:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; color: var(--ink); }
.mini__meta { color: var(--ink-3); display: block; margin-top: 4px; font-size: .7rem; }

.radar__list { list-style: none; margin: 0; padding: 0; }
.radar__list a {
	--w: 50%; --h: 18;
	display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name n" "bar bar";
	gap: 4px 10px; padding: 9px 0; text-decoration: none; color: var(--ink);
}
.radar__name { grid-area: name; font-weight: 600; font-size: .93rem; }
.radar__n { grid-area: n; font-family: var(--f-mono); font-size: .78rem; color: var(--ink-2); }
.radar__bar { grid-area: bar; height: 6px; background: var(--paper-3); position: relative; overflow: hidden; }
.radar__bar::after {
	content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w);
	background: hsl(var(--h) 72% 46%); transition: width .8s var(--ease);
}
.radar__list a:hover .radar__name { text-decoration: underline; }
.js .radar:not(.is-in) .radar__bar::after { width: 0; }

.widget ul { padding-left: 18px; }

/* Archyvas */
.vault { background: var(--deep); color: var(--on-deep); margin-top: clamp(20px, 3vw, 40px); border-block: 1px solid var(--rule); }
.vault .sec-head { border-top-color: var(--accent); }
.vault .card { --rule: #14120f; color: #14120f; --ink: #14120f; --ink-2: #4a453d; --card: #fbf9f4; --paper: #f4f0e8; --paper-2: #ebe5d9; }
.vault .chip { --rule: #14120f; }
.sec-head--inv .sec-head__t { color: var(--on-deep); }
.sec-head--inv .sec-head__k { color: var(--accent); }

/* ---------- Archyvo antraštė ---------- */
.archive-head { --h: 18; border-bottom: 2px solid var(--rule); background: linear-gradient(180deg, hsl(var(--h) 72% 46% / .08), transparent 70%); padding-block: 18px 30px; }
.archive-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.archive-head__title { font-size: clamp(2.2rem, 5.5vw, 4.2rem); letter-spacing: -.035em; line-height: 1; }
.archive-head__title::after { content: "."; color: hsl(var(--h) 72% 46%); }
.archive-head__desc { max-width: 720px; color: var(--ink-2); font-size: 1.08rem; margin-top: 14px; }
.archive-head__desc p:last-child { margin: 0; }
.archive-head__stats > div:first-child { border-left: 1px solid var(--rule); }
.subtopics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* Naršymo kelias */
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-family: var(--f-mono); font-size: .74rem; color: var(--ink-2); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* Puslapiavimas ir „įkelti daugiau“ */
.loadmore {
	display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 30px; padding: 18px;
	background: var(--card); border: 2px solid var(--rule); font-weight: 700; font-size: 1rem;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.loadmore:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }
.loadmore.is-loading { opacity: .6; pointer-events: none; }
.loadmore.is-loading .ico { animation: bounce 1s infinite; }
@keyframes bounce { 50% { transform: translateY(4px); } }
.pagination { margin-top: 26px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--f-mono); font-size: .85rem; }
.pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid var(--rule); text-decoration: none; background: var(--card); }
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); }
.pagination a.page-numbers:hover { background: var(--accent); color: #14120f; border-color: var(--accent); }
.pagination .dots { border: 0; background: none; }
.empty { border: 2px dashed var(--ink-3); padding: 40px; text-align: center; }

/* ---------- Straipsnis ---------- */
.article__head { padding-block: clamp(18px, 3vw, 30px) clamp(20px, 3vw, 34px); }
.article__head .wrap { max-width: calc(1026px + 2 * var(--gut)); }
.meta--lg { margin-bottom: 18px; }
.article__title { font-size: clamp(2rem, 5.2vw, 3.9rem); line-height: 1.03; letter-spacing: -.035em; max-width: 22ch; text-wrap: balance; }
.article__lede { font-family: var(--f-serif); font-size: clamp(1.15rem, 1.8vw, 1.38rem); line-height: 1.45; color: var(--ink-2); margin: 20px 0 0; max-width: 60ch; }
.byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--rule); }
.byline__who { font-weight: 700; }
.byline__dates { color: var(--ink-2); }

.article__hero { margin: 0 auto clamp(26px, 4vw, 46px); }
.article__hero img { width: 100%; max-height: 640px; object-fit: cover; border: 2px solid var(--rule); }
.article__hero figcaption { font-family: var(--f-mono); font-size: .74rem; color: var(--ink-2); margin-top: 8px; }

.article__grid { display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; gap: 56px; }
.article__grid.has-toc { grid-template-columns: 250px minmax(0, 720px); }
.article__grid:not(.has-toc) .article__aside { display: none; }
.article__aside { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 1060px) {
	.article__grid.has-toc { grid-template-columns: minmax(0, 720px); }
	.article__aside { position: static; }
	.article__aside .share { display: none; }
}

.toc { border: 2px solid var(--rule); background: var(--card); padding: 16px 18px; }
.toc__title { display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin: 0 0 10px; }
.toc__list { list-style: none; margin: 0; padding: 0; counter-reset: toc; max-height: 60vh; overflow: auto; }
.toc__list li { counter-increment: toc; }
.toc__list a {
	display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 7px 0 7px 10px; text-decoration: none; font-size: .9rem; line-height: 1.35;
	border-left: 3px solid transparent; color: var(--ink-2); transition: border-color .2s, color .2s;
}
.toc__list a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-mono); font-size: .7rem; padding-top: 2px; color: var(--ink-3); }
.toc__l3 a { padding-left: 24px; font-size: .84rem; }
.toc__list a:hover, .toc__list a.is-active { color: var(--ink); border-left-color: var(--accent); }

.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share__label { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); margin-right: 4px; }
.share__btn {
	width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--rule); background: var(--card);
	border-radius: 50%; text-decoration: none; transition: background .2s, color .2s, transform .2s;
}
.share__btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.share__btn .ico { width: 17px; height: 17px; }
.entry-content .share__btn, .share__btn { color: var(--ink); }
.entry-content .share__btn:hover { background: var(--ink); color: var(--paper); }
.article__aside .share__label { width: 100%; margin-bottom: 2px; }
.share__btn.is-done { background: var(--up); color: #fff; border-color: var(--up); }

/* Turinio tipografija */
.entry-content { font-family: var(--f-serif); font-size: clamp(1.07rem, 1.3vw, 1.18rem); line-height: 1.72; color: var(--ink); min-width: 0; }
.entry-content > * { margin-block: 0; }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content > p:first-of-type::first-letter {
	float: left; font-size: 4.2em; line-height: .82; font-weight: 800; margin: .08em .1em 0 0; color: var(--accent-ink);
}
.entry-content h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin-top: 1.9em; padding-top: .55em; border-top: 2px solid var(--rule); scroll-margin-top: 96px; }
.entry-content h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-top: 1.6em; scroll-margin-top: 96px; }
.entry-content h4 { font-size: 1.15rem; margin-top: 1.4em; }
.entry-content a { color: var(--accent-ink); text-decoration-thickness: 2px; }
.entry-content a:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content ul li::marker { color: var(--accent); }
.entry-content ol li::marker { font-family: var(--f-mono); font-weight: 700; color: var(--accent-ink); }
.entry-content strong { font-weight: 800; }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin-inline: 0; padding: 18px 24px; border-left: 6px solid var(--accent); background: var(--paper-2);
	font-size: 1.15em; font-style: italic;
}
.entry-content blockquote p + p { margin-top: .6em; }
.entry-content blockquote cite { display: block; margin-top: 10px; font-family: var(--f-mono); font-size: .72rem; font-style: normal; color: var(--ink-2); }
.entry-content img { border: 1px solid var(--rule); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .entry-content .wp-element-caption { font-family: var(--f-mono); font-size: .74rem; color: var(--ink-2); margin-top: 8px; }
.entry-content hr { border: 0; border-top: 2px dashed var(--ink-3); }
.entry-content code { font-family: var(--f-mono); font-size: .85em; background: var(--paper-2); padding: 2px 5px; }
.entry-content pre { font-family: var(--f-mono); font-size: .85rem; background: var(--ink); color: var(--paper); padding: 18px; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--f-sans); font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th, .entry-content thead td { background: var(--ink); color: var(--paper); }
.entry-content tbody tr:nth-child(even) { background: var(--paper-2); }
.table-scroll, .entry-content .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content .alignwide { margin-inline: min(-6vw, -60px); }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content iframe { max-width: 100%; }
@media (max-width: 900px) { .entry-content .alignwide { margin-inline: 0; } }

.inline-read {
	position: relative; display: grid; gap: 6px; margin-block: 1.8em !important;
	padding: 18px 22px 18px 26px; background: var(--card); border: 2px solid var(--rule); box-shadow: 6px 6px 0 var(--ink);
	font-family: var(--f-sans);
}
.inline-read::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--accent); }
.inline-read__k { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-ink); font-weight: 700; }
.entry-content .inline-read a { font-family: var(--f-serif); font-weight: 700; font-size: 1.18rem; line-height: 1.25; color: var(--ink); text-decoration: none; background: none; }
.entry-content .inline-read a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.inline-read__m { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-2); }

.article__foot { margin-top: 2.4em !important; padding-top: 22px; border-top: 2px solid var(--rule); display: flex; flex-direction: column; gap: 20px; font-family: var(--f-sans); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tags .label { margin: 0 6px 0 0; }
.entry-content .tag { font-family: var(--f-mono); font-size: .8rem; color: var(--ink); text-decoration: none; padding: 5px 10px; background: var(--paper-2); }
.entry-content .tag:hover { background: var(--ink); color: var(--paper); }
.endmark { display: flex; justify-content: center; opacity: .9; }
.page-links { margin-top: 2em; display: flex; gap: 8px; }

/* Skaitykite toliau */
.nextup { background: var(--accent); color: #14120f; border-block: 2px solid var(--rule); margin-top: clamp(30px, 4vw, 56px); }
.nextup__link { display: grid; gap: 10px; padding-block: clamp(28px, 4vw, 48px); text-decoration: none; color: #14120f; }
.nextup__link:hover { color: #14120f; }
.nextup__k { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
.nextup__k .ico { transition: transform .25s var(--ease); }
.nextup__link:hover .nextup__k .ico { transform: translateX(8px); }
.nextup__title { font-family: var(--f-serif); font-weight: 800; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.03em; max-width: 26ch; text-wrap: balance; }
.nextup__link:hover .nextup__title { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: .12em; }

/* ---------- 404 ---------- */
.e404 { border-bottom: 2px solid var(--rule); }
.e404__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding-block: clamp(40px, 7vw, 90px); }
.e404__title { font-size: clamp(2.2rem, 5.5vw, 4.4rem); line-height: 1; letter-spacing: -.035em; margin-bottom: 18px; }
.e404__text { font-size: 1.15rem; color: var(--ink-2); max-width: 52ch; }
.e404__chart { width: 100%; color: var(--ink); }
@media (max-width: 800px) { .e404__in { grid-template-columns: 1fr; } }

/* ---------- Poraštė ---------- */
.footer { background: var(--deep); color: var(--on-deep); border-top: 1px solid var(--rule); margin-top: clamp(30px, 5vw, 70px); padding-block: clamp(40px, 5vw, 64px) 24px; }
.footer a { color: var(--on-deep); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer .brand { color: var(--on-deep); --mark-bg: var(--on-deep); --mark-fg: var(--deep); }
.footer .brand__sub { color: color-mix(in srgb, var(--on-deep) 75%, transparent); }
.footer__about { margin-top: 18px; color: color-mix(in srgb, var(--on-deep) 78%, transparent); max-width: 40ch; font-size: .95rem; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--on-deep) 35%, transparent); border-radius: 50%; }
.footer__h { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); margin-bottom: 14px; font-weight: 700; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .95rem; }
.footer__col .mono { opacity: .55; font-size: .7rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--on-deep) 22%, transparent); opacity: .75; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Į viršų ---------- */
.totop {
	--p: 0;
	position: fixed; right: clamp(14px, 2.5vw, 28px); bottom: clamp(14px, 2.5vw, 28px); z-index: 250;
	width: 54px; height: 54px; border-radius: 50%; border: 0; padding: 0;
	display: grid; place-items: center; color: var(--paper);
	background:
		radial-gradient(closest-side, var(--ink) 82%, transparent 83%),
		conic-gradient(var(--accent) calc(var(--p) * 1%), color-mix(in srgb, var(--ink) 35%, var(--paper)) 0);
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5);
	opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
	transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover .ico { transform: translateY(-3px); }
.totop .ico { width: 22px; height: 22px; transition: transform .2s var(--ease); }
.no-js .totop { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Atsiradimo animacija ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
	.js .reveal.is-in { opacity: 1; transform: none; }
}

/* WordPress pagrindinės klasės */
.alignnone { margin: 1em 0; }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { outline: 0; }

@media print {
	.statusbar, .masthead, .footer, .totop, .readbar, .share, .nextup, .article__aside, .layout__side, .loadmore, .pagination { display: none !important; }
	body { background: #fff; color: #000; }
	.entry-content a::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* Komentarai (tik jei įjungti) */
.comments { max-width: 820px; padding-block: 40px; }
.comments__list { list-style: none; padding: 0; margin: 20px 0; }
.comments__list .comment-body { border: 1px solid var(--rule); background: var(--card); padding: 16px 18px; margin-bottom: 14px; }
.comments__list .children { list-style: none; padding-left: 28px; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 10px; border: 2px solid var(--rule); background: var(--card); color: var(--ink); font: inherit; }
.comment-form .submit { background: var(--ink); color: var(--paper); border: 0; padding: 12px 20px; font-weight: 700; cursor: pointer; }
