/*
Theme Name: Galingos
Theme URI: https://epowerarena.lt/
Author: Galingos žinios
Description: Greita, SEO optimizuota naujienų tema „Galingos žinios“ svetainei. Veikia be papildomų įskiepių: struktūriniai duomenys, meta žymos, turinio rodyklė, skaitymo „įkrova“, mygtukas į viršų, susiję straipsniai, nukreipimai ir faviconas – temoje.
Version: 1.0.0
Requires at least: 6.4
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: galingos
Tags: news, blog, custom-logo, custom-menu, featured-images, dark-mode, accessibility-ready
*/

/* ==========================================================================
   1. Spalvos ir dydžiai
   ========================================================================== */
:root {
	--ink: #1A1D3A;
	--muted: #59607E;
	--bg: #EEF1F6;
	--surface: #FFFFFF;
	--line: #D6DBE8;
	--cobalt: #2336E8;
	--cobalt-deep: #1626B8;
	--cobalt-tint: #E2E6FF;
	--amber: #FFC531;
	--band: #1A1D3A;
	--hero: #2336E8;
	--on-hero: #FFFFFF;
	--on-hero-muted: rgba(255, 255, 255, .78);
	--focus: #2336E8;
	--on-cobalt: #FFFFFF;
	--shadow: 0 18px 40px -18px rgba(26, 29, 58, .45);

	--serif: 'Bitter', Georgia, 'Times New Roman', serif;
	--sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--plug: 6px 26px 6px 6px;
	--plug-lg: 10px 56px 10px 10px;
	--header-h: 68px;
	color-scheme: light;
}

[data-theme="dark"] {
	--ink: #E9ECF7;
	--muted: #A6ADCB;
	--bg: #10132B;
	--surface: #181C3A;
	--line: #2B3159;
	--cobalt: #8C9BFF;
	--cobalt-deep: #B3BDFF;
	--cobalt-tint: #252C66;
	--band: #0A0C1F;
	--hero: #1C2378;
	--focus: #FFC531;
	--on-cobalt: #10132B;
	--shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ink: #E9ECF7;
		--muted: #A6ADCB;
		--bg: #10132B;
		--surface: #181C3A;
		--line: #2B3159;
		--cobalt: #8C9BFF;
		--cobalt-deep: #B3BDFF;
		--cobalt-tint: #252C66;
		--band: #0A0C1F;
		--hero: #1C2378;
		--focus: #FFC531;
		--on-cobalt: #10132B;
	--on-cobalt: #10132B;
		--shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
		color-scheme: dark;
	}
}

/* ==========================================================================
   2. Pagrindai
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

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

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cobalt); }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0; font-weight: 750; letter-spacing: -.012em; text-wrap: balance; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}

.skip {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--amber); color: #1A1D3A; padding: 10px 16px; border-radius: 999px;
	font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

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

.site-main { display: block; min-height: 60vh; outline: none; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--cobalt); color: var(--on-cobalt); border: 2px solid var(--cobalt);
	font: 700 1rem/1 var(--sans); padding: 15px 26px; border-radius: 999px;
	text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: var(--on-cobalt); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ==========================================================================
   3. Įkrovos juosta (skaitymo progresas)
   ========================================================================== */
.charge {
	position: fixed; inset: 0 0 auto; height: 4px; z-index: 200; pointer-events: none;
	background: transparent;
}
.charge__fill {
	display: block; height: 100%; width: 100%;
	background: var(--amber);
	transform-origin: 0 50%;
	transform: scaleX(var(--p, 0));
	box-shadow: 0 0 12px rgba(255, 197, 49, .7);
}

/* ==========================================================================
   4. Naujausių juosta ir antraštė
   ========================================================================== */
.strip { background: var(--band); color: #E9ECF7; font-size: .875rem; }
.strip__inner { display: flex; align-items: center; gap: 16px; min-height: 40px; }
.strip__label {
	flex: none; background: var(--amber); color: #1A1D3A; font-weight: 700;
	padding: 3px 12px; border-radius: 999px; font-size: .8125rem;
}
.strip__list {
	display: flex; gap: 0; list-style: none; margin: 0; padding: 0;
	overflow-x: auto; scrollbar-width: none; white-space: nowrap;
	mask-image: linear-gradient(90deg, #000 85%, transparent);
	-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.strip__list::-webkit-scrollbar { display: none; }
.strip__list li + li { border-left: 1px solid rgba(233, 236, 247, .25); }
.strip__list a { display: block; padding: 4px 18px; text-decoration: none; color: inherit; }
.strip__list li:first-child a { padding-left: 0; }
.strip__list a:hover { color: var(--amber); }
.strip :focus-visible { outline-color: var(--amber); }

.masthead {
	position: sticky; top: 0; z-index: 100;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}
.admin-bar .masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar .masthead { top: 0; } }

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

.brand { margin: 0; font: inherit; flex: none; }
.brand__link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__link:hover { color: var(--ink); }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__name { font-family: var(--serif); font-size: 1.375rem; line-height: 1; letter-spacing: -.02em; }
.brand__a { font-weight: 800; }
.brand__b { font-weight: 450; }
.brand .custom-logo { max-height: 52px; width: auto; }

.nav { flex: 1; min-width: 0; }
.nav__list { display: flex; flex-wrap: wrap; gap: 4px 26px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
	display: block; padding: 8px 0; text-decoration: none;
	font-weight: 600; font-size: .96875rem; color: var(--ink);
	background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 3px no-repeat;
	transition: background-size .2s;
}
.nav__list a:hover, .nav__list [aria-current="page"], .nav__list .current-menu-item > a, .nav__list .current-cat > a { background-size: 100% 3px; color: var(--ink); }
.nav__list .sub-menu { display: none; }

.tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tool {
	display: inline-flex; align-items: center; gap: 8px; height: 42px; min-width: 42px; justify-content: center;
	padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink);
	font: 600 .9375rem/1 var(--sans); text-decoration: none; cursor: pointer;
}
.tool:hover { background: var(--cobalt-tint); color: var(--ink); }
.tool--spark { background: var(--amber); color: #1A1D3A; padding: 0 16px 0 12px; }
.tool--spark:hover { background: #FFD25E; color: #1A1D3A; }
.tool--menu { display: none; }

.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .i-sun { display: block; }
	:root:not([data-theme="light"]) .i-moon { display: none; }
}

.search-panel { border-top: 1px solid var(--line); background: var(--surface); padding: 18px 0 22px; }
.search { display: flex; gap: 10px; max-width: 760px; }
.search__input {
	flex: 1; min-width: 0; font: 400 1.125rem/1.2 var(--sans); color: var(--ink);
	background: var(--bg); border: 2px solid var(--line); border-radius: 999px; padding: 14px 22px;
}
.search__input:focus { border-color: var(--cobalt); outline: none; }
.search__btn {
	font: 700 1rem/1 var(--sans); border: 0; border-radius: 999px; padding: 0 26px; cursor: pointer;
	background: var(--cobalt); color: var(--on-cobalt);
}

@media (max-width: 1080px) {
	.tool__text { display: none; }
	.tool--spark { padding: 0 11px; }
}
@media (max-width: 900px) {
	.tool--menu { display: inline-flex; }
	.nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
	}
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px; }
	.nav__list a { padding: 13px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); background: none; }
	.masthead__inner { position: static; }
	.masthead { position: sticky; }
	.brand__name { font-size: 1.1875rem; }
	.brand__mark { width: 36px; height: 36px; }
}
@media (max-width: 480px) {
	.masthead__inner { gap: 10px; }
	.brand__link { gap: 9px; }
	.brand__name { font-size: 1.0625rem; }
	.brand__mark { width: 34px; height: 34px; }
	.tools { gap: 0; }
	.tool { min-width: 38px; height: 38px; padding: 0 8px; }
	.tool--spark { padding: 0 9px; margin: 0 4px; }
}
@media (max-width: 359px) {
	.brand__b { display: none; }
}

/* ==========================================================================
   5. Kortelės
   ========================================================================== */
.card { position: relative; display: grid; gap: 14px; align-content: start; }
.card__media { display: block; overflow: hidden; border-radius: var(--plug); background: var(--cobalt-tint); aspect-ratio: 16 / 9; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { display: grid; gap: 10px; align-content: start; justify-items: start; }
.card__title { font-size: 1.25rem; font-weight: 700; line-height: 1.22; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 2px; }
.card__dek { color: var(--muted); margin: 0; font-size: 1rem; line-height: 1.55; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font-size: .8125rem; }

/* Placeholder be nuotraukos */
.ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--cobalt-tint); }
.ph__mark { width: 30%; max-width: 72px; height: auto; opacity: .35; }

/* Žyma */
.chip {
	display: inline-block; font: 700 .8125rem/1 var(--sans); text-decoration: none;
	color: var(--cobalt); background: var(--cobalt-tint); padding: 6px 11px; border-radius: 999px;
}
a.chip:hover { background: var(--cobalt); color: var(--on-cobalt); }

/* Skaitymo laiko įkrova */
.meter { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.meter__cells { display: inline-flex; gap: 2px; padding: 2px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; opacity: .9; }
.meter__cells::after { content: ""; position: absolute; right: -4px; top: 50%; width: 2px; height: 5px; transform: translateY(-50%); background: currentColor; border-radius: 0 1px 1px 0; }
.meter__cells i { display: block; width: 4px; height: 8px; border-radius: 1px; background: transparent; }
.meter__cells i.on { background: var(--cobalt); }

/* Eilutės kortelė (srautas) */
.card--row { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px; align-items: start; }
.card--row .card__title { font-size: 1.375rem; }

/* Mini */
.card--mini { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; }
.card--mini .card__media { aspect-ratio: 1; border-radius: 6px 20px 6px 6px; }
.card--mini .card__title { font-size: 1.0625rem; font-weight: 650; line-height: 1.28; }

/* Reitingas */
.card--rank { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.card__rank { font: 800 2.25rem/1 var(--serif); color: var(--cobalt); font-variant-numeric: lining-nums; }
.card--rank .card__title { font-size: 1.0625rem; font-weight: 650; line-height: 1.3; }

@media (max-width: 640px) {
	.card--row { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
	.card--row .card__media { aspect-ratio: 1; border-radius: 6px 20px 6px 6px; }
	.card--row .card__title { font-size: 1.0625rem; }
	.card--row .card__dek { display: none; }
	.card--row .chip { display: none; }
}

/* ==========================================================================
   6. Pradžios puslapis
   ========================================================================== */
.hero { background: var(--hero); color: var(--on-hero); padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.hero::after {
	/* Įkrovos linija apačioje – vienintelis pakrovimo judesys */
	content: ""; position: absolute; left: 0; bottom: 0; height: 6px; width: 100%;
	background: var(--amber); transform-origin: 0 50%; animation: charge-in 1.1s .2s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes charge-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.hero a { color: inherit; }
.hero a:hover { color: inherit; }
.hero :focus-visible { outline-color: var(--amber); }

.card--lead { gap: 22px; }
.card--lead .card__media { border-radius: var(--plug-lg); aspect-ratio: 16 / 9; background: rgba(255, 255, 255, .12); }
.card--lead .card__title { font-size: clamp(2rem, 4.2vw, 3.375rem); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; }
.card--lead.is-long .card__title { font-size: clamp(1.875rem, 3.4vw, 2.75rem); }
.card--lead.is-xlong .card__title { font-size: clamp(1.75rem, 2.8vw, 2.375rem); line-height: 1.08; }
.card--lead .card__title a:hover { color: inherit; text-decoration-color: var(--amber); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.card--lead .card__dek { color: var(--on-hero-muted); font-family: var(--serif); font-size: 1.1875rem; line-height: 1.5; max-width: 60ch; }
.hero .card__meta { color: var(--on-hero-muted); }
.hero .chip { background: var(--amber); color: #1A1D3A; }
.hero a.chip:hover { background: #fff; color: #1A1D3A; }
.hero .meter__cells i.on { background: var(--amber); }

.hero__side { display: grid; gap: 22px; padding-left: clamp(0px, 3vw, 40px); border-left: 1px solid rgba(255, 255, 255, .22); }
.hero__side .card__title a:hover { color: inherit; text-decoration-color: var(--amber); }
.hero__side .card__media { background: rgba(255, 255, 255, .12); }
.hero .ph { background: rgba(255, 255, 255, .1); }
.hero .ph__mark { opacity: .5; }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__side { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 26px; }
}

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); align-items: start; }
@media (max-width: 980px) { .home-grid { grid-template-columns: 1fr; } }

.sect-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
.sect-head__title { font-size: clamp(1.5rem, 2.6vw, 1.875rem); font-weight: 800; }
.sect-head__title a { text-decoration: none; }
.sect-head__title a:hover { color: var(--cobalt); }
.sect-head__more { font-weight: 700; font-size: .9375rem; color: var(--cobalt); text-decoration: none; white-space: nowrap; }
.sect-head__more:hover { text-decoration: underline; }
.sect-head--on-dark { border-bottom-color: rgba(255, 255, 255, .85); }

.feed { display: grid; gap: 0; }
.feed > .card { padding: 26px 0; border-bottom: 1px solid var(--line); }
.feed > .card:first-child { padding-top: 0; }

.rail { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.admin-bar .rail { top: calc(var(--header-h) + 56px); }
@media (max-width: 980px) { .rail { position: static; } }
.rail__box { background: var(--surface); border-radius: 18px; padding: 24px; }
.rail__title { font-size: 1.25rem; font-weight: 800; margin-bottom: 18px; }

.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.rank-list li + li { padding-top: 18px; border-top: 1px solid var(--line); }

.topic-list { list-style: none; margin: 0; padding: 0; display: grid; }
.topic-list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.topic-list li:last-child a { border-bottom: 0; }
.topic-list__n { font-weight: 700; font-size: .8125rem; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 3px 10px; font-variant-numeric: tabular-nums; }

.rail__spark { display: grid; gap: 6px; background: var(--amber); color: #1A1D3A; border-radius: 18px 44px 18px 18px; padding: 24px; text-decoration: none; transition: transform .15s; }
.rail__spark strong { font: 800 1.25rem/1.2 var(--serif); }
.rail__spark:hover { color: #1A1D3A; transform: translateY(-2px); }
.rail__spark:focus-visible { outline-color: var(--ink); }

.more { margin-top: 32px; display: flex; justify-content: center; }
.btn--more { min-width: 260px; }
.btn--more[aria-busy="true"] { opacity: .7; pointer-events: none; }

.pager { margin-top: 28px; }
.pager .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink); background: var(--surface); }
.pager .page-numbers.current { background: var(--ink); color: var(--bg); }
.pager a.page-numbers:hover { background: var(--cobalt-tint); }
.js .is-loaded-more .pager { display: none; }

/* Greiti straipsniai */
.quick { background: var(--band); color: #E9ECF7; padding: clamp(40px, 5vw, 64px) 0; }
.quick a { color: inherit; }
.quick a:hover { color: var(--amber); }
.quick .card__meta { color: rgba(233, 236, 247, .72); }
.quick .meter__cells i.on { background: var(--amber); }
.quick .chip { background: rgba(255, 255, 255, .12); color: #fff; }
.quick a.chip:hover { background: var(--amber); color: #1A1D3A; }
.quick .card__media { background: rgba(255, 255, 255, .08); }
.quick :focus-visible { outline-color: var(--amber); }
.quick__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 28px;
	overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; scrollbar-color: var(--amber) transparent;
}
.quick__track > * { scroll-snap-align: start; }
.quick .card__title { font-size: 1.125rem; }

/* Temų blokai */
.topic { padding-top: clamp(40px, 5vw, 64px); }
.topic:last-of-type { padding-bottom: clamp(40px, 5vw, 64px); }
.topic__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: repeat(3, auto); gap: 22px 40px; }
.topic__grid > .card--tile { grid-row: 1 / span 3; }
.topic__grid > .card--tile .card__title { font-size: 1.625rem; font-weight: 800; }
.topic__grid > .card--row { grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.topic__grid > .card--row:last-child { border-bottom: 0; padding-bottom: 0; }
.topic__grid > .card--row .card__dek, .topic__grid > .card--row .chip { display: none; }
.topic__grid > .card--row .card__title { font-size: 1.125rem; }
@media (max-width: 860px) {
	.topic__grid { grid-template-columns: 1fr; }
	.topic__grid > .card--tile { grid-row: auto; }
	.topic__grid > .card--row { grid-template-columns: 112px minmax(0, 1fr); }
}

/* ==========================================================================
   7. Sąrašai (kategorijos, paieška)
   ========================================================================== */
.page-head { padding: clamp(28px, 4vw, 48px) 0 clamp(24px, 3vw, 36px); }
.page-head__title { font-size: clamp(2.125rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.025em; }
.page-head__count { color: var(--muted); font-weight: 600; margin: 10px 0 0; }
.page-head__desc { max-width: 68ch; margin-top: 16px; font-family: var(--serif); font-size: 1.125rem; line-height: 1.65; }
.page-head__desc p:last-child { margin-bottom: 0; }

.listing { padding-bottom: clamp(48px, 6vw, 80px); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 44px 32px; }

.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; min-width: 0; }
.crumbs li + li::before { content: "/"; padding: 0 10px; color: var(--line); font-weight: 700; }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 36ch; }

.empty { background: var(--surface); border-radius: 18px; padding: clamp(24px, 4vw, 40px); margin-bottom: 48px; max-width: 760px; }
.empty h2 { font-size: 1.625rem; margin-bottom: 10px; }
.empty .search { margin: 18px 0; }
.latest-grid { padding: 24px 0 64px; }

/* ==========================================================================
   8. Straipsnis
   ========================================================================== */
.article__head { max-width: 900px; padding-top: clamp(24px, 4vw, 44px); padding-bottom: 28px; display: grid; justify-items: start; gap: 16px; }
.article__head .crumbs { margin-bottom: 4px; max-width: 100%; }
.article__title { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.06; letter-spacing: -.025em; }
.article__title.is-long { font-size: clamp(1.875rem, 3.8vw, 2.875rem); }
.article__title.is-xlong { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1; }
.article__dek { font: 400 clamp(1.125rem, 2vw, 1.375rem)/1.5 var(--serif); color: var(--muted); max-width: 62ch; margin: 0; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: .9375rem; color: var(--muted); }
.byline a { color: var(--ink); font-weight: 700; text-decoration: none; }
.byline a:hover { color: var(--cobalt); }
.date--upd { display: inline-flex; gap: 6px; }

.article__hero { max-width: 1160px; margin: 0 auto 8px; }
.article__hero img { width: 100%; border-radius: var(--plug-lg); aspect-ratio: 16 / 9; object-fit: cover; background: var(--cobalt-tint); }
.article__hero figcaption { color: var(--muted); font-size: .875rem; margin-top: 10px; }

.article__layout { display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; gap: 56px; padding-top: clamp(24px, 4vw, 44px); padding-bottom: 48px; }
.article__layout.has-toc { grid-template-columns: 250px minmax(0, 720px); }
@media (max-width: 1080px) {
	.article__layout.has-toc { grid-template-columns: minmax(0, 720px); gap: 0; }
}

/* Turinio rodyklė */
.toc { position: relative; }
.toc__box { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.toc summary { font: 800 1.0625rem/1.3 var(--serif); cursor: pointer; list-style: none; padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
.toc summary::-webkit-details-marker { display: none; }
.toc__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: none; }
.toc__item a { display: block; padding: 7px 0 7px 14px; border-left: 3px solid transparent; color: var(--muted); text-decoration: none; font-size: .9375rem; line-height: 1.4; }
.toc__item--3 a { padding-left: 28px; font-size: .875rem; }
.toc__item a:hover { color: var(--ink); }
.toc__item a.is-active { color: var(--ink); border-left-color: var(--amber); font-weight: 700; }
@media (max-width: 1080px) {
	.toc { margin-bottom: 32px; }
	.toc__box { position: static; max-height: none; background: var(--surface); border-radius: 18px; padding: 18px 22px; }
	.toc summary { border-bottom: 0; padding-bottom: 0; display: flex; justify-content: space-between; align-items: center; }
	.toc summary::after { content: "+"; font: 700 1.5rem/1 var(--sans); color: var(--cobalt); }
	.toc__box[open] summary::after { content: "–"; }
}

/* Tekstas */
.prose { font: 400 1.1875rem/1.75 var(--serif); max-width: 68ch; overflow-wrap: break-word; }
.prose--page { margin: 0 auto 64px; }
.prose > * { margin-top: 0; margin-bottom: 1.15em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); font-weight: 800; margin-top: 2em; margin-bottom: .6em; }
.prose h3 { font-size: clamp(1.25rem, 2vw, 1.4375rem); font-weight: 750; margin-top: 1.7em; margin-bottom: .5em; }
.prose h4 { font-size: 1.125rem; margin-top: 1.5em; margin-bottom: .4em; }
.prose a { color: var(--cobalt); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--amber); }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--cobalt); font-weight: 700; }
.prose blockquote, .prose .wp-block-quote {
	margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 5px solid var(--amber);
	font-style: italic; font-size: 1.3125rem; line-height: 1.6;
}
.prose blockquote cite { display: block; font: normal 600 .9375rem/1.4 var(--sans); color: var(--muted); margin-top: 8px; }
.prose img, .prose .wp-block-image img { border-radius: 10px; height: auto; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption, .prose .wp-element-caption { font: 400 .875rem/1.5 var(--sans); color: var(--muted); margin-top: 8px; text-align: left; }
.prose hr { border: 0; height: 3px; width: 64px; background: var(--amber); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font: 400 .9375rem/1.5 var(--sans); }
.prose .wp-block-table { 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-weight: 700; background: var(--surface); }
.prose code { font-size: .875em; background: var(--surface); padding: 2px 6px; border-radius: 4px; }
.prose pre { background: var(--band); color: #E9ECF7; padding: 18px; border-radius: 10px; overflow-x: auto; font-size: .875rem; }
.prose .alignwide { max-width: none; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.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 iframe { width: 100%; border-radius: 10px; }
.prose .wp-block-embed__wrapper { position: relative; }
.prose .wp-block-button__link { background: var(--cobalt); color: var(--on-cobalt); border-radius: 999px; text-decoration: none; font: 700 1rem/1 var(--sans); padding: 15px 26px; }
.prose > p:first-child { font-size: 1.3125rem; line-height: 1.65; }
.prose::after { content: ""; display: table; clear: both; }

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

.article__foot { display: grid; gap: 28px; margin-top: 44px; padding-top: 28px; border-top: 3px solid var(--ink); max-width: 68ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.tags a:hover { background: var(--cobalt-tint); color: var(--ink); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.share__title { font: 800 1.0625rem/1 var(--serif); }
.share ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.share__btn {
	display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
	border: 2px solid var(--line); background: transparent; color: var(--ink);
	font: 700 .875rem/1 var(--sans); text-decoration: none; cursor: pointer;
}
.share__btn:hover { border-color: var(--cobalt); color: var(--cobalt); }
.share__btn.is-done { border-color: var(--amber); background: var(--amber); color: #1A1D3A; }

.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 18px; background: var(--surface); padding: 22px; border-radius: 18px; }
.author-box img { border-radius: 50%; }
.author-box__name { font: 800 1.125rem/1.3 var(--serif); margin-bottom: 6px; }
.author-box__name a { text-decoration: none; }
.author-box p:last-child { margin: 0; color: var(--muted); }

/* Ankstesnis / kitas */
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 56px; }
.pn__link { display: grid; gap: 8px; align-content: start; background: var(--surface); border-radius: 18px; padding: 24px 26px; text-decoration: none; transition: background .15s; }
.pn__link--next { text-align: right; grid-column: 2; }
.pn__link:hover { background: var(--cobalt-tint); color: var(--ink); }
.pn__dir { font-weight: 700; font-size: .875rem; color: var(--cobalt); }
.pn__title { font: 750 1.1875rem/1.3 var(--serif); }
@media (max-width: 700px) {
	.pn { grid-template-columns: 1fr; }
	.pn__link--next { grid-column: auto; text-align: left; }
}

.related { background: var(--surface); padding: clamp(40px, 5vw, 64px) 0; }

/* „Skaitykite toliau“ pasiūlymas */
.read-next {
	position: fixed; left: 20px; bottom: 20px; z-index: 150; width: min(380px, calc(100vw - 104px));
	background: var(--surface); border: 2px solid var(--ink); border-radius: 18px 40px 18px 18px;
	box-shadow: var(--shadow); padding: 14px 44px 14px 14px;
	transform: translateY(24px); opacity: 0; transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .3s;
}
.read-next.is-visible { transform: none; opacity: 1; }
.read-next__link { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; text-decoration: none; }
.read-next__media { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px 18px 6px 6px; background: var(--cobalt-tint); }
.read-next__media img { width: 100%; height: 100%; object-fit: cover; }
.read-next__text { display: grid; gap: 4px; }
.read-next__label { font-weight: 700; font-size: .8125rem; color: var(--cobalt); }
.read-next__title { font: 750 1rem/1.3 var(--serif); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-next__link:hover .read-next__title { text-decoration: underline; }
.read-next__close { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.read-next__close:hover { background: var(--bg); color: var(--ink); }
@media (max-width: 600px) {
	.read-next { left: 12px; bottom: 12px; width: calc(100vw - 88px); }
	.read-next__link { grid-template-columns: 56px minmax(0, 1fr); }
}

/* Komentarai */
.comments { padding: 24px 0 64px; max-width: 68ch; }
.comments__title { font-size: 1.5rem; margin-bottom: 18px; }
.comments__list { list-style: none; padding: 0; }
.comments__list .children { list-style: none; padding-left: 24px; }
.comment-body { background: var(--surface); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.comment-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.comment-form .submit { background: var(--cobalt); color: var(--on-cobalt); border: 0; border-radius: 999px; padding: 14px 24px; font: 700 1rem/1 var(--sans); cursor: pointer; }

/* ==========================================================================
   9. 404
   ========================================================================== */
.notfound { padding: clamp(40px, 6vw, 88px) 0; }
.notfound__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.notfound .notfound__code {
	max-width: none;
	margin: 0; font: 800 clamp(6rem, 18vw, 13rem)/.9 var(--serif); letter-spacing: -.04em;
	color: var(--cobalt);
}
.notfound__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 14px; }
.notfound p { max-width: 56ch; color: var(--muted); font-size: 1.0625rem; }
.notfound .search { margin: 22px 0; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 760px) { .notfound__inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   10. Poraštė ir mygtukas į viršų
   ========================================================================== */
.footer { background: var(--band); color: #C9CEE6; padding: clamp(48px, 6vw, 72px) 0 0; font-size: .9375rem; }
.footer a { color: #E9ECF7; text-decoration: none; }
.footer a:hover { color: var(--amber); }
.footer :focus-visible { outline-color: var(--amber); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; }
.footer__about p { margin: 18px 0; max-width: 40ch; line-height: 1.6; }
.brand__link--footer { color: #fff; }
.brand__link--footer:hover { color: #fff; }
.footer__spark { display: inline-block; font-weight: 700; color: var(--amber) !important; text-decoration: underline !important; text-underline-offset: 4px; }
.footer__title { font: 800 1.0625rem/1.2 var(--serif); color: #fff; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul ul { display: none; }
.footer__base { margin-top: 48px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8125rem; color: #9298B8; }
.footer__base p { margin: 0; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 160;
	width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
	display: grid; place-items: center; background: var(--cobalt); color: #fff;
	box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
	transition: opacity .25s, transform .25s, visibility .25s, background .15s;
}
[data-theme="dark"] .to-top { background: #2336E8; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--cobalt-deep); }
[data-theme="dark"] .to-top:hover { background: #1626B8; }
.to-top:focus-visible { outline-color: var(--amber); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--amber); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); }
.to-top__arrow { position: relative; }
@media (max-width: 600px) { .to-top { right: 12px; bottom: 12px; width: 52px; height: 52px; } }

/* ==========================================================================
   11. Judesio mažinimas ir spausdinimas
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

@media print {
	.strip, .masthead, .charge, .toc, .share, .pn, .related, .read-next, .to-top, .footer, .crumbs, .tags { display: none !important; }
	body { background: #fff; color: #000; }
	.article__layout, .article__layout.has-toc { display: block; }
	.prose { font-size: 12pt; max-width: none; }
	.prose a::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
