/*
Theme Name: Naujienų SPA
Theme URI: https://www.azuolynospa.lt/
Author: Naujienų SPA
Description: Greita, SEO optimizuota naujienų portalo tema be papildomų įskiepių. Žurnalo tipo pagrindinis puslapis, naujienų juosta, „Populiariausia“, skaitymo progresas, straipsnio turinys, „Taip pat skaitykite“, susiję straipsniai, „Skaitykite toliau“, tamsus režimas, mygtukas į viršų, JSON-LD struktūriniai duomenys, Open Graph ir senų URL nukreipimai.
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: naujienu-spa
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready
*/

/* =========================================================================
   1. Kintamieji (šviesus / tamsus režimas)
   ====================================================================== */
:root {
	--bg: #f7f5f0;
	--surface: #ffffff;
	--surface-2: #f0ede5;
	--ink: #14211b;
	--ink-2: #2b3a33;
	--muted: #5b6b63;
	--line: #e3ded3;
	--brand: #0e5a3f;
	--brand-2: #0b4532;
	--brand-ink: #ffffff;
	--accent: #e8a33d;
	--accent-ink: #9a5a0c;
	--live: #d0342c;
	--topbar: #0b1f17;
	--footer: #0b2a1f;
	--shadow: 0 1px 2px rgba(20, 33, 27, .06), 0 8px 24px -12px rgba(20, 33, 27, .18);
	--shadow-lg: 0 18px 50px -18px rgba(20, 33, 27, .45);
	--radius: 14px;
	--radius-sm: 10px;
	--serif: "Iowan Old Style", "Charter", "Bitstream Charter", Georgia, Cambria, "Noto Serif", "Times New Roman", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
	--wrap: 1240px;
	--gap: clamp(16px, 2.4vw, 28px);
	--nav-h: 52px;
	--sticky-top: var(--nav-h);
	color-scheme: light;
}

[data-theme="dark"] {
	--bg: #0f1613;
	--surface: #16201b;
	--surface-2: #1c2822;
	--ink: #e9efeb;
	--ink-2: #cfd9d3;
	--muted: #9db0a6;
	--line: #27352e;
	--brand: #4cc28f;
	--brand-2: #3aa877;
	--brand-ink: #0b1f17;
	--accent-ink: #f0b65c;
	--topbar: #070d0a;
	--footer: #0a120e;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0f1613;
		--surface: #16201b;
		--surface-2: #1c2822;
		--ink: #e9efeb;
		--ink-2: #cfd9d3;
		--muted: #9db0a6;
		--line: #27352e;
		--brand: #4cc28f;
		--brand-2: #3aa877;
		--brand-ink: #0b1f17;
		--accent-ink: #f0b65c;
		--topbar: #070d0a;
		--footer: #0a120e;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
		color-scheme: dark;
	}
}

/* =========================================================================
   2. Bazė
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--sticky-top) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 1rem/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: #14211b; }
.icon { flex: none; display: inline-block; vertical-align: middle; }

.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-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700;
	transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--brand-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap--narrow { max-width: 860px; }
.wrap--media { max-width: 1100px; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 44px; padding: .65em 1.4em; border: 0; border-radius: 999px;
	background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: .95rem;
	transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { background: var(--brand-2); color: var(--brand-ink); transform: translateY(-1px); box-shadow: var(--shadow); }

/* =========================================================================
   3. Viršutinė juosta + naujienų juosta (ticker)
   ====================================================================== */
.topbar { background: var(--topbar); color: #cfe3d9; font-size: .8125rem; }
.topbar__inner { display: flex; align-items: center; gap: 18px; min-height: 38px; }
.topbar__date { white-space: nowrap; opacity: .85; }
.ticker { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.ticker__label {
	display: inline-flex; align-items: center; gap: 7px; flex: none;
	font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: #fff;
	background: var(--live); padding: 3px 9px 3px 8px; border-radius: 4px;
}
.ticker__viewport { overflow: hidden; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); }
.ticker__track { display: flex; gap: 44px; margin: 0; padding: 0 0 0 24px; list-style: none; width: max-content; }
.ticker__track li { white-space: nowrap; position: relative; }
.ticker__track li + li::before { content: ""; position: absolute; left: -24px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); }
.ticker__track a { color: #e7f1ec; }
.ticker__track a:hover { color: #fff; text-decoration: underline; }
.ticker.is-running .ticker__track { animation: nspa-ticker var(--ticker-dur, 60s) linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
@keyframes nspa-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__viewport { overflow-x: auto; } .ticker.is-running .ticker__track { animation: none; } }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; position: relative; flex: none; }
.ticker__label .live-dot { background: #fff; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: nspa-pulse 1.8s ease-out infinite; }
.ticker__label .live-dot::after { border-color: #fff; }
@keyframes nspa-pulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

/* =========================================================================
   4. Antraštė (logotipas, įrankiai)
   ====================================================================== */
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand__mark { flex: none; border-radius: 12px; box-shadow: 0 6px 16px -8px rgba(14, 90, 63, .7); transition: transform .3s; }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.04); }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font: 700 clamp(1.45rem, 3vw, 1.9rem)/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.brand__accent { font: 800 .78em/1 var(--sans); letter-spacing: .06em; color: var(--accent-ink); }
[data-theme="dark"] .brand__accent { color: var(--accent); }
.brand__tag { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.custom-logo-link img { max-height: 56px; width: auto; }

.masthead__tools { display: flex; align-items: center; gap: 8px; }
.tool-btn {
	display: inline-flex; align-items: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
	font-size: .875rem; font-weight: 600; justify-content: center; transition: border-color .15s, background .15s, color .15s;
}
.tool-btn:hover { border-color: var(--brand); color: var(--brand); }
.tool-btn--search { padding-inline: 14px 8px; min-width: 200px; justify-content: flex-start; color: var(--muted); background: var(--surface-2); border-color: transparent; }
.tool-btn--search .tool-btn__text { flex: 1; text-align: left; }
.tool-btn__kbd { font: 600 .72rem/1 var(--sans); border: 1px solid var(--line); border-radius: 6px; padding: 4px 7px; background: var(--surface); color: var(--muted); }
.js-theme .icon-sun { display: none; }
[data-theme="dark"] .js-theme .icon-sun { display: inline-block; }
[data-theme="dark"] .js-theme .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .js-theme .icon-sun { display: inline-block; }
	:root:not([data-theme="light"]) .js-theme .icon-moon { display: none; }
}

/* =========================================================================
   5. Navigacija (lipni, slenkama horizontaliai mobiliuose)
   ====================================================================== */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .nav { top: 0; } }
.nav.is-stuck { box-shadow: 0 6px 20px -14px rgba(0, 0, 0, .5); }
.nav__inner { display: flex; align-items: center; gap: 4px; height: var(--nav-h); }
.nav__home { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--muted); flex: none; }
.nav__home.is-current, .nav__home:hover { background: var(--brand); color: var(--brand-ink); }
.nav__list {
	display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none;
	scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; min-width: 0;
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
	padding-right: 28px;
}
.nav__list::-webkit-scrollbar { display: none; }
.nav__list li { scroll-snap-align: start; flex: none; }
.nav__list a {
	display: block; padding: 8px 12px; border-radius: 8px; font-weight: 650; font-size: .9rem; color: var(--ink-2); white-space: nowrap; position: relative;
}
.nav__list a:hover { background: var(--surface-2); color: var(--brand); }
.nav__list .current-menu-item > a, .nav__list .current-category-ancestor > a, .nav__list .current-post-ancestor > a { color: var(--brand); }
.nav__list .current-menu-item > a::after, .nav__list .current-post-ancestor > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -7px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }

/* =========================================================================
   6. Paieškos langas
   ====================================================================== */
.search-dialog {
	width: min(720px, calc(100vw - 24px)); max-width: none; margin: 10vh auto auto; padding: 0;
	border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.search-dialog::backdrop { background: rgba(8, 18, 13, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.search-dialog[open] { animation: nspa-pop .2s ease-out; }
@keyframes nspa-pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.search-dialog__inner { position: relative; padding: 22px; }
.search-dialog__close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow); }
.search-dialog__hint { margin: 18px 0 8px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.search-form { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 2px solid transparent; border-radius: 14px; padding: 6px 6px 6px 14px; transition: border-color .15s; }
.search-form:focus-within { border-color: var(--brand); }
.search-form > .icon { color: var(--muted); }
.search-form__input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 1.1rem/1.4 var(--sans); padding: 10px 0; outline: none; }
.search-form__input::placeholder { color: var(--muted); }
.search-form__input::-webkit-search-cancel-button { cursor: pointer; }
.search-form__btn { min-height: 44px; }

/* =========================================================================
   7. Kortelės
   ====================================================================== */
.card { position: relative; display: grid; gap: 12px; min-width: 0; }
.card__media { display: block; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); aspect-ratio: 16 / 10; isolation: isolate; }
.card__media img, .card__media .thumb-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__media img { transform: scale(1.045); }
.thumb-ph { display: grid; place-items: center; background: linear-gradient(135deg, #0e5a3f, #134e3a 55%, #1f6b4f); }
.thumb-ph .brand__mark { opacity: .9; box-shadow: none; }
.card__body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.card__title { font-size: 1.2rem; line-height: 1.28; margin: 0; text-wrap: balance; }
.card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s, color .15s; }
.card__title a:hover { background-size: 100% 1.5px; }
/* Visa kortelė paspaudžiama (bet nuoroda – tik pavadinime, SEO/prieinamumui). */
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .cat-badge { position: relative; z-index: 2; }
.card__excerpt { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 500; }
.meta-sep { opacity: .6; }

.cat-badge {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px;
	background: var(--cat, var(--brand)); color: #fff !important; font: 800 .68rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase;
}
.cat-badge:hover { filter: brightness(1.12); }

/* Hero */
.card--hero { gap: 0; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: #0b1f17; box-shadow: var(--shadow); }
.card--hero .card__media { border-radius: 0; aspect-ratio: 16 / 10; }
.card--hero .card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 14, 10, 0) 30%, rgba(5, 14, 10, .55) 60%, rgba(5, 14, 10, .92) 100%); }
.card--hero .card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 3vw, 34px); gap: 12px; color: #fff; pointer-events: none; }
.card--hero .card__body a { pointer-events: auto; }
.card--hero .card__title { font-size: clamp(1.5rem, 3.1vw, 2.35rem); line-height: 1.12; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); max-width: 26ch; }
.card--hero .card__title a:hover { color: #fff; }
.card--hero .card__excerpt { color: rgba(255, 255, 255, .85); font-size: 1rem; max-width: 62ch; -webkit-line-clamp: 2; }
.card--hero .card__meta { color: rgba(255, 255, 255, .78); }

/* Side (hero dešinė) */
.card--side { grid-template-columns: 120px minmax(0, 1fr); align-items: start; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.card--side:last-child { border-bottom: 0; padding-bottom: 0; }
.card--side .card__media { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.card--side .card__title { font-size: 1.02rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--side .card__body { gap: 6px; }

/* List (srautas) */
.card--list { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px; align-items: start; padding-block: 22px; border-bottom: 1px solid var(--line); }
.card--list:first-child { padding-top: 0; }
.card--list .card__title { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

/* Feature */
.card--feature .card__media { aspect-ratio: 16 / 9; }
.card--feature .card__title { font-size: 1.18rem; }

/* Compact */
.card--compact { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: center; }
.card--compact .card__media { aspect-ratio: 1; border-radius: var(--radius-sm); }
.card--compact .card__title { font-size: 1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--compact .card__body { gap: 4px; }

/* Rank (populiariausia) */
.card--rank { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; padding-block: 14px; border-bottom: 1px dashed var(--line); counter-increment: rank; }
.card--rank:last-child { border-bottom: 0; }
.card__rank { font: 700 2.1rem/1 var(--serif); color: var(--accent); -webkit-text-stroke: 0; font-variant-numeric: lining-nums; text-align: center; }
.card--rank .card__title { font-size: 1rem; line-height: 1.32; }
.card--rank .card__body { gap: 4px; }

/* =========================================================================
   8. Pagrindinis puslapis
   ====================================================================== */
.hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: var(--gap); padding-block: var(--gap); }
.hero__side { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 20px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); align-items: start; padding-bottom: var(--gap); }
.layout--article { padding-top: 8px; }

.block { margin-bottom: var(--gap); }
.block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.block__title { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.block__title .live-dot { color: var(--live); }
.block__title a:hover { color: var(--cat, var(--brand)); }
.block__more { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.block__more:hover { color: var(--cat, var(--brand)); }
.block__more .icon { transition: transform .2s; }
.block__more:hover .icon { transform: translateX(3px); }

.cat-blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); padding-block: 8px 48px; border-top: 1px solid var(--line); padding-top: 40px; }
.cat-block { display: flex; flex-direction: column; gap: 18px; }
.cat-block .block__head { border-bottom-color: var(--cat); margin-bottom: 0; }
.cat-block .block__title::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--cat); }
.cat-block__list { display: grid; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* „Daugiau naujienų“ + puslapiavimas */
.more-wrap { display: flex; justify-content: center; padding-top: 28px; }
.btn--more { min-width: 240px; }
.btn--more.is-loading { opacity: .7; pointer-events: none; }
.btn--more.is-loading .icon { animation: nspa-spin .8s linear infinite; }
@keyframes nspa-spin { to { transform: rotate(360deg); } }
.pager { margin-top: 22px; }
.pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 650; font-size: .9rem; }
.pager .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pager .dots { border: 0; background: none; }
.feed > .card.is-new { animation: nspa-in .5s ease-out both; }
@keyframes nspa-in { from { opacity: 0; transform: translateY(12px); } }

/* =========================================================================
   9. Šoninė juosta
   ====================================================================== */
.sidebar__sticky { position: sticky; top: calc(var(--sticky-top) + 20px); display: grid; gap: 24px; }
.admin-bar .sidebar__sticky { top: calc(var(--sticky-top) + 52px); }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); padding: 20px; }
.side-box__title { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin: 0 0 6px; }
.side-box--popular .side-box__title .icon { color: var(--live); }
.side-box ul:not(.chips) { margin: 0; padding-left: 1.1em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--surface); font-size: .85rem; font-weight: 650; color: var(--ink-2);
	transition: background .15s, border-color .15s, color .15s;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cat, var(--brand)); }
.chips--tags .chip::before { display: none; }
.chip:hover { border-color: var(--cat, var(--brand)); color: var(--cat, var(--brand)); }
[data-theme="dark"] .chip:hover { color: var(--ink); }
.chip__count { font-size: .72rem; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 7px; }

/* =========================================================================
   10. Archyvai
   ====================================================================== */
.crumbs { padding-top: 18px; font-size: .82rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.crumbs li + li::before { content: "/"; opacity: .5; margin-right: 2px; }
.crumbs a { font-weight: 600; }
.crumbs span[aria-current] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48ch; }

.archive-head { position: relative; margin: 18px 0 28px; padding: clamp(22px, 4vw, 40px); border-radius: calc(var(--radius) + 6px); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.archive-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--cat, var(--brand)); }
.archive-head::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--cat, var(--brand)) 22%, transparent), transparent 70%); }
.archive-head__kicker { margin: 0 0 6px; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cat, var(--brand)); }
[data-theme="dark"] .archive-head__kicker { color: var(--brand); }
.archive-head__title { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0; }
.archive-head__desc { margin-top: 12px; color: var(--muted); max-width: 70ch; }
.archive-head__desc p:last-child { margin: 0; }
.archive-head__page { margin: 8px 0 0; color: var(--muted); font-weight: 600; }
.archive-head__search { margin-top: 18px; max-width: 620px; }

.empty { text-align: center; padding: 24px 0; }
.empty .search-form { max-width: 560px; margin: 18px auto 36px; }
.empty .grid { text-align: left; }

/* =========================================================================
   11. Straipsnis
   ====================================================================== */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 100; pointer-events: none; }
.admin-bar .read-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .read-progress { top: 46px; } }
.read-progress__bar { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #f3c46d); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.article__head { padding-top: 22px; padding-bottom: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.article__head > * { max-width: 900px; }
.article__title { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.08; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.article__lead { font: 400 clamp(1.1rem, 1.9vw, 1.3rem)/1.55 var(--serif); color: var(--ink-2); margin: 0; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .88rem; font-weight: 500; }
.article__meta-item { display: inline-flex; align-items: center; gap: 6px; }
.article__figure { margin: 0 auto 26px; }
.article__figure img { width: 100%; border-radius: calc(var(--radius) + 4px); aspect-ratio: 2 / 1; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 680px) { .article__figure img { aspect-ratio: 16 / 10; } }
.article__figure figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.article--page .article__figure img { aspect-ratio: auto; }

/* Dalijimasis */
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.share__label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share__btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); padding: 0; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.share__btn:hover { transform: translateY(-2px); color: #fff; border-color: transparent; background: var(--brand); }
.share__btn--facebook:hover { background: #1877f2; }
.share__btn--x:hover { background: #111; }
.share__btn--linkedin:hover { background: #0a66c2; }
.share__toast { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: .75rem; font-weight: 700; padding: 5px 9px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.share__toast:not(:empty) { opacity: 1; }

/* Turinys (TOC) */
.toc { margin: 0 0 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.toc__title { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; font-weight: 800; font-size: .95rem; list-style: none; }
.toc__title::-webkit-details-marker { display: none; }
.toc__title::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.toc[open] .toc__title::after { transform: rotate(-135deg) translateY(-1px); }
.toc__count { font-size: .72rem; background: var(--surface-2); border-radius: 999px; padding: 2px 8px; color: var(--muted); }
.toc__list { margin: 0; padding: 8px 18px 16px; counter-reset: toc; border-top: 1px solid var(--line); list-style: none; }
.toc__item { display: flex; gap: 8px; padding: 5px 0; font-size: .95rem; line-height: 1.4; }
.toc__item--h2 { counter-increment: toc; }
.toc__item--h2::before { content: counter(toc) "."; min-width: 1.4em; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.toc__item--h3 { padding-left: 2.2em; font-size: .9rem; }
.toc__item--h3::before { content: "–"; color: var(--muted); }
.toc__item a { color: var(--ink-2); }
.toc__item a:hover, .toc__item a.is-active { color: var(--brand); }
.toc__item a.is-active { font-weight: 700; }

/* Straipsnio tekstas */
.entry-content { font: 400 1.125rem/1.78 var(--serif); color: var(--ink-2); }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--ink); scroll-margin-top: calc(var(--sticky-top) + 24px); }
.entry-content h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 1.8em; margin-bottom: .6em; }
.entry-content h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); margin-top: 1.5em; margin-bottom: .5em; }
.entry-content h4 { font-size: 1.1rem; margin-top: 1.3em; }
.entry-content a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content > p:first-of-type::first-letter { float: left; font: 700 3.6em/.82 var(--serif); margin: .06em .1em 0 0; color: var(--brand); }
.entry-content ul, .entry-content ol { padding-left: 1.35em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--brand); font-weight: 700; }
.entry-content strong { color: var(--ink); }
.entry-content blockquote { margin-inline: 0; padding: 18px 22px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; font-size: 1.15em; }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .entry-content .wp-caption-text { font: .85rem/1.5 var(--sans); color: var(--muted); margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font: .95rem/1.5 var(--sans); display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--surface-2); color: var(--ink); }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.entry-content pre, .entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--surface-2); border-radius: 6px; }
.entry-content code { padding: .1em .35em; }
.entry-content pre { padding: 16px; overflow-x: auto; }
.entry-content iframe { width: 100%; border: 0; border-radius: var(--radius-sm); }
.alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.aligncenter { margin-inline: auto; display: block; }
.entry-content::after { content: ""; display: table; clear: both; }

/* „Taip pat skaitykite“ intarpas */
.inline-read { position: relative; margin: 1.8em 0 !important; padding: 18px 20px; border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); font-family: var(--sans); }
.inline-read__label { display: block; margin-bottom: 10px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.inline-read .card__title a { color: var(--ink); text-decoration: none; }
.inline-read .card__title { font-size: 1.08rem; }

.article__foot { margin-top: 32px; display: grid; gap: 24px; }
.article__end { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.article__end-text { font: 700 1.1rem/1.3 var(--serif); margin-bottom: 12px; }
.article__end .share { justify-content: center; margin: 0; }
.article__end .share__label { display: none; }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.post-nav__link { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, transform .15s; }
.post-nav__link:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }
.post-nav__link--next { text-align: right; grid-column: 2; }
.post-nav__label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.post-nav__title { font: 700 1.02rem/1.3 var(--serif); }

.related { background: var(--surface); border-top: 1px solid var(--line); padding-block: 44px 56px; }
.related .card__media { box-shadow: var(--shadow); }

/* „Skaitykite toliau“ – iššokanti kortelė */
.up-next {
	position: fixed; left: 20px; bottom: 20px; z-index: 60; width: min(380px, calc(100vw - 100px));
	padding: 16px 16px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
	transform: translateY(calc(100% + 40px)); opacity: 0; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s;
}
.up-next.is-visible { transform: none; opacity: 1; }
.up-next__label { display: block; margin-bottom: 10px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--live); }
.up-next__close { position: absolute; top: 8px; right: 8px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; }
.up-next .card--compact { grid-template-columns: 72px minmax(0, 1fr); }
.up-next .card__title { font-size: .98rem; padding-right: 18px; }

/* =========================================================================
   12. 404
   ====================================================================== */
.notfound { text-align: center; max-width: 720px; margin: 0 auto; padding: 56px 0 40px; }
.notfound__code { font: 800 clamp(6rem, 18vw, 10rem)/.9 var(--serif); margin: 0; background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound__title { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-top: 10px; }
.notfound__text { color: var(--muted); font-size: 1.08rem; }
.notfound .search-form { margin: 24px auto; max-width: 560px; }
.notfound .side-box { text-align: left; margin-bottom: 24px; }
.notfound .chips { justify-content: center; }

/* =========================================================================
   13. Poraštė
   ====================================================================== */
.site-footer { background: var(--footer); color: #bcd1c6; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #e6f0eb; }
.site-footer a:hover { color: var(--accent); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 40px; padding-block: 56px 40px; }
.site-footer__grid:has(> :nth-child(4)) { grid-template-columns: 1.4fr .9fr 1.5fr .9fr; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand__tag { color: #9fb8ab; }
.site-footer .brand__accent { color: var(--accent); }
.site-footer__about p { max-width: 44ch; line-height: 1.65; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 600; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 6px; }
.site-footer__title { font: 800 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__posts li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-footer__posts a { font: 600 1rem/1.35 var(--serif); }
.site-footer__posts time { font-size: .78rem; color: #8fa89b; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }

/* Mygtukas „Į viršų“ su progreso žiedu */
.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 54px; height: 54px; border-radius: 50%;
	display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9); transition: opacity .25s, transform .25s, visibility .25s, background .15s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-2); color: var(--brand-ink); }
.to-top:hover .icon { transform: translateY(-2px); }
.to-top .icon { transition: transform .2s; position: relative; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); transition: stroke-dashoffset .1s linear; }

/* =========================================================================
   14. WordPress branduolio klasės
   ====================================================================== */
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.sticky, .bypostauthor { /* WP reikalaujamos klasės */ }
.page-links { font-family: var(--sans); font-weight: 700; display: flex; gap: 8px; }
.alignwide { margin-inline: calc(-1 * min(80px, 6vw)); max-width: none; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }

/* =========================================================================
   15. Prisitaikymas prie ekranų
   ====================================================================== */
@media (max-width: 1100px) {
	.layout { grid-template-columns: minmax(0, 1fr) 300px; }
	.cat-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tool-btn--search { min-width: 0; }
	.tool-btn__kbd { display: none; }
}

@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; }
	.hero__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
	.card--side:nth-last-child(2) { border-bottom: 0; padding-bottom: 0; }
	.layout { grid-template-columns: 1fr; }
	.sidebar__sticky { position: static; }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__grid, .site-footer__grid:has(> :nth-child(4)) { grid-template-columns: 1fr 1fr; }
	.site-footer__about { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
	body { font-size: .98rem; }
	.wrap { padding-inline: 16px; }
	.topbar__date { display: none; }
	.masthead__inner { padding-block: 12px; }
	.brand__mark { width: 40px; height: 40px; }
	.brand__tag { display: none; }
	.tool-btn__text { display: none; }
	.tool-btn--search { padding: 0; width: 42px; justify-content: center; background: var(--surface); border-color: var(--line); color: var(--ink); }
	.tool-btn { padding: 0; width: 42px; }
	.hero { padding-top: 14px; }
	.hero__side { grid-template-columns: 1fr; padding: 16px; }
	.card--side:nth-last-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
	.card--side .reading, .card--side .meta-sep, .card--compact .reading { display: none; }
	.crumbs li:last-child { display: none; }
	.crumbs li:nth-last-child(2) a::after { content: ""; }
	.card--hero .card__media { aspect-ratio: 4 / 5; }
	.card--hero .card__excerpt { display: none; }
	.card--list { grid-template-columns: 1fr; gap: 12px; }
	.card--list .card__excerpt { -webkit-line-clamp: 2; }
	.cat-blocks { grid-template-columns: 1fr; }
	.grid--3 { grid-template-columns: 1fr; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__link--next { grid-column: auto; }
	.entry-content { font-size: 1.08rem; line-height: 1.72; }
	.site-footer__grid, .site-footer__grid:has(> :nth-child(4)) { grid-template-columns: 1fr; gap: 28px; }
	.up-next { left: 12px; right: 12px; bottom: 12px; width: auto; }
	body.has-up-next .to-top { bottom: 148px; right: 14px; }
	.to-top { right: 14px; bottom: 14px; width: 50px; height: 50px; }
	.alignleft, .alignright { float: none; margin: 0 0 1em; max-width: 100%; }
	.search-dialog { margin-top: 12px; }
	.search-dialog__close { top: 8px; right: 8px; }
	.search-dialog__inner { padding: 52px 14px 18px; }
	.search-form__btn { display: none; }
}

/* =========================================================================
   16. Spausdinimas
   ====================================================================== */
@media print {
	.topbar, .nav, .masthead__tools, .sidebar, .share, .toc, .inline-read, .related, .up-next, .to-top, .post-nav, .site-footer, .read-progress, .search-dialog { display: none !important; }
	body { background: #fff; color: #000; }
	.layout { display: block; }
	.entry-content a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
