/* =========================================================
   Pulsas – Mažeikių portalo tema
   Spalvos: rašalo mėlyna, šiltas popierius, liepsnos oranžinė,
   Ventos žalsvai mėlyna. Šriftai – sistemos (be išorinių užklausų).
   ========================================================= */

:root {
	--ink: #0f1b2d;
	--ink-2: #24324a;
	--paper: #f4efe4;
	--paper-2: #ebe4d4;
	--card: #fffdf8;
	--line: #ddd4c2;
	--line-2: #cbbfa8;
	--text: #172133;
	--muted: #5a6476;
	--accent: #ff5b22;
	--accent-ink: #b83d0c;
	--river: #0e8c8c;
	--river-2: #2bb8b0;
	--c: var(--accent);
	--mark-bg: #0f1b2d;
	--mark-fg: #fff;

	--serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, "Noto Serif", "DejaVu Serif", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;

	--wrap: 1240px;
	--gut: clamp(16px, 3.2vw, 32px);
	--r: 16px;
	--r-sm: 10px;
	--shadow: 0 1px 0 rgba(15, 27, 45, .04), 0 10px 30px -18px rgba(15, 27, 45, .35);
	--fs-article: 19px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--admin: 0px;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--ink: #e9e3d6;
	--ink-2: #c8c0b0;
	--paper: #0b1322;
	--paper-2: #111c2f;
	--card: #121d31;
	--line: #223049;
	--line-2: #2f3f5c;
	--text: #e8e2d5;
	--muted: #9aa5b8;
	--accent-ink: #ff8a5c;
	--mark-bg: #ff5b22;
	--mark-fg: #0b1322;
	--shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 14px 34px -20px rgba(0, 0, 0, .8);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ink: #e9e3d6;
		--ink-2: #c8c0b0;
		--paper: #0b1322;
		--paper-2: #111c2f;
		--card: #121d31;
		--line: #223049;
		--line-2: #2f3f5c;
		--text: #e8e2d5;
		--muted: #9aa5b8;
		--accent-ink: #ff8a5c;
		--mark-bg: #ff5b22;
		--mark-fg: #0b1322;
		--shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 14px 34px -20px rgba(0, 0, 0, .8);
		color-scheme: dark;
	}
}

body.admin-bar { --admin: 32px; }
@media (max-width: 782px) { body.admin-bar { --admin: 46px; } }
@media (max-width: 600px) { body.admin-bar { --admin: 0px; } }

/* ---------- Pagrindai ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(80px + var(--admin)); }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font: 400 16px/1.6 var(--sans);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.12; letter-spacing: -.012em; margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: calc(12px + var(--admin)); color: var(--paper); }
.site-main { display: block; outline: none; min-height: 50vh; }
.ico { flex: none; }

/* ---------- Skaitymo juosta ---------- */
.readbar { position: fixed; inset: var(--admin) 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.readbar__fill { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--river-2), var(--accent)); }

/* ---------- Antraštė ---------- */
.topline { background: var(--ink); color: var(--paper); font: 500 12px/1 var(--mono); letter-spacing: .04em; }
:root[data-theme="dark"] .topline { background: #060c17; color: #d7d0c2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topline { background: #060c17; color: #d7d0c2; } }
.topline__in { display: flex; align-items: center; gap: 18px; min-height: 36px; white-space: nowrap; overflow: hidden; }
.topline__date { white-space: nowrap; }
.topline__stat { opacity: .75; }
.topline__link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; opacity: .9; }
.topline__link:hover { color: var(--accent); opacity: 1; }
.live { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--accent); }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 91, 34, .6); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 34, .55); } 70% { box-shadow: 0 0 0 9px rgba(255, 91, 34, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 91, 34, 0); } }
@media (max-width: 760px) { .topline__stat { display: none; } }
@media (max-width: 480px) { .topline__link span, .topline__link { font-size: 0; gap: 0; } .topline__link .ico { width: 18px; height: 18px; } }

.masthead__main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding-block: 22px 18px; }
.brand { margin: 0; font: inherit; line-height: 1; }
.brand__link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__link:hover { color: var(--ink); }
.brand__link:hover .logo-mark { transform: rotate(-4deg) scale(1.03); }
.logo-mark { transition: transform .35s var(--ease); flex: none; }
.brand__text { display: flex; flex-direction: column; gap: 5px; }
.brand__name { font: 700 clamp(26px, 3.4vw, 34px)/.9 var(--serif); letter-spacing: -.02em; }
.brand__sub { font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .22em; color: var(--muted); }
.brand .custom-logo { max-height: 64px; width: auto; }
.masthead__tagline { margin: 0; justify-self: center; font: italic 400 17px/1.3 var(--serif); color: var(--muted); text-align: center; max-width: 36ch; }
.masthead__tagline::before, .masthead__tagline::after { content: "—"; color: var(--accent); margin-inline: .5em; font-style: normal; }
@media (max-width: 480px) { .brand__sub { letter-spacing: .12em; } .brand__name { font-size: 25px; } .icon-btn { width: 38px; height: 38px; } .brand__link { gap: 10px; } .brand .logo-mark { width: 40px; height: 40px; } }
@media (max-width: 900px) { .masthead__tagline { display: none; } .masthead__main { grid-template-columns: 1fr auto; padding-block: 14px 12px; } }

.actions { display: flex; gap: 6px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); transition: background .2s, border-color .2s, transform .2s; }
.icon-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font: 700 11px/20px var(--mono); text-align: center; }
.badge[hidden] { display: none; }
.theme-ico { display: grid; }
.theme-ico--sun { display: none; }
:root[data-theme="dark"] .theme-ico--sun { display: grid; }
:root[data-theme="dark"] .theme-ico--moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-ico--sun { display: grid; }
	:root:not([data-theme="light"]) .theme-ico--moon { display: none; }
}

/* Kategorijų juosta (lipni) */
.catbar { position: sticky; top: var(--admin); z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-block: 1px solid var(--line); }
.catbar__in { display: flex; align-items: center; gap: 10px; }
.catbar__mark { display: grid; width: 0; overflow: hidden; opacity: 0; transition: width .3s var(--ease), opacity .3s; }
.is-stuck .catbar__mark { width: 30px; opacity: 1; }
.catnav { flex: 1; min-width: 0; }
.catnav__list, .catnav ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; scroll-snap-type: x proximity; mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav li { flex: none; scroll-snap-align: start; }
.catnav a { --c: var(--ink); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; text-decoration: none; font: 600 14px/1 var(--sans); color: var(--ink); transition: background .2s, color .2s; }
.catnav a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); transition: transform .2s; }
.catnav a:hover { background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--ink); }
.catnav a:hover::before { transform: scale(1.4); }
.catnav .current-menu-item > a, .catnav .current-category-ancestor > a, .catnav .current-post-ancestor > a { background: var(--ink); color: var(--paper); }
.sentinel { display: block; height: 1px; margin-top: -1px; }

/* Ticker */
.ticker { border-bottom: 1px solid var(--line); background: var(--card); }
.ticker__in { display: flex; align-items: center; gap: 14px; height: 42px; }
.ticker__label { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; background: var(--accent); color: #fff; font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.ticker__viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 94%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__list { list-style: none; display: flex; }
.ticker__list li { white-space: nowrap; padding-right: 42px; position: relative; }
.ticker__list li::after { content: ""; position: absolute; right: 18px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--line-2); }
.ticker__list a { text-decoration: none; font: 500 14px/1 var(--sans); }
.ticker__list time { font: 600 11px/1 var(--mono); color: var(--accent-ink); margin-right: 6px; text-transform: uppercase; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } .ticker__viewport { overflow-x: auto; } }

/* Paieška */
.search-layer { position: fixed; inset: var(--admin) 0 auto 0; z-index: 80; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); animation: drop .3s var(--ease); }
.search-layer[hidden] { display: none; }
.search-layer__in { display: flex; gap: 12px; align-items: center; padding-block: 22px; }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } }
.searchform { flex: 1; display: flex; align-items: center; gap: 12px; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 6px 6px 6px 16px; }
.searchform .ico { color: var(--muted); }
.searchform__input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 500 18px/1.4 var(--sans); padding: 10px 0; outline: none; }
.searchform__input::-webkit-search-cancel-button { display: none; }

/* Mygtukai */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font: 700 15px/1 var(--sans); text-decoration: none; transition: transform .2s var(--ease), background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); color: var(--paper); background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Išsaugotų stalčius */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(6, 12, 23, .5); animation: fade .25s; }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; z-index: 1; width: min(420px, 92vw); background: var(--paper); padding: calc(20px + var(--admin)) 22px 22px; overflow-y: auto; box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .4); animation: slide-in .35s var(--ease); }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__title { display: flex; align-items: center; gap: 8px; font-size: 24px; }
.drawer__note { color: var(--muted); font-size: 13px; margin: 6px 0 18px; }
.drawer__list { list-style: none; display: grid; gap: 10px; }
.drawer__item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.drawer__item img, .drawer__item .ph { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--paper-2); }
.drawer__item a { font: 700 15px/1.25 var(--serif); text-decoration: none; color: var(--ink); }
.drawer__empty { color: var(--muted); padding: 18px; border: 1px dashed var(--line-2); border-radius: 12px; }
.drawer__rm { border: 0; background: transparent; color: var(--muted); padding: 6px; border-radius: 8px; }
.drawer__rm:hover { color: var(--accent-ink); background: var(--paper-2); }

/* ---------- Bendri elementai ---------- */
.chip { --c: var(--accent); position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--ink); font: 700 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.chip:hover { background: var(--c); color: #fff; }
.chip:hover::before { background: #fff; }
.chip--sm { font-size: 10px; padding: 3px 8px 3px 6px; }
.kicker { font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--accent-ink); }
.meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font: 500 12.5px/1.3 var(--sans); }
.meta__rt { display: inline-flex; align-items: center; gap: 4px; }
.meta__sep { opacity: .6; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 600 13px/1 var(--sans); color: var(--ink-2); }

.media { position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--paper-2); aspect-ratio: 16 / 10; }
.media__img, .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
[data-card]:hover .media__img { transform: scale(1.04); }
.media__ph { position: absolute; inset: 0; display: grid; place-items: center; background:
	radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--c) 45%, transparent), transparent 55%),
	repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, transparent) 0 2px, transparent 2px 14px),
	var(--paper-2); }
.media__ph span { font: 700 clamp(36px, 6vw, 72px)/1 var(--serif); color: color-mix(in srgb, var(--c) 70%, var(--ink)); opacity: .55; }
.media--wide { aspect-ratio: 16 / 8; border-radius: var(--r); }

.save-btn { position: relative; z-index: 2; display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: auto; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); transition: color .2s, background .2s, transform .2s; }
.save-btn:hover { color: var(--ink); background: var(--paper-2); }
.save-btn[aria-pressed="true"] { color: var(--accent); }
.save-btn[aria-pressed="true"] svg path { fill: currentColor; }
.save-btn.pop { animation: pop .4s var(--ease); }
@keyframes pop { 50% { transform: scale(1.3); } }

/* Kortelės (visa kortelė paspaudžiama per ::after) */
[data-card] { position: relative; }
.card__link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
[data-card]:hover .card__link { background-size: 100% 1.5px; color: var(--ink); }
.card__top { display: flex; align-items: center; gap: 8px; min-height: 34px; }

.card { display: flex; flex-direction: column; gap: 14px; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 0 6px 6px; flex: 1; }
.card__title { font-size: clamp(18px, 1.7vw, 21px); font-weight: 700; }
.card__excerpt { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.card .meta { margin-top: auto; padding-top: 4px; }
.card--compact .card__title { font-size: 18px; }
.card--flat { box-shadow: none; background: transparent; border-style: dashed; }
.card--big { padding: 14px; }
.card--big .card__title { font-size: clamp(22px, 2.4vw, 30px); }
.card--big .media { aspect-ratio: 16 / 9; }

/* Skaityta žymė */
[data-card].is-read::before { content: "✓ Skaityta"; position: absolute; z-index: 3; top: 18px; left: 18px; padding: 3px 8px; border-radius: 6px; background: rgba(15, 27, 45, .78); color: #fff; font: 700 10px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.rank__item.is-read::before, .river__card.is-read::before, .row-card.is-read::before { display: none; }
.is-read .card__link, .is-read .rank__title { color: var(--muted); }

.row-card { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row-card:last-child { border-bottom: 0; }
.row-card__media { aspect-ratio: 1; border-radius: 10px; }
.row-card__body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.row-card__title { font-size: 17px; font-weight: 700; }

/* Pagrindinė naujiena */
.lead { display: grid; height: 100%; }
.lead__media { aspect-ratio: 16 / 10; border-radius: var(--r); }
.lead__body { position: relative; z-index: 1; margin: -84px 28px 0 0; padding: 22px 24px 20px; background: var(--card); border-radius: 0 var(--r) var(--r) var(--r); border-top: 5px solid var(--c); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.lead__title { font-size: clamp(26px, 3.6vw, 42px); font-weight: 700; line-height: 1.06; }
.lead__excerpt { margin: 0; font-size: 17px; color: var(--muted); max-width: 60ch; }
.lead__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lead__cta { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); transition: gap .25s var(--ease); }
.lead:hover .lead__cta { gap: 12px; }
@media (max-width: 600px) { .lead__body { margin: -40px 10px 0 0; padding: 18px; } }

/* ---------- Pagrindinis puslapis ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, .95fr); gap: 22px; padding-top: 26px; align-items: start; }
.hero__side { display: grid; gap: 22px; }
@media (max-width: 1100px) { .hero { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } .hero__pop { grid-column: 1 / -1; } }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero__side { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .hero__side { grid-template-columns: 1fr; } }

.side-box { padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.side-box + .side-box { margin-top: 22px; }
.side-box__title { display: flex; align-items: center; gap: 8px; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--ink); padding-bottom: 14px; margin-bottom: 6px; border-bottom: 2px solid var(--ink); }
.side-box__title .ico { color: var(--accent); }
.widget ul { list-style: none; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--line); }

.rank { list-style: none; counter-reset: r; }
.rank__item { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
.rank__item:last-child { border-bottom: 0; padding-bottom: 0; }
.rank__num { font: 700 30px/1 var(--serif); color: transparent; -webkit-text-stroke: 1.2px var(--accent); transition: color .3s; }
.rank__item:hover .rank__num { color: var(--accent); }
.rank__body { display: flex; flex-direction: column; gap: 6px; }
.rank__title { font: 700 16px/1.3 var(--serif); color: var(--ink); }

/* Portalo pulsas */
.pulse-strip { display: grid; grid-template-columns: repeat(3, auto) 1fr auto; align-items: center; gap: clamp(16px, 3vw, 44px); margin-top: 36px; padding-block: 22px; background: linear-gradient(var(--ink), var(--ink)) 50% 0 / calc(100% - var(--gut) * 2) 2px no-repeat, linear-gradient(var(--ink), var(--ink)) 50% 100% / calc(100% - var(--gut) * 2) 2px no-repeat; }
.pulse-strip__item { display: flex; align-items: baseline; gap: 10px; }
.pulse-strip__item strong { font: 700 clamp(28px, 3.2vw, 40px)/1 var(--serif); color: var(--ink); }
.pulse-strip__item span { font: 500 13px/1.25 var(--sans); color: var(--muted); max-width: 12ch; }
.pulse-strip__line { width: 100%; height: 40px; color: var(--accent); stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 3.2s var(--ease) .4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pulse-strip__cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px; background: var(--accent); color: #fff; font: 700 14px/1 var(--sans); text-decoration: none; transition: transform .2s; }
.pulse-strip__cta:hover { color: #fff; transform: rotate(-1.5deg) translateY(-2px); }
@media (max-width: 900px) { .pulse-strip { grid-template-columns: repeat(3, 1fr); } .pulse-strip__line { display: none; } .pulse-strip__cta { grid-column: 1 / -1; justify-content: center; } .pulse-strip__item { flex-direction: column; gap: 4px; } }

/* Sekcijų antraštės */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 18px; margin-bottom: 22px; padding-bottom: 14px; position: relative; }
.sec-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--c, var(--accent)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q10 0 20 5 T40 5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 50% / 40px 10px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q10 0 20 5 T40 5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 50% / 40px 10px; opacity: .85; }
.sec-head__title { display: flex; align-items: center; gap: 10px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; }
.sec-head__title a { text-decoration: none; }
.sec-head__title .ico { color: var(--accent); }
.sec-head__sub { margin: 0 0 4px; color: var(--muted); font: italic 16px/1.4 var(--serif); }
.sec-head__count { margin-bottom: 6px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); font: 700 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.sec-head__more { margin-left: auto; margin-bottom: 4px; display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; transition: gap .25s var(--ease); }
.sec-head__more:hover { gap: 12px; color: var(--accent-ink); }
.scroller-nav { display: inline-flex; gap: 6px; margin-left: auto; margin-bottom: 2px; }
.scroller-nav + .sec-head__more { margin-left: 4px; }
.scroller-nav .icon-btn { width: 36px; height: 36px; }

/* Naujienų upė */
.river-sec { margin-top: 56px; }
.river-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 980px) { .river-grid { grid-template-columns: 1fr; } }
.river { list-style: none; position: relative; padding-left: 38px; }
.river::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 14px; background: var(--river-2); opacity: .7; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='40' viewBox='0 0 14 40'%3E%3Cpath d='M7 0 Q0 10 7 20 T7 40' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3C/svg%3E") repeat-y 50% 0 / 14px 40px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='40' viewBox='0 0 14 40'%3E%3Cpath d='M7 0 Q0 10 7 20 T7 40' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3C/svg%3E") repeat-y 50% 0 / 14px 40px; }
.river__item { position: relative; padding-bottom: 18px; }
.river__node { position: absolute; left: -38px; top: 22px; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 3px solid var(--c); display: grid; place-items: center; }
.river__node::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.river__item:first-child .river__node::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--c); opacity: .5; animation: ring 2.4s infinite; }
@keyframes ring { from { transform: scale(.7); opacity: .7; } to { transform: scale(1.5); opacity: 0; } }
.river__card { display: grid; grid-template-columns: 1fr 180px; gap: 18px; align-items: center; padding: 16px 16px 16px 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.river__card:hover { transform: translateX(4px); border-color: var(--c); }
.river__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.river__meta time { font: 700 12px/1 var(--mono); color: var(--accent-ink); text-transform: uppercase; letter-spacing: .04em; }
.river__title { font-size: clamp(19px, 2vw, 23px); font-weight: 700; margin-bottom: 6px; }
.river__excerpt { margin: 0; color: var(--muted); font-size: 15px; }
.river__media { aspect-ratio: 4 / 3; }
.river__card .save-btn { position: absolute; top: 8px; right: 8px; background: color-mix(in srgb, var(--card) 85%, transparent); }
@media (max-width: 600px) { .river__card { grid-template-columns: 1fr 96px; gap: 12px; padding: 14px; } .river__excerpt { display: none; } .river { padding-left: 30px; } .river__node { left: -32px; width: 22px; height: 22px; } }

.topics__list { list-style: none; display: grid; gap: 4px; }
.topics__list a { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; overflow: hidden; z-index: 0; }
.topics__bar { position: absolute; inset: 0 auto 0 0; width: var(--w); z-index: -1; background: color-mix(in srgb, var(--c) 16%, transparent); border-left: 3px solid var(--c); border-radius: 8px; transition: width .6s var(--ease), background .3s; }
.topics__list a:hover .topics__bar { width: 100%; background: color-mix(in srgb, var(--c) 26%, transparent); }
.topics__name { font: 600 15px/1.2 var(--sans); }
.topics__count { font: 700 12px/1.4 var(--mono); color: var(--muted); }

/* Kategorijų sekcijos */
.cat-sec, .quick, .more-sec, .related { margin-top: 64px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.feature__list { display: flex; flex-direction: column; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin-inline: -4px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .scroller { grid-auto-columns: calc((100% - 60px) / 4); } }
@media (max-width: 600px) { .scroller { grid-auto-columns: 80%; } }

.grid { display: grid; gap: 22px; }
.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: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.feed:empty { display: none; }
.feed > .is-new { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.pager { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 34px; }
.btn--more { min-width: min(100%, 320px); }
.js .pager .navigation.pagination { display: none; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font: 700 14px/1 var(--mono); }
.page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-numbers.dots { border: 0; background: none; }

/* ---------- Archyvai ---------- */
.page-head { padding-block: 26px 10px; }
.page-head__title, .archive-head__title { font-size: clamp(34px, 5vw, 60px); font-weight: 700; }
.archive-head { position: relative; padding-block: 26px 34px; margin-bottom: 34px; background:
	radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--c, var(--accent)) 22%, transparent), transparent 45%),
	var(--paper-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.archive-head::after { content: ""; position: absolute; right: -40px; bottom: -30px; width: 340px; height: 120px; opacity: .25; background: var(--c, var(--accent)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 120'%3E%3Cpath d='M0 70 H120 L140 20 L165 110 L185 40 L200 70 H340' fill='none' stroke='%23000' stroke-width='6' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 120'%3E%3Cpath d='M0 70 H120 L140 20 L165 110 L185 40 L200 70 H340' fill='none' stroke='%23000' stroke-width='6' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.archive-head__kicker { margin: 16px 0 6px; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--accent-ink); }
.archive-head__page { font-size: .45em; color: var(--muted); vertical-align: middle; }
.archive-head__desc { max-width: 70ch; margin-top: 12px; color: var(--ink-2); font: 18px/1.55 var(--serif); }
.archive-head__count { margin: 12px 0 0; font: 600 13px/1 var(--mono); color: var(--muted); }
.archive-head__search { margin-top: 18px; max-width: 640px; }
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; }
.with-side__main > .lead { margin-bottom: 26px; }
.with-side__main > .lead .lead__media { aspect-ratio: 16 / 8; }
.with-side__side { position: sticky; top: calc(80px + var(--admin)); }
@media (max-width: 1000px) { .with-side { grid-template-columns: 1fr; } .with-side__side { position: static; } }

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

.none { padding: 30px; border: 2px dashed var(--line-2); border-radius: var(--r); }
.none__title { font: 700 28px/1.2 var(--serif); color: var(--ink); }
.none__cats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Straipsnis ---------- */
.article__head { padding-top: 26px; max-width: calc(980px + var(--gut) * 2); }
.article__chips { margin: 18px 0 14px; }
.article__title { font-size: clamp(32px, 5.2vw, 58px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.article__lede { margin: 18px 0 0; font: 400 clamp(19px, 2.1vw, 23px)/1.45 var(--serif); color: var(--ink-2); max-width: 62ch; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.byline__avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 18px/1 var(--serif); text-transform: uppercase; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--c); }
.byline__avatar--lg { width: 64px; height: 64px; font-size: 26px; flex: none; }
.byline__who { display: flex; flex-direction: column; gap: 2px; }
.byline__name { font-weight: 700; text-decoration: none; }
.byline__meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 14px; }
.byline__stats { display: flex; gap: 8px; margin-left: auto; }
.article__media { margin: 28px auto 0; }
.article__media figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }

@media (min-width: 1181px) { .article__head { max-width: calc(var(--wrap) + var(--gut) * 2); padding-left: calc(var(--gut) + 108px); padding-right: calc(var(--gut) + 300px); } }
.article__layout { display: grid; grid-template-columns: 64px minmax(0, 720px) minmax(260px, 1fr); gap: 44px; margin-top: 38px; align-items: start; }
.article__single { max-width: calc(760px + var(--gut) * 2); margin-top: 30px; }
.article__rail { position: sticky; top: calc(90px + var(--admin)); }
.rail { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rail .share { flex-direction: column; }
.rail .save-btn { margin: 0; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--card); }
.article__side { position: sticky; top: calc(90px + var(--admin)); }
@media (max-width: 1180px) {
	.article__layout { grid-template-columns: minmax(0, 1fr); max-width: calc(760px + var(--gut) * 2); }
	.article__rail { position: static; order: -1; }
	.rail { flex-direction: row; flex-wrap: wrap; }
	.rail .share { flex-direction: row; }
	.article__side { position: static; }
	.byline__stats { margin-left: 0; }
}

.share { display: flex; gap: 8px; }
.share__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.share__btn:hover { transform: translateY(-2px); background: var(--ink); color: var(--paper); }
.share__btn--facebook:hover { background: #1877f2; color: #fff; }
.share__btn--linkedin:hover { background: #0a66c2; color: #fff; }
.fontsize { display: flex; gap: 6px; }
.rail .fontsize { flex-direction: column; }
.fontsize button { width: 44px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font: 700 14px/1 var(--serif); }
.fontsize button:hover { background: var(--paper-2); }
@media (max-width: 1180px) { .rail .fontsize { flex-direction: row; margin-left: auto; } }

.toc { margin-bottom: 30px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: var(--r-sm); background: var(--card); }
.toc summary { display: flex; align-items: center; gap: 8px; padding: 14px 18px; cursor: pointer; list-style: none; font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; margin-left: auto; font-size: 18px; transition: transform .25s; }
.toc details[open] summary::after { transform: rotate(45deg); }
.toc__count { padding: 2px 7px; border-radius: 999px; background: var(--paper-2); font-size: 11px; }
.toc ol { list-style: none; counter-reset: t; padding: 0 18px 16px; display: grid; gap: 2px; }
.toc li { counter-increment: t; }
.toc li a { display: grid; grid-template-columns: 30px 1fr; padding: 6px 8px; border-radius: 8px; text-decoration: none; font-size: 15px; line-height: 1.35; transition: background .2s; }
.toc li a::before { content: counter(t, decimal-leading-zero); font: 700 12px/1.6 var(--mono); color: var(--muted); }
.toc .toc__l3 a { padding-left: 30px; font-size: 14px; }
.toc li a:hover, .toc li a.is-active { background: color-mix(in srgb, var(--c) 12%, transparent); }
.toc li a.is-active::before { color: var(--c); }

/* Straipsnio tekstas */
.entry { font: 400 var(--fs-article)/1.72 var(--serif); color: var(--text); overflow-wrap: break-word; }
.entry > * { margin-top: 0; margin-bottom: 0; }
.entry > * + * { margin-top: 1.15em; }
.entry > p:first-of-type::first-letter { float: left; font: 700 4.1em/.82 var(--serif); padding: .06em .1em 0 0; color: var(--c); }
.entry h2 { font-size: 1.55em; margin-top: 1.9em; padding-top: .4em; border-top: 2px solid var(--ink); }
.entry h3 { font-size: 1.25em; margin-top: 1.6em; }
.entry h4 { font-size: 1.08em; margin-top: 1.4em; }
.entry a { color: var(--accent-ink); text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.entry a:hover { text-decoration-color: currentColor; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: .4em; }
.entry ul li::marker { color: var(--c); }
.entry ol li::marker { color: var(--c); font: 700 .85em var(--mono); }
.entry blockquote { margin-inline: 0; padding: .6em 0 .6em 1.2em; border-left: 4px solid var(--c); font-size: 1.12em; font-style: italic; color: var(--ink-2); }
.entry blockquote p + p { margin-top: .6em; }
.entry figure { margin-inline: 0; }
.entry img { border-radius: var(--r-sm); }
.entry figcaption, .entry .wp-caption-text { margin-top: .5em; font: 13px/1.4 var(--sans); color: var(--muted); }
.entry .wp-caption { max-width: 100%; }
.entry hr { border: 0; height: 12px; background: var(--line-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12' viewBox='0 0 40 12'%3E%3Cpath d='M0 6 Q10 0 20 6 T40 6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") repeat-x center / 40px 12px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12' viewBox='0 0 40 12'%3E%3Cpath d='M0 6 Q10 0 20 6 T40 6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") repeat-x center / 40px 12px; margin-block: 2em; }
.entry .table-scroll { overflow-x: auto; }
.entry table { width: 100%; border-collapse: collapse; font: 15px/1.45 var(--sans); }
.entry th, .entry td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry th { background: var(--paper-2); font-weight: 700; }
.entry code { font: .85em var(--mono); background: var(--paper-2); padding: .1em .35em; border-radius: 4px; }
.entry pre { overflow-x: auto; padding: 1em; border-radius: var(--r-sm); background: var(--ink); color: var(--paper); font: 14px/1.5 var(--mono); }
.entry iframe, .entry .wp-block-embed { border-radius: var(--r-sm); }
.entry .alignleft { float: left; margin: .3em 1.2em .8em 0; max-width: 50%; }
.entry .alignright { float: right; margin: .3em 0 .8em 1.2em; max-width: 50%; }
.entry .aligncenter { margin-inline: auto; }
.entry::after { content: ""; display: table; clear: both; }

.inline-rel { margin-block: 1.8em !important; }
.inline-rel__link { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); text-decoration: none !important; color: var(--ink) !important; transition: transform .25s var(--ease); }
.inline-rel__link:hover { transform: translateX(4px); }
.inline-rel__media { aspect-ratio: 1; border-radius: 10px; }
.inline-rel__text { display: flex; flex-direction: column; gap: 4px; }
.inline-rel__kicker { display: inline-flex; align-items: center; gap: 5px; font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent-ink); }
.inline-rel__title { font: 700 18px/1.3 var(--serif); }
.inline-rel__arrow { color: var(--accent); }

.article__foot { margin-top: 40px; display: grid; gap: 26px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font: 600 13px/1 var(--mono); }
.tags a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.share-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: var(--r); background: var(--ink); color: var(--paper); }
.share-cta__text { margin: 0; font: 17px/1.4 var(--serif); }
.share-cta .share__btn { background: transparent; border-color: rgba(255, 255, 255, .25); color: inherit; }
:root[data-theme="dark"] .share-cta { background: var(--card); color: var(--text); border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .share-cta { background: var(--card); color: var(--text); border: 1px solid var(--line); } }
.author-box { display: flex; gap: 18px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.author-box__name { margin: 0 0 4px; font: 700 19px/1.2 var(--serif); }
.author-box__name a { text-decoration: none; }
.author-box__bio { margin: 0; color: var(--muted); font-size: 15px; }
.page-links { margin-top: 24px; font-weight: 700; }

.adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 48px; }
.adjacent__link { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.adjacent__link:hover { border-color: var(--ink); transform: translateY(-3px); color: inherit; }
.adjacent__link--next { text-align: right; align-items: flex-end; grid-column: 2; }
.adjacent__label { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent-ink); }
.adjacent__title { font: 700 20px/1.25 var(--serif); color: var(--ink); }
@media (max-width: 700px) { .adjacent { grid-template-columns: 1fr; } .adjacent__link--next { grid-column: auto; } }

/* Kitas straipsnis (slenkantis pasiūlymas) */
.nextup { position: fixed; right: 20px; bottom: 88px; z-index: 40; width: min(360px, calc(100vw - 40px)); display: flex; align-items: stretch; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45); transform: translateY(20px); opacity: 0; transition: transform .4s var(--ease), opacity .4s; }
.nextup.is-on { transform: none; opacity: 1; }
.nextup[hidden] { display: none; }
.nextup__link { flex: 1; display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px; text-decoration: none; }
.nextup__media { aspect-ratio: 1; border-radius: 10px; }
.nextup__text { display: flex; flex-direction: column; gap: 4px; }
.nextup__kicker { font: 700 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent-ink); }
.nextup__title { font: 700 15.5px/1.28 var(--serif); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nextup__close { border: 0; background: transparent; color: var(--muted); padding: 10px; align-self: flex-start; }
@media (max-width: 600px) { .nextup { left: 12px; right: 12px; bottom: 80px; width: auto; } }

/* 404 */
.notfound { text-align: center; padding-block: 40px 10px; }
.notfound__pulse { width: min(600px, 100%); color: var(--accent); stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s var(--ease) forwards; }
.notfound__code { margin: 0; font: 700 clamp(80px, 16vw, 180px)/.9 var(--serif); color: var(--ink); letter-spacing: -.04em; }
.notfound__title { font-size: clamp(26px, 3.6vw, 40px); margin-top: 10px; }
.notfound__text { color: var(--muted); margin-top: 12px; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Poraštė ---------- */
.footer { position: relative; margin-top: 90px; padding: 70px 0 26px; background: var(--ink); color: #d8d1c3; }
:root[data-theme="dark"] .footer { background: #060c17; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .footer { background: #060c17; } }
.footer__wave { position: absolute; left: 0; right: 0; top: -30px; width: 100%; height: 60px; color: var(--accent); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.brand__link--footer { color: #fff; }
.brand__link--footer:hover { color: #fff; }
.brand__link--footer .brand__sub { color: #9aa5b8; }
.footer .logo-mark { --mark-bg: #ff5b22; --mark-fg: #0f1b2d; }
.footer__about { margin-top: 18px; max-width: 46ch; font: 16px/1.6 var(--serif); color: #b9b2a5; }
.footer__social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.footer__social a { display: inline-block; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: 13px; }
.footer__h { font: 700 12px/1 var(--mono); color: #fff; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 16px; }
.footer__col ul { list-style: none; display: grid; gap: 10px; }
.footer__col a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.footer__col small { color: #7f8899; font: 600 11px var(--mono); }
.footer__col .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 50px; padding-top: 20px; background: linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .12)) 50% 0 / calc(100% - var(--gut) * 2) 1px no-repeat; font-size: 13px; color: #8d96a6; }
.footer__bottom p { margin: 0; }
.footer__top { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Į viršų ---------- */
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); transition: opacity .3s, transform .3s var(--ease), background .2s; }
.js .totop:not(.is-on) { opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; }
.totop:hover { background: var(--accent); color: #fff; }
.totop:hover .ico { animation: nudge .6s var(--ease); }
@keyframes nudge { 40% { transform: translateY(-4px); } }
.totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 3; }
.totop__ring circle { stroke: rgba(255, 255, 255, .15); }
.totop__ring .totop__val { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .1s linear; }
.totop:hover .totop__val { stroke: #fff; }
.totop .ico { position: relative; }

/* Pranešimas */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100vw - 32px)); padding: 12px 14px 12px 18px; border-radius: 14px; background: var(--ink); color: var(--paper); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5); font-size: 14.5px; animation: rise .35s var(--ease); }
.toast[hidden] { display: none; }
.toast a { color: inherit; font-weight: 700; }
.toast button { border: 0; background: rgba(255, 255, 255, .12); color: inherit; border-radius: 8px; padding: 4px 8px; }
:root[data-theme="dark"] .toast { background: var(--card); color: var(--text); border: 1px solid var(--line); }

/* Spausdinimas */
@media print {
	.masthead, .ticker, .footer, .article__rail, .article__side, .related, .adjacent, .nextup, .totop, .toast, .share-cta, .readbar, .drawer, .search-layer { display: none !important; }
	body { background: #fff; color: #000; }
	.article__layout { display: block; }
	.entry { font-size: 12pt; }
	.entry a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
