/*
Theme Name: Geri Žurnalas
Theme URI: https://www.geri-indai.lt/
Author: geri-indai.lt
Description: Unikali, greita ir SEO optimizuota naujienų / patarimų žurnalo tema svetainei geri-indai.lt. Veikia be papildomų įskiepių: Open Graph, JSON-LD, kanoninės nuorodos, turinio rodyklė, susiję straipsniai, skaitomiausi, „Įkelti daugiau“, tamsus režimas, mygtukas „Į viršų“, 301 peradresavimai seniems URL. Savi šriftai (Bitter + DM Sans) – jokių išorinių užklausų.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: geri-zurnalas
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Šriftai (SIL OFL – Bitter, DM Sans; lietuviškos raidės įtrauktos)
   ========================================================================== */
@font-face {
	font-family: "Bitter";
	src: url("assets/fonts/bitter-var.woff") format("woff");
	font-weight: 500 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("assets/fonts/dmsans-var.woff") format("woff");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("assets/fonts/dmsans-italic-var.woff") format("woff");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}

/* ==========================================================================
   2. Dizaino žetonai
   ========================================================================== */
:root {
	--paper: #f5f0e6;
	--paper-2: #ece4d5;
	--card: #fffdf8;
	--ink: #17181c;
	--ink-2: #4b4a51;
	--ink-3: #6e6c72;
	--line: #ddd3c2;
	--line-2: #e9e2d4;
	--accent: #1d3fcc;
	--accent-ink: #fff;
	--hot: #e0562b;
	--band-bg: #17181c;
	--band-ink: #f5f0e6;
	--band-ink-2: #b9b4aa;
	--band-line: #2f3038;

	--t1: #1d3fcc;
	--t2: #b5401b;
	--t3: #3f6b3a;
	--t4: #7a3570;
	--t5: #8a5a00;
	--t6: #0d6767;
	--t7: #a3264b;
	--t8: #3b4a63;

	--f-display: "Bitter", "Iowan Old Style", Georgia, serif;
	--f-ui: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1240px;
	--gut: clamp(16px, 4vw, 32px);
	--r: 18px;
	--r-media: 22px 22px 22px 6px;
	--shadow: 0 1px 0 rgba(23, 24, 28, .04), 0 10px 30px -18px rgba(23, 24, 28, .35);
	--sticky-top: var(--wp-admin--admin-bar--height, 0px);
	--ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: light;
}

[data-theme="dark"] {
	--paper: #121318;
	--paper-2: #1a1c22;
	--card: #1a1c22;
	--ink: #ece8df;
	--ink-2: #bdb9b0;
	--ink-3: #98948c;
	--line: #2e3039;
	--line-2: #24262e;
	--accent: #8fa6ff;
	--accent-ink: #0d0e12;
	--hot: #ff8a5c;
	--band-bg: #0b0c10;
	--band-ink: #ece8df;
	--band-ink-2: #a19d95;
	--band-line: #23252c;
	--t1: #8fa6ff;
	--t2: #ff9a73;
	--t3: #8fc486;
	--t4: #e39ad6;
	--t5: #f0c063;
	--t6: #6fd3d1;
	--t7: #ff8fb0;
	--t8: #a9b8d4;
	--shadow: 0 10px 30px -18px rgba(0, 0, 0, .8);
	color-scheme: dark;
}

.tone-1 { --c: var(--t1); }
.tone-2 { --c: var(--t2); }
.tone-3 { --c: var(--t3); }
.tone-4 { --c: var(--t4); }
.tone-5 { --c: var(--t5); }
.tone-6 { --c: var(--t6); }
.tone-7 { --c: var(--t7); }
.tone-8 { --c: var(--t8); }

/* ==========================================================================
   3. Pagrindai
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--f-ui);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: calc(var(--sticky-top) + 12px); color: var(--paper); }
.icon { flex: none; }
.site-main { display: block; min-height: 50vh; }

/* Mygtukai, žetonai, antspaudai */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .8em 1.4em; border-radius: 999px; border: 1.5px solid var(--ink);
	background: var(--ink); color: var(--paper);
	font: 600 .95rem/1 var(--f-ui); text-decoration: none;
	transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--big { padding: 1em 1.8em; font-size: 1rem; }

.stamp {
	position: relative; z-index: 2;
	display: inline-flex; align-items: center; gap: .5em;
	font: 700 .7rem/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase;
	color: var(--c, var(--accent)); text-decoration: none;
}
.stamp::before {
	content: ""; width: .62em; height: .62em; border-radius: 50%;
	background: var(--c, var(--accent));
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--accent)) 20%, transparent);
}
a.stamp:hover { text-decoration: underline; color: var(--c); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; gap: .45em;
	padding: .45em .9em; border-radius: 999px;
	border: 1px solid var(--line); background: var(--card);
	font: 600 .85rem/1.2 var(--f-ui); text-decoration: none; color: var(--ink);
	transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.chip[class*="tone-"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip:hover { border-color: var(--c, var(--accent)); color: var(--ink); transform: translateY(-1px); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: .55em; vertical-align: .1em; }

/* Paveikslėliai */
.media { position: relative; overflow: hidden; border-radius: var(--r-media); background: var(--paper-2); aspect-ratio: 16 / 10; isolation: isolate; }
.media__img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .3s; }
.media__ph {
	position: absolute; inset: 0; display: grid; place-items: center;
	color: var(--c, var(--accent));
	background:
		radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c, var(--accent)) 12%, var(--card)) 0 34%, transparent 35%),
		repeating-linear-gradient(135deg, color-mix(in srgb, var(--c, var(--accent)) 7%, var(--paper-2)) 0 10px, var(--paper-2) 10px 20px);
}
.media__ph svg { width: min(34%, 90px); opacity: .7; }
[data-theme="dark"] .media__img { filter: brightness(.9) contrast(1.05); }

/* ==========================================================================
   4. Viršutinė juosta, antraštė, temų navigacija
   ========================================================================== */
.progress { position: fixed; top: var(--sticky-top); left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress__bar { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--hot)); }

.utility { border-bottom: 1px solid var(--line-2); font-size: .8rem; color: var(--ink-3); }
.utility__in { display: flex; align-items: center; gap: 16px; min-height: 38px; }
.utility__date { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.utility__tagline { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.utility__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.utility__btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
	border: 0; background: transparent; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .8rem;
}
.utility__btn:hover { background: var(--paper-2); color: var(--ink); }
.utility__btn .icon { width: 17px; height: 17px; }
.js-theme .icon-sun { display: none; }
[data-theme="dark"] .js-theme .icon-sun { display: block; }
[data-theme="dark"] .js-theme .icon-moon { display: none; }

.masthead__in { display: flex; align-items: center; gap: 24px; padding-block: 22px; }
.brand { margin: 0; font-size: inherit; line-height: 0; }
.brand__link { display: inline-block; color: var(--ink); text-decoration: none; }
.brand__link:hover { color: var(--ink); }
.brand__svg { width: auto; height: 58px; display: block; }
.brand__img { max-height: 64px; width: auto; }
.brand__sub { opacity: .62; }
.masthead__claim {
	margin: 0 auto; padding-left: 24px; border-left: 1px solid var(--line);
	font: italic 500 .95rem/1.4 var(--f-ui); color: var(--ink-2); max-width: 30ch;
}
.search-toggle {
	display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
	padding: 10px 18px 10px 14px; border-radius: 999px; border: 1.5px solid var(--line);
	background: var(--card); text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink-2);
	min-width: 180px; transition: border-color .2s, box-shadow .2s;
}
.search-toggle:hover { border-color: var(--accent); color: var(--ink); box-shadow: var(--shadow); }

.topics {
	position: sticky; top: var(--sticky-top); z-index: 90;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
	border-block: 1px solid var(--line);
}
.topics__in { display: flex; align-items: center; gap: 10px; }
.topics__mark { display: none; flex: none; }
.topics.is-stuck .topics__mark { display: block; animation: pop .35s var(--ease); }
.topics__scroller {
	flex: 1; overflow-x: auto; scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.topics__scroller::-webkit-scrollbar { display: none; }
.topics__list { display: flex; gap: 2px; white-space: nowrap; padding-block: 6px; }
.topics__list a {
	position: relative; display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 14px; border-radius: 999px; text-decoration: none;
	font: 600 .93rem/1 var(--f-ui); color: var(--ink-2);
	transition: background .2s, color .2s;
}
.topics__list li[class*="tone-"] > a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); opacity: .9; }
.topics__list a:hover { background: var(--paper-2); color: var(--ink); }
.topics__list .current-menu-item > a,
.topics__list .current-menu-parent > a,
.topics__list .current-post-ancestor > a { background: var(--ink); color: var(--paper); }

/* Paieškos dialogas */
.search-dlg { width: min(720px, calc(100% - 24px)); border: 0; padding: 0; border-radius: 28px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); margin-top: 12vh; }
.search-dlg::backdrop { background: rgba(18, 19, 24, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.search-dlg[open] { animation: rise .3s var(--ease); }
.search-dlg__in { position: relative; padding: clamp(24px, 5vw, 44px); }
.search-dlg__kicker { font: 800 clamp(1.5rem, 4vw, 2.1rem)/1.1 var(--f-display); margin-bottom: 18px; }
.search-dlg__hint { margin: 22px 0 10px; font-size: .85rem; color: var(--ink-3); font-weight: 600; }
.search-dlg__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper-2); display: grid; place-items: center; }

.searchbar { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); }
.searchbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.searchbar .icon { color: var(--ink-3); }
.searchbar__input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1.05rem/1.4 var(--f-ui); color: var(--ink); padding: 10px 0; outline: none; }
.searchbar__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.searchbar__btn { border: 0; border-radius: 999px; padding: 12px 20px; background: var(--ink); color: var(--paper); font-weight: 700; }
.searchbar__btn:hover { background: var(--accent); color: var(--accent-ink); }

/* ==========================================================================
   5. Sekcijų antraštės
   ========================================================================== */
.sec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 24px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.sec-head__num { font: 800 .9rem/1 var(--f-display); color: var(--c, var(--hot)); letter-spacing: .04em; padding: 6px 9px; border-radius: 999px; border: 1.5px solid currentColor; align-self: center; }
.sec-head__title { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 800; }
.sec-head__note { margin: 0; color: var(--ink-3); font-size: .95rem; }
.sec-head__more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--c, var(--accent)); }
.sec-head__more .icon { width: 18px; transition: transform .2s var(--ease); }
.sec-head__more:hover .icon { transform: translateX(4px); }
.sec-head.tone-1, .sec-head.tone-2, .sec-head.tone-3, .sec-head.tone-4, .sec-head.tone-5, .sec-head.tone-6, .sec-head.tone-7, .sec-head.tone-8 { border-bottom-color: var(--c); }

.mini-head { display: flex; align-items: center; gap: 10px; font: 800 1.05rem/1.2 var(--f-display); margin-bottom: 16px; text-transform: none; }
.mini-head .icon { color: var(--hot); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 0 color-mix(in srgb, var(--hot) 60%, transparent); animation: pulse 2s infinite; }

/* ==========================================================================
   6. Kortelės
   ========================================================================== */
.card { position: relative; display: grid; gap: 14px; align-content: start; }
.card__body { display: grid; gap: 10px; align-content: start; }
.card__title { font-size: 1.22rem; font-weight: 700; line-height: 1.22; }
.card__link { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .35s var(--ease), color .2s; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__link { background-size: 100% 1.5px; color: var(--accent); }
.card:hover .media__img { transform: scale(1.045); }
.card__excerpt { margin: 0; color: var(--ink-2); font-size: .98rem; line-height: 1.55; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font-size: .8rem; color: var(--ink-3); font-weight: 500; }
.card__rt { display: inline-flex; align-items: center; gap: 5px; }
.card__rt .icon { width: 15px; height: 15px; }

.card--lead .card__title { font-size: clamp(1.75rem, 3.3vw, 2.75rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.card--lead .media { aspect-ratio: 16 / 10; }
.card--lead .card__excerpt { font-size: 1.08rem; max-width: 60ch; }

.card--feature { grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; }
.card--feature .card__title { font-size: clamp(1.4rem, 2.4vw, 1.95rem); font-weight: 800; line-height: 1.12; }
.card--feature .media { aspect-ratio: 4 / 3; }

.card--row { grid-template-columns: 220px 1fr; gap: 22px; padding-block: 20px; border-top: 1px solid var(--line); }
.card--row .media { aspect-ratio: 4 / 3; border-radius: 16px 16px 16px 4px; }
.card--row .card__title { font-size: 1.18rem; }
.card--row .card__excerpt { font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ==========================================================================
   7. Pagrindinis puslapis
   ========================================================================== */
.hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, .95fr); gap: 32px; padding-block: 34px 56px; }
.hero__duo { display: grid; gap: 28px; align-content: start; }
.hero__duo .card__title { font-size: 1.15rem; }
.hero__fresh { padding: 22px 22px 8px; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); align-self: start; box-shadow: var(--shadow); }
.fresh { counter-reset: fresh; position: relative; }
.fresh::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 18px; width: 1.5px; background: var(--line); }
.fresh__item { position: relative; display: grid; gap: 6px; padding: 0 0 18px 24px; }
.fresh__item::before { content: ""; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); }
.fresh__item:first-child::before { background: var(--hot); border-color: var(--hot); }
.fresh__item time { font-size: .75rem; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
.fresh__title { font: 700 1rem/1.3 var(--f-display); text-decoration: none; }
.fresh__title:hover { text-decoration: underline; }
.fresh__item .stamp { font-size: .64rem; }

/* Temų lentyna – lėkštės */
.plates { padding-block: 8px 56px; }
.plates__list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 20px 12px; }
.plate { display: grid; justify-items: center; gap: 8px; text-align: center; text-decoration: none; color: var(--ink); padding: 6px 4px; border-radius: 16px; }
.plate__disc {
	position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
	background:
		radial-gradient(circle, var(--card) 0 50%, color-mix(in srgb, var(--c) 10%, var(--card)) 51% 66%, var(--card) 67% 100%);
	border: 2px solid color-mix(in srgb, var(--c) 55%, transparent);
	box-shadow: inset 0 0 0 6px var(--card), 0 8px 18px -12px var(--c);
	transition: transform .45s var(--ease), box-shadow .3s;
}
.plate__disc span { font: 800 1.7rem/1 var(--f-display); color: var(--c); }
.plate__name { font-weight: 700; font-size: .93rem; line-height: 1.2; }
.plate__count { font-size: .76rem; color: var(--ink-3); font-weight: 500; }
.plate:hover { color: var(--ink); }
.plate:hover .plate__disc { transform: rotate(-14deg) scale(1.06); box-shadow: inset 0 0 0 6px var(--card), 0 14px 24px -12px var(--c); }
.plates--compact { padding-block: 24px 64px; }

/* Temų blokai */
.topic-block { padding-block: 8px 60px; }
.topic-block__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; }
.topic-block__main .card--feature { grid-template-columns: 1fr; gap: 16px; }
.topic-block__main .card--feature .media { aspect-ratio: 16 / 10; }
.topic-block__list .card--row { grid-template-columns: 150px 1fr; padding-block: 16px; }
.topic-block__list .card--row:first-child { border-top: 0; padding-top: 0; }
.topic-block__list .card--row .card__excerpt { display: none; }
.topic-block--flip .topic-block__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.topic-block--flip .topic-block__main { order: 2; }

/* Tamsi juosta */
.band { background: var(--band-bg); color: var(--band-ink); padding-block: 64px; margin-block: 8px 64px; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%; border: 2px solid var(--band-line); box-shadow: inset 0 0 0 40px var(--band-bg), inset 0 0 0 42px var(--band-line); pointer-events: none; }
.band__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; }
.band .mini-head { color: var(--band-ink); font-size: 1.3rem; }
.band .popular__item { border-color: var(--band-line); }
.band .popular__item a { color: var(--band-ink); }
.band .popular__meta { color: var(--band-ink-2); }
.band__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.band .card__meta { color: var(--band-ink-2); }
.band .card:hover .card__link { color: var(--band-ink); }
.band .media { background: #23252c; }
.band .stamp { --c: #ffb08f; }

/* Skaitomiausi (numeruotas sąrašas) */
.popular__list { counter-reset: pop; }
.popular__item { counter-increment: pop; position: relative; display: grid; gap: 4px; padding: 14px 0 14px 58px; border-top: 1px solid var(--line); min-height: 64px; }
.popular__item:first-child { border-top: 0; }
.popular__item::before {
	content: counter(pop, decimal-leading-zero); position: absolute; left: 0; top: 10px;
	font: 800 2.1rem/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.3px var(--hot);
}
.popular__item a { font: 700 1rem/1.3 var(--f-display); text-decoration: none; }
.popular__item a:hover { text-decoration: underline; }
.popular__meta { font-size: .78rem; color: var(--ink-3); }

/* Naujausi + puslapiavimas */
.latest { padding-block: 0 72px; }
.feed .card--row:first-child { border-top: 0; padding-top: 0; }
.feed .card--feature { padding-bottom: 28px; margin-bottom: 4px; }
.feed .card--feature + .card--row { border-top: 1px solid var(--line); padding-top: 20px; }
.feed .is-new { animation: rise .5s var(--ease) both; }
.loadmore { display: flex; justify-content: center; margin-top: 34px; }
.js-loadmore.is-loading { opacity: .6; pointer-events: none; }
.js .loadmore + .pagination { margin-top: 18px; }
.pagination { margin-top: 34px; }
.pagination .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: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-weight: 700; font-size: .9rem; }
.page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-numbers.dots { border: 0; background: none; }
a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   8. Archyvai / paieška
   ========================================================================== */
.page-head { padding-block: 26px 40px; border-bottom: 1px solid var(--line); margin-bottom: 40px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--c, var(--accent)) 6%, transparent)); }
.page-head__row { display: flex; align-items: center; gap: 24px; margin-top: 18px; }
.page-head__disc { flex: none; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, var(--card) 0 50%, color-mix(in srgb, var(--c) 12%, var(--card)) 51% 66%, var(--card) 67%); border: 2px solid var(--c); box-shadow: inset 0 0 0 7px var(--card); }
.page-head__disc span { font: 800 2.2rem/1 var(--f-display); color: var(--c); }
.page-head__kicker { margin: 0 0 6px; font: 700 .75rem/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--c, var(--hot)); }
.page-head__title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; }
.page-head__page { color: var(--ink-3); font-weight: 600; font-size: .5em; }
.page-head__desc { max-width: 70ch; margin-top: 10px; color: var(--ink-2); }
.page-head__desc p:last-child { margin: 0; }
.page-head__count { margin: 10px 0 0; font-size: .85rem; color: var(--ink-3); font-weight: 600; }
.page-head__search { margin-top: 24px; max-width: 640px; }

.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-bottom: 80px; }
.feed-layout__side .popular, .article__side .popular { margin-bottom: 36px; }
.sticky-col { position: sticky; top: calc(var(--sticky-top) + 84px); }
.empty { padding: 40px; border-radius: var(--r); background: var(--card); border: 1px dashed var(--line); }
.empty__title { font: 800 1.6rem/1.2 var(--f-display); }
.empty .plates__list { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; }

/* Kelio nuorodos */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: .8rem; color: var(--ink-3); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .5; }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }

/* ==========================================================================
   9. Straipsnis
   ========================================================================== */
.article__head { padding-block: 26px 28px; display: grid; gap: 16px; justify-items: start; max-width: 980px; }
.article__head .crumbs { margin-bottom: 6px; }
.article__title { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.06; letter-spacing: -.025em; }
.article__dek { margin: 0; font: 500 clamp(1.1rem, 2vw, 1.3rem)/1.5 var(--f-ui); color: var(--ink-2); max-width: 62ch; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: .88rem; color: var(--ink-2); padding-top: 6px; }
.byline { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.article__dates { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.article__updated { color: var(--hot); font-weight: 600; }
.article__rt { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.article__hero { margin: 0 auto 40px; }
.media--hero { aspect-ratio: 21 / 10; border-radius: 28px 28px 28px 8px; }
.article__hero figcaption { margin-top: 10px; font-size: .82rem; color: var(--ink-3); }

.article__grid { display: grid; grid-template-columns: 220px minmax(0, 700px) 290px; justify-content: space-between; gap: 40px; padding-bottom: 56px; }
.article__single { max-width: 760px; padding-bottom: 64px; }
.article__rail { position: relative; }
.article__rail > * { position: sticky; top: calc(var(--sticky-top) + 84px); }
.rail-share { margin-top: 28px; }
.rail-share .share { flex-direction: column; align-items: flex-start; }
.toc + .rail-share { position: static; }

/* Turinio rodyklė */
.toc { font-size: .88rem; }
.toc__sum { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font: 800 1rem/1 var(--f-display); padding: 12px 0; border-bottom: 2px solid var(--ink); }
.toc__sum::-webkit-details-marker { display: none; }
.toc__sum small { margin-left: auto; font: 600 .72rem/1 var(--f-ui); color: var(--ink-3); }
.toc__list { padding: 10px 0 0; max-height: calc(100vh - 260px); overflow: auto; scrollbar-width: thin; }
.toc__item a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); text-decoration: none; color: var(--ink-2); line-height: 1.35; transition: color .2s, border-color .2s; }
.toc__item--h3 a { padding-left: 26px; font-size: .82rem; }
.toc__item a:hover { color: var(--ink); }
.toc__item a.is-active { color: var(--accent); border-color: var(--accent); font-weight: 700; }

/* Turinio tipografija */
.prose { font-size: 1.14rem; line-height: 1.78; color: var(--ink); overflow-wrap: break-word; }
.prose > * { margin-block: 0 1.15em; }
.prose > p:first-of-type::first-letter { float: left; font: 800 3.9em/.8 var(--f-display); margin: .08em .1em 0 0; color: var(--accent); }
.prose h2, .prose h3, .prose h4 { scroll-margin-top: calc(var(--sticky-top) + 90px); margin-top: 1.9em; margin-bottom: .6em; font-weight: 800; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); }
.prose h2::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--hot); margin-bottom: .6em; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.1rem; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose ul li::marker { content: "● "; color: var(--hot); font-size: .7em; }
.prose ol li::marker { font-weight: 800; color: var(--accent); font-family: var(--f-display); }
.prose blockquote { margin-inline: 0; padding: 22px 26px 22px 64px; position: relative; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); font: italic 500 1.15em/1.6 var(--f-ui); }
.prose blockquote::before { content: "„"; position: absolute; left: 18px; top: -6px; font: 800 4rem/1 var(--f-display); color: var(--hot); }
.prose blockquote p:last-child { margin: 0; }
.prose img, .prose figure img { border-radius: 16px; height: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-element-caption { font-size: .82rem; color: var(--ink-3); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-family: var(--f-display); background: var(--paper-2); }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2em; }
.prose code { background: var(--paper-2); padding: .1em .35em; border-radius: 6px; font-size: .9em; }
.prose iframe { width: 100%; border-radius: 16px; }
.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; }

/* Įterpta „Taip pat skaitykite“ */
.inline-read { margin-block: 1.6em 2em !important; }
.inline-read__link { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent); text-decoration: none !important; color: var(--ink) !important; transition: transform .25s var(--ease), box-shadow .25s; }
.inline-read__link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.inline-read__media { aspect-ratio: 1; border-radius: 50%; }
.inline-read__media img { border-radius: 0 !important; }
.inline-read__body { display: grid; gap: 4px; }
.inline-read__kicker { font: 700 .7rem/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.inline-read__title { font: 700 1.08rem/1.3 var(--f-display); }

/* Dalinimasis */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__label { font: 700 .72rem/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.share__btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); transition: all .2s; }
.share__btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.share__btn .icon { width: 18px; height: 18px; }
.js-share { display: none; }
.has-share .js-share { display: inline-grid; }
.rail-share .share { flex-direction: row; }
.rail-share .share__label { flex-basis: 100%; margin-bottom: 4px; }

.article__foot { display: grid; gap: 26px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.endmark { display: flex; justify-content: center; }
.chips--tags .chip { font-weight: 600; color: var(--ink-2); }
.page-links { display: flex; gap: 8px; margin-top: 24px; font-weight: 700; }

/* Ankstesnis / naujesnis */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 56px; }
.post-nav__link { display: grid; gap: 8px; padding: 22px 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.post-nav__link:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.post-nav__link--next { text-align: right; grid-column: 2; }
.post-nav__dir { display: inline-flex; align-items: center; gap: 6px; font: 700 .75rem/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.post-nav__link--next .post-nav__dir { justify-content: flex-end; }
.post-nav__title { font: 700 1.1rem/1.3 var(--f-display); }

.more { padding-bottom: 56px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }

/* Kitas straipsnis – iššokanti kortelė */
.nextup {
	position: fixed; right: 88px; bottom: 20px; z-index: 95; width: min(380px, calc(100vw - 110px));
	display: flex; align-items: center; gap: 4px; padding: 10px 6px 10px 10px; border-radius: 20px;
	background: var(--card); border: 1px solid var(--line); box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .45);
	transform: translateY(140%); opacity: 0; transition: transform .45s var(--ease), opacity .3s;
}
.nextup[hidden] { display: flex; visibility: hidden; }
.nextup.is-on { transform: none; opacity: 1; visibility: visible; }
.nextup__link { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; text-decoration: none; flex: 1; min-width: 0; }
.nextup__media { aspect-ratio: 1; border-radius: 50%; }
.nextup__body { display: grid; gap: 3px; min-width: 0; }
.nextup__kicker { font: 700 .66rem/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--hot); }
.nextup__title { font: 700 .95rem/1.25 var(--f-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nextup__close { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; }
.nextup__close:hover { background: var(--paper-2); color: var(--ink); }

/* ==========================================================================
   10. Poraštė, „Į viršų“
   ========================================================================== */
.site-foot { background: var(--band-bg); color: var(--band-ink); padding-top: 64px; margin-top: 24px; }
.site-foot a { color: var(--band-ink); }
.site-foot a:hover { color: #fff; }
[data-theme="dark"] .site-foot a:hover { color: var(--accent); }
.site-foot__grid { display: grid; grid-template-columns: 1.3fr 1.25fr 1.3fr .8fr; gap: 48px; padding-bottom: 48px; }
.brand--foot { color: var(--band-ink); }
.brand--foot:hover { color: var(--band-ink); }
.brand--foot .brand__svg { height: 52px; }
.site-foot__about { color: var(--band-ink-2); margin: 18px 0 22px; max-width: 42ch; font-size: .95rem; }
.site-foot__title { font: 800 1rem/1 var(--f-display); margin-bottom: 18px; color: var(--band-ink); }
.site-foot__topics { columns: 2; column-gap: 20px; }
.site-foot__topics li { break-inside: avoid; margin-bottom: 9px; }
.site-foot__topics a, .site-foot__links a { text-decoration: none; font-size: .92rem; white-space: nowrap; }
.site-foot__topics small { color: var(--band-ink-2); font-size: .75rem; margin-left: 2px; }
.site-foot__latest li { display: grid; gap: 4px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--band-line); }
.site-foot__latest a { font: 600 .95rem/1.35 var(--f-display); text-decoration: none; }
.site-foot__latest time { font-size: .75rem; color: var(--band-ink-2); }
.site-foot__links li { margin-bottom: 10px; }
.site-foot .btn--ghost { color: var(--band-ink); font-size: .85rem; }
.site-foot .btn--ghost:hover { background: var(--band-ink); color: var(--band-bg); border-color: var(--band-ink); }
.site-foot__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px 28px; border-top: 1px solid var(--band-line); font-size: .82rem; color: var(--band-ink-2); }
.site-foot__bottom p { margin: 0; }
.site-foot__up { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; }
.site-foot__up .icon { width: 16px; }

.totop {
	position: fixed; right: 20px; bottom: 20px; z-index: 96; width: 56px; height: 56px; border-radius: 50%;
	display: grid; place-items: center; background: var(--ink); color: var(--paper); text-decoration: none;
	box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
	transition: transform .35s var(--ease), opacity .3s, background .2s;
}
.totop:hover { background: var(--accent); color: var(--accent-ink); }
.totop .icon-up { position: relative; z-index: 1; transition: transform .25s var(--ease); }
.totop:hover .icon-up { transform: translateY(-3px); }
.totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.totop__ring circle { fill: none; stroke: color-mix(in srgb, var(--paper) 18%, transparent); stroke-width: 3; }
.totop__ring .totop__val { stroke: var(--hot); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.js .totop { opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; }
.js .totop.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* 404 */
.notfound { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; padding-block: 64px; }
.notfound__plate { width: clamp(180px, 26vw, 300px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, var(--card) 0 52%, color-mix(in srgb, var(--accent) 10%, var(--card)) 53% 68%, var(--card) 69%); border: 3px solid var(--accent); box-shadow: inset 0 0 0 14px var(--card), var(--shadow); animation: spin 18s linear infinite; }
.notfound__plate span { font: 800 clamp(2.6rem, 6vw, 4.4rem)/1 var(--f-display); color: var(--accent); animation: spin 18s linear infinite reverse; }
.notfound__text { display: grid; gap: 14px; max-width: 620px; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }


/* ==========================================================================
   11. Animacijos
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hot) 55%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

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

/* ==========================================================================
   12. Prisitaikymas prie ekrano
   ========================================================================== */
@media (max-width: 1180px) {
	.article__grid { grid-template-columns: 200px minmax(0, 1fr); }
	.article__side { grid-column: 1 / -1; }
	.article__side .sticky-col { position: static; }
	.hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
	.hero__fresh { grid-column: 1 / -1; }
	.fresh { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 22px; }
	.fresh::before { display: none; }
	.plates__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.site-foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
	.masthead__claim { display: none; }
	.feed-layout { grid-template-columns: 1fr; }
	.feed-layout__side .sticky-col { position: static; }
	.topic-block__grid, .topic-block--flip .topic-block__grid { grid-template-columns: 1fr; gap: 24px; }
	.topic-block--flip .topic-block__main { order: 0; }
	.band__grid { grid-template-columns: 1fr; gap: 40px; }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.article__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.article__rail > * { position: static; }
	.rail-share { display: none; }
	.toc { border: 1px solid var(--line); border-radius: var(--r); padding: 4px 18px 10px; background: var(--card); }
	.toc__sum { border-bottom: 0; }
	.toc__details[open] .toc__sum { border-bottom: 1px solid var(--line); }
	.toc__list { max-height: none; }
	.card--feature { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 700px) {
	body { font-size: 1rem; }
	.utility__tagline { display: none; }
	.utility__btn span { display: none; }
	.masthead__in { padding-block: 14px; gap: 12px; }
	.brand__svg { height: 44px; }
	.search-toggle { min-width: 0; padding: 10px; }
	.search-toggle span { display: none; }
	.hero { grid-template-columns: 1fr; gap: 28px; padding-block: 20px 40px; }
	.hero__duo { grid-template-columns: 1fr 1fr; gap: 16px; }
	.hero__duo .card__title { font-size: 1rem; }
	.hero__duo .card__meta { display: none; }
	.plates__list { display: flex; overflow-x: auto; gap: 8px; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
	.plates__list::-webkit-scrollbar { display: none; }
	.plates__list li { flex: 0 0 104px; scroll-snap-align: start; }
	.plate__disc { width: 72px; height: 72px; }
	.empty .plates__list { display: flex; }
	.card--row, .topic-block__list .card--row { grid-template-columns: 112px 1fr; gap: 14px; padding-block: 16px; }
	.card--row .card__title { font-size: 1.02rem; }
	.card--row .card__excerpt { display: none; }
	.card--row .media { aspect-ratio: 1; }
	.band { padding-block: 48px; }
	.band__cards, .grid-3 { grid-template-columns: 1fr; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__link--next { grid-column: auto; }
	.media--hero { aspect-ratio: 16 / 10; border-radius: 18px 18px 18px 6px; }
	.article__hero { padding-inline: 0; }
	.article__hero .media--hero { border-radius: 0; }
	.article__hero figcaption { padding-inline: var(--gut); }
	.prose { font-size: 1.07rem; }
	.page-head__row { gap: 16px; }
	.page-head__disc { width: 68px; height: 68px; }
	.page-head__disc span { font-size: 1.6rem; }
	.notfound { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 32px; }
	.notfound__actions { justify-content: center; }
	.site-foot__grid { grid-template-columns: 1fr; gap: 36px; }
	.site-foot__bottom { flex-direction: column; align-items: flex-start; }
	.nextup { left: 12px; right: 80px; width: auto; bottom: 16px; }
	.totop { right: 14px; bottom: 16px; width: 52px; height: 52px; }
}
@media (max-width: 600px) {
	.topics, .progress { top: 0; }
}

/* Spausdinimas */
@media print {
	.utility, .topics, .search-toggle, .article__rail, .article__side, .share, .post-nav, .more, .plates, .site-foot, .totop, .nextup, .progress, .inline-read { display: none !important; }
	body { background: #fff; color: #000; }
	.article__grid { display: block; }
	.prose a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
