/*
Theme Name: ALIO
Theme URI: https://alioskelbimai.lt/
Author: ALIO
Description: Greita, SEO optimizuota naujienų portalo tema alioskelbimai.lt. Veikia be papildomų įskiepių: schema.org, Open Graph, duonos trupiniai, turinio rodyklė, skaitomiausi straipsniai, tamsus režimas, naujienų juosta, „Rodyti daugiau“, mygtukas „Į viršų“, senų URL peradresavimai.
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: alio
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. Šriftai ir kintamieji
   ========================================================================== */
@font-face {
	font-family: "Inter Display";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/inter-display-bold.woff") format("woff");
}
@font-face {
	font-family: "Inter Display";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("assets/fonts/inter-display-extrabold.woff") format("woff");
}

:root {
	--accent: #D7341F;
	--accent-ink: #fff;
	--accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
	--bg: #fff;
	--bg-soft: #F4F5F7;
	--surface: #fff;
	--text: #0F1B2D;
	--text-2: #2A3547;
	--muted: #5B6678;
	--line: #E4E7EC;
	--ink: #0F1B2D;
	--shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px -12px rgba(15, 27, 45, .18);
	--radius: 14px;
	--radius-sm: 8px;
	--wrap: 1240px;
	--gap: clamp(16px, 2.4vw, 32px);
	--f-head: "Inter Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--f-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--header-h: 64px;
	color-scheme: light;

	/* Rubrikų spalvos */
	--c0: #D7341F; --c1: #1D5FD1; --c2: #0E8A5F; --c3: #B45309;
	--c4: #7C3AED; --c5: #0E7490; --c6: #BE185D; --c7: #4338CA;
}

[data-theme="dark"] {
	--accent: #FF6B4A;
	--accent-ink: #0B1220;
	--bg: #0B1220;
	--bg-soft: #111A2C;
	--surface: #131D31;
	--text: #E8EDF5;
	--text-2: #C9D3E3;
	--muted: #96A3B8;
	--line: #223049;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
	color-scheme: dark;
	--c0: #FF7A5C; --c1: #6EA2FF; --c2: #3CCB94; --c3: #F5A524;
	--c4: #B595FF; --c5: #4CC3DD; --c6: #F47CB4; --c7: #9AA3FF;
}

/* ==========================================================================
   2. Bazė
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
@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(--text);
	font: 400 1rem/1.6 var(--f-body);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.15; margin: 0; letter-spacing: -.015em; color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.sr-only, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--accent-ink); }
.i { flex: none; }

.btn {
	display: inline-flex; align-items: center; gap: .5em; justify-content: center;
	background: var(--accent); color: var(--accent-ink); border: 0;
	padding: .8em 1.4em; border-radius: 999px; font-weight: 700; font-size: .95rem;
	transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 8px 20px -8px var(--accent); }
.btn--ghost { background: transparent; color: var(--text); border: 2px solid var(--line); }
.btn--ghost:hover { color: var(--accent); border-color: var(--accent); box-shadow: none; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* ==========================================================================
   3. Antraštė
   ========================================================================== */
.site-header {
	position: sticky; top: -36px; z-index: 100;
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	transition: box-shadow .2s ease;
}
.admin-bar .site-header { top: -4px; }
@media (max-width: 782px) { .admin-bar .site-header { top: -36px; } }
.site-header.is-stuck { box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .35); }

.topbar { background: var(--ink); color: #C9D3E3; font-size: .8rem; height: 36px; }
[data-theme="dark"] .topbar { background: #070C16; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.topbar__date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__right { display: flex; align-items: center; gap: 12px; }
.topbar a { color: #C9D3E3; }
.topbar a:hover { color: #fff; }
.topbar .social { gap: 10px; }
.topbar .social .i { width: 16px; height: 16px; }

.masthead__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo { margin: 0; font-size: inherit; }
.logo a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo a:hover { color: var(--text); }
.logo__mark { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.logo a:hover .logo__mark { transform: rotate(-6deg) scale(1.05); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font: 800 1.85rem/1 var(--f-head); letter-spacing: -.03em; }
.logo__tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-top: 4px; font-weight: 600; }
.custom-logo-link img { max-height: 48px; width: auto; }

.masthead__actions { display: flex; gap: 6px; }
.icon-btn {
	width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
	border: 1px solid var(--line); background: var(--surface); transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.js-theme .i-sun { display: none; }
[data-theme="dark"] .js-theme .i-sun { display: block; }
[data-theme="dark"] .js-theme .i-moon { display: none; }

.search-panel { border-top: 1px solid var(--line); padding: 14px 0; background: var(--bg); }
.search {
	display: flex; align-items: center; gap: 8px; background: var(--bg-soft);
	border: 2px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 16px; max-width: 720px; margin-inline: auto;
	transition: border-color .15s;
}
.search:focus-within { border-color: var(--accent); }
.search .i { color: var(--muted); }
.search__input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--text); padding: 10px 4px; outline: 0; }
.search__input::-webkit-search-cancel-button { filter: grayscale(1); }
.search__btn { border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 10px 20px; border-radius: 999px; }

/* Navigacija – horizontaliai slenkami „žetonai“ (patogu mobiliuosiuose) */
.nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nav__inner { position: relative; }
.nav__list, .nav ul {
	display: flex; list-style: none; gap: 2px; overflow-x: auto; scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent);
	scroll-snap-type: x proximity;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav li { flex: none; scroll-snap-align: start; }
.nav a {
	display: block; padding: 12px 14px; font-weight: 700; font-size: .92rem; white-space: nowrap;
	position: relative; color: var(--text-2);
}
.nav a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
	background: var(--accent); transform: scaleX(0); transition: transform .2s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav .current-menu-item > a::after, .nav .current-post-ancestor > a::after, .nav .current-menu-parent > a::after { transform: scaleX(1); }
.nav .current-menu-item > a, .nav .current-post-ancestor > a { color: var(--text); }
.nav li:last-child a[href*="reklama"] { color: var(--accent); }

/* Naujienų juosta */
.ticker { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: .9rem; }
.ticker__inner { display: flex; align-items: center; gap: 14px; height: 44px; }
.ticker__label {
	flex: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .72rem;
	text-transform: uppercase; letter-spacing: .1em; background: var(--accent); color: var(--accent-ink);
	padding: 5px 10px; border-radius: 6px;
}
.ticker__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.ticker__viewport { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; }
.ticker li { white-space: nowrap; padding-inline: 18px; position: relative; }
.ticker li::before { content: ""; position: absolute; left: -2px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); transform: translateY(-50%); }
.ticker a { font-weight: 600; color: var(--text-2); }
.ticker a:hover { color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.ticker__track { animation: none; }
	.ticker__viewport { overflow-x: auto; }
	.ticker__clone { display: none !important; }
}

/* ==========================================================================
   4. Bendri komponentai
   ========================================================================== */
.site-main { display: block; padding-bottom: 56px; outline: 0; }

.badge {
	--bc: var(--accent);
	display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800;
	text-transform: uppercase; letter-spacing: .08em; color: var(--bc); line-height: 1.2;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
a.badge:hover { color: var(--bc); text-decoration: underline; text-underline-offset: 3px; }
.badge--ghost { color: var(--muted); }
.badge--ghost::before { background: var(--line); }
.badge--c0 { --bc: var(--c0); } .badge--c1 { --bc: var(--c1); } .badge--c2 { --bc: var(--c2); } .badge--c3 { --bc: var(--c3); }
.badge--c4 { --bc: var(--c4); } .badge--c5 { --bc: var(--c5); } .badge--c6 { --bc: var(--c6); } .badge--c7 { --bc: var(--c7); }
.c0 { --cc: var(--c0); } .c1 { --cc: var(--c1); } .c2 { --cc: var(--c2); } .c3 { --cc: var(--c3); }
.c4 { --cc: var(--c4); } .c5 { --cc: var(--c5); } .c6 { --cc: var(--c6); } .c7 { --cc: var(--c7); }

.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--muted); }
.meta__read { display: inline-flex; align-items: center; gap: 4px; }
.meta__sep { opacity: .6; }

.ph {
	display: grid; place-items: center; width: 100%; height: 100%;
	background: linear-gradient(135deg, var(--bg-soft), color-mix(in srgb, var(--accent) 14%, var(--bg-soft)));
}
.ph svg { opacity: .55; }

.sec-head {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--text); position: relative;
}
.sec-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--cc, var(--accent)); }
.sec-head__title { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 800; }
.sec-head__title a:hover { color: var(--cc, var(--accent)); }
.sec-head__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--muted); }
.sec-head__more:hover { color: var(--cc, var(--accent)); }
.sec-head__more .i { transition: transform .2s; }
.sec-head__more:hover .i { transform: translateX(3px); }

.media-zoom img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }

/* Kortelės */
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card__media, .lead__media, .row-card__media, .mini__media {
	display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); aspect-ratio: 16 / 9; position: relative;
}
.card__media img, .lead__media img, .row-card__media img, .mini__media img {
	width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.card:hover .card__media img, .lead:hover .lead__media img, .row-card:hover .row-card__media img { transform: scale(1.045); }
.card__body { display: flex; flex-direction: column; gap: 8px; }
.card__title { font-size: 1.08rem; font-weight: 700; line-height: 1.28; }
.card__title a, .lead__title a, .row-card__title a {
	background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%;
	transition: background-size .3s ease, color .15s;
}
.card__title a:hover, .lead__title a:hover, .row-card__title a:hover { background-size: 100% 2px; }
.card__excerpt { color: var(--muted); font-size: .92rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Horizontali kortelė */
.row-card { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row-card:first-child { padding-top: 0; }
.row-card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row-card__title { font-size: clamp(1.08rem, 1.6vw, 1.3rem); font-weight: 800; line-height: 1.25; }
.row-card__excerpt { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) {
	.row-card { grid-template-columns: 112px 1fr; gap: 14px; padding: 16px 0; }
	.row-card__media { aspect-ratio: 1; border-radius: 10px; }
	.row-card__excerpt { display: none; }
	.row-card__title { font-size: 1rem; }
	.row-card .meta__read { display: none; }
	.row-card .meta__sep { display: none; }
}

/* Lead */
.lead { display: flex; flex-direction: column; gap: 16px; }
.lead__media { aspect-ratio: 16 / 9; border-radius: calc(var(--radius) + 4px); }
.lead__body { display: flex; flex-direction: column; gap: 10px; }
.lead__title { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.lead__excerpt { color: var(--text-2); font-size: 1.05rem; max-width: 62ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) { .lead__excerpt { font-size: .98rem; -webkit-line-clamp: 2; } }

/* Mini */
.mini-list { list-style: none; counter-reset: mini; }
.mini { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.mini:first-child { border-top: 0; padding-top: 4px; }
.mini__media { width: 96px; flex: none; aspect-ratio: 4 / 3; border-radius: 10px; }
.mini__n {
	flex: none; width: 34px; font: 800 1.9rem/1 var(--f-head); color: transparent;
	-webkit-text-stroke: 1.5px var(--accent); letter-spacing: -.04em;
}
.mini__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mini__title { font-weight: 700; font-size: .95rem; line-height: 1.32; }

/* Tinkleliai */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Išdėstymas su šonine juosta */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.layout__main { min-width: 0; }
@media (max-width: 1024px) { .layout { grid-template-columns: 1fr; } }

.sidebar__sticky { display: flex; flex-direction: column; gap: 24px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.box__title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; }
.box__title .i { color: var(--accent); }
.box ul:not(.cat-list):not(.mini-list) { list-style: none; }
.box ul:not(.cat-list):not(.mini-list) li { padding: 6px 0; border-top: 1px solid var(--line); }
.cat-list { list-style: none; display: flex; flex-direction: column; }
.cat-list__link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-weight: 600; }
.cat-list li:first-child .cat-list__link { border-top: 0; }
.cat-list__link span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.cat-list__link span:first-child::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--cc); }
.cat-list__link:hover { color: var(--cc); }
.cat-list__count { font-size: .78rem; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: 2px 9px; font-variant-numeric: tabular-nums; }

/* Socialiniai */
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.site-footer .social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.site-footer .social a:hover { background: var(--accent); color: #fff; }

/* Žetonai */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0; }
.chip { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: .9rem; background: var(--surface); }
.chip:hover { border-color: var(--cc); color: var(--cc); }

/* ==========================================================================
   5. Pagrindinis puslapis
   ========================================================================== */
.hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); padding-block: clamp(20px, 3vw, 36px) clamp(32px, 4vw, 56px); }
.hero__side { display: flex; flex-direction: column; }
.card--side { flex-direction: row; align-items: flex-start; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.card--side:first-child { border-top: 0; padding-top: 0; }
.card--side .card__media { width: 140px; flex: none; aspect-ratio: 4 / 3; border-radius: 10px; }
.card--side .card__title { font-size: 1.02rem; }
@media (max-width: 1024px) {
	.hero { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.card--side .card__media { width: 104px; }
}

.cat-block { padding-block: clamp(32px, 5vw, 56px); }
.cat-block--b { background: var(--bg-soft); }
.cat-block .card__title { font-size: 1.02rem; }

.more { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 32px; }
.js .more .navigation.pagination { display: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; }
.page-numbers.current { background: var(--text); color: var(--bg); border-color: var(--text); }
a.page-numbers:hover { border-color: var(--accent); }
.page-numbers.dots { border: 0; }

/* ==========================================================================
   6. Archyvai, paieška, 404
   ========================================================================== */
.crumbs { padding: 18px 0 0; font-size: .82rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs li + li::before { content: "/"; opacity: .5; margin-right: 4px; }
.crumbs a { display: inline-flex; align-items: center; gap: 5px; }
.crumbs [aria-current] span { display: inline-block; max-width: 40ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

.page-head { padding: clamp(20px, 3vw, 32px) 0 clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.page-head__kicker { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cc, var(--accent)); margin-bottom: 8px; }
.page-head__title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; }
.page-head__desc { color: var(--text-2); max-width: 70ch; margin-top: 12px; font-size: 1.05rem; }
.page-head__count { color: var(--muted); margin-top: 10px; font-size: .9rem; }
.page-head__search { margin-top: 20px; }
.page-head__search .search { margin-inline: 0; }
.page-head--archive { position: relative; }
.page-head--archive::before { content: ""; display: block; width: 48px; height: 6px; border-radius: 6px; background: var(--cc, var(--accent)); margin-bottom: 16px; }
.archive-lead { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.archive-lead .lead__title { font-size: clamp(1.5rem, 3vw, 2.2rem); }

.empty { text-align: center; padding: 48px 20px; border: 2px dashed var(--line); border-radius: var(--radius); }
.empty__title { font: 800 1.4rem/1.2 var(--f-head); margin-bottom: 8px; }
.empty .search { margin-top: 20px; }

.notfound { text-align: center; padding: clamp(40px, 8vw, 96px) 0 48px; max-width: 760px; margin-inline: auto; }
.notfound__code { font: 800 clamp(5rem, 18vw, 10rem)/1 var(--f-head); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 3px var(--accent); }
.notfound__title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-top: 8px; }
.notfound__text { color: var(--muted); margin: 12px auto 24px; max-width: 56ch; }
.notfound .btn { margin-top: 8px; }

/* ==========================================================================
   7. Straipsnis
   ========================================================================== */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; }
.admin-bar .progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .progress { top: 46px; } }
.progress__bar { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #FFB020)); transform-origin: 0 50%; transform: scaleX(0); }

.layout--article { padding-top: 12px; grid-template-columns: minmax(0, 1fr) 300px; }
.article { min-width: 0; }
.article__head { padding: 16px 0 24px; }
.article__cats { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.article__title { font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; max-width: 24ch; text-wrap: balance; }
.article--page .article__title { max-width: none; }
.article__dek { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--text-2); margin-top: 16px; line-height: 1.5; max-width: 60ch; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 20px; font-size: .88rem; color: var(--muted); }
.byline { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
.byline__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; border: 1px solid var(--line); }
.article__dates { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.article__read { display: inline-flex; align-items: center; gap: 6px; }

.article__figure { margin: 0 0 32px; }
.article__figure img { width: 100%; border-radius: calc(var(--radius) + 4px); max-height: 640px; object-fit: cover; }
.article__figure figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }

.article__body { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 28px; }
.share--side { flex-direction: column; position: sticky; top: calc(var(--header-h) + 72px); align-self: start; }
.share--side .share__label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .7rem; margin-bottom: 4px; align-self: center; }
@media (max-width: 1200px) {
	.article__body { grid-template-columns: minmax(0, 1fr); }
	.share--side { display: none; }
}

/* Dalinimasis */
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share__label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.share__btn {
	width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line);
	background: var(--surface); color: var(--text-2); position: relative; transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.share__btn:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.share__btn--facebook:hover { background: #1877F2; }
.share__btn--x:hover { background: #000; }
.share__btn--linkedin:hover { background: #0A66C2; }
.share__btn--whatsapp:hover { background: #25D366; }
.share__btn--viber:hover { background: #7360F2; }
.share__btn--telegram:hover { background: #229ED9; }
.js-copy:hover, .js-native-share:hover { background: var(--accent); }
.share__ok {
	position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); white-space: nowrap;
	background: var(--text); color: var(--bg); font-size: .75rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: .2s;
}
.js-copy.is-copied .share__ok { opacity: 1; transform: translateX(-50%) translateY(0); }
.share--side .share__ok { left: calc(100% + 8px); bottom: auto; top: 50%; transform: translateY(-50%); }

/* Turinio tipografija */
.prose { font-size: clamp(1.06rem, 1.25vw, 1.15rem); line-height: 1.78; color: var(--text-2); max-width: 74ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4 { color: var(--text); margin-top: 1.9em; scroll-margin-top: calc(var(--header-h) + 72px); }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800; }
.prose h3 { font-size: clamp(1.2rem, 1.9vw, 1.4rem); font-weight: 700; }
.prose h4 { font-size: 1.1rem; font-weight: 700; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 3px; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose > p:first-of-type::first-letter {
	float: left; font: 800 3.4em/.82 var(--f-head); margin: .08em .1em 0 0; color: var(--accent);
}
.prose blockquote {
	margin-inline: 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--accent);
	font: 700 clamp(1.2rem, 2vw, 1.4rem)/1.45 var(--f-head); color: var(--text);
}
.prose blockquote cite { display: block; font: 600 .85rem var(--f-body); color: var(--muted); margin-top: 8px; font-style: normal; }
.prose img, .prose figure img { border-radius: var(--radius); }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-element-caption { font-size: .82rem; color: var(--muted); margin-top: 8px; text-align: left; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg-soft); color: var(--text); }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2em; }
.prose code { background: var(--bg-soft); padding: .15em .4em; border-radius: 4px; font-size: .9em; }
.prose pre { background: var(--ink); color: #E8EDF5; padding: 18px; border-radius: var(--radius); overflow-x: auto; font-size: .9rem; }
.prose .alignwide { max-width: none; }
.prose .aligncenter { margin-inline: 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 { max-width: 100%; }
.prose .wp-block-embed__wrapper iframe, .prose iframe[src*="youtube"] { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius); }

/* Turinio rodyklė */
.toc { margin-block: 1.8em !important; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); font-size: .98rem; }
.toc summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 20px; font: 800 1rem var(--f-head); color: var(--text); cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary small { margin-left: auto; font: 600 .8rem var(--f-body); color: var(--muted); }
.toc summary .i { color: var(--accent); }
.toc ol { list-style: none; counter-reset: toc; padding: 0 20px 16px !important; margin: 0; }
.toc li { counter-increment: toc; margin: 0 !important; }
.toc li + li { border-top: 1px solid var(--line); }
.toc a { display: flex; gap: 12px; padding: 9px 0; color: var(--text-2) !important; text-decoration: none !important; line-height: 1.4; }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 800 .8rem/1.75 var(--f-head); color: var(--muted); font-variant-numeric: tabular-nums; }
.toc a:hover, .toc a.is-active { color: var(--accent) !important; }
.toc a.is-active::before { color: var(--accent); }

/* „Taip pat skaitykite“ */
.also { margin-block: 2em !important; }
.also__link {
	display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--radius);
	border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface);
	text-decoration: none !important; color: var(--text) !important; transition: box-shadow .2s, transform .2s;
}
.also__link:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.also__img { width: 112px; flex: none; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--bg-soft); display: grid; place-items: center; }
.also__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.also__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.also__label { font: 800 .7rem var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.also__title { font: 700 1.05rem/1.3 var(--f-head); }
.also .i { color: var(--accent); flex: none; }
@media (max-width: 480px) { .also__img { width: 80px; } .also .i { display: none; } }

/* Straipsnio pabaiga */
.article__foot { margin-top: 40px; display: flex; flex-direction: column; gap: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tags__label { font-weight: 800; font-size: .85rem; margin-right: 4px; }
.tags a { background: var(--bg-soft); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.tags a:hover { border-color: var(--accent); }
.article__share-end { padding: 22px; border-radius: var(--radius); background: var(--bg-soft); display: flex; flex-direction: column; gap: 12px; }
.article__share-end p { font-weight: 700; color: var(--text); }
.share--wide .share__label { display: none; }
.author-box { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); align-items: flex-start; }
.author-box__mark { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); }
.author-box__name { font: 800 1.05rem var(--f-head); margin-bottom: 4px; }
.author-box__bio { color: var(--muted); font-size: .92rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav__link { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.post-nav__link:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
.post-nav__link--next { text-align: right; grid-column: 2; }
.post-nav__dir { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.post-nav__title { font: 700 1rem/1.3 var(--f-head); }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav__link--next { grid-column: auto; } }

.related { padding-block: clamp(40px, 6vw, 72px); background: var(--bg-soft); margin-top: clamp(40px, 6vw, 72px); }
.related + * { margin-top: 0; }

/* „Skaitykite toliau“ iššokanti kortelė */
.next-read {
	position: fixed; left: 20px; bottom: 20px; z-index: 90; width: min(380px, calc(100vw - 104px));
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .45);
	transform: translateY(140%); transition: transform .45s cubic-bezier(.2, .9, .3, 1.2); display: block;
}
.next-read[hidden] { display: none; }
.next-read.is-visible { transform: translateY(0); }
.next-read__link { display: flex; gap: 12px; align-items: center; padding: 12px 40px 12px 12px; }
.next-read__img { width: 76px; flex: none; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--bg-soft); }
.next-read__img img { width: 100%; height: 100%; object-fit: cover; }
.next-read__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.next-read__label { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.next-read__title { font: 700 .95rem/1.3 var(--f-head); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); }
.next-read__close { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.next-read__close:hover { background: var(--bg-soft); color: var(--text); }
@media (max-width: 600px) { .next-read { left: 12px; bottom: 12px; } }

/* ==========================================================================
   8. Mygtukas „Į viršų“
   ========================================================================== */
.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 95; width: 52px; height: 52px; border-radius: 50%;
	display: grid; place-items: center; background: var(--text); color: var(--bg); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
	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(--accent); color: var(--accent-ink); }
.to-top > .i { position: relative; z-index: 1; transition: transform .2s; }
.to-top:hover > .i { transform: translateY(-3px); }
.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-dasharray: 100; stroke-dashoffset: var(--p, 100); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.to-top:hover .to-top__ring circle { stroke: var(--accent-ink); }
.to-top__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html:not(.js) .to-top { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 600px) { .to-top { right: 12px; bottom: 12px; width: 48px; height: 48px; } .has-next-read .to-top { bottom: 104px; } }

/* ==========================================================================
   9. Poraštė
   ========================================================================== */
.site-footer { background: var(--ink); color: #AEB9CB; padding-top: clamp(48px, 6vw, 72px); font-size: .93rem; }
[data-theme="dark"] .site-footer { background: #070C16; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 40px; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: #DCE3EE; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.logo--footer a, .logo--footer a:hover { color: #fff; text-decoration: none; }
.logo--footer .logo__tag { color: #8D9AB0; }
.footer-brand__about { margin: 16px 0 20px; max-width: 42ch; line-height: 1.65; }
.footer-col__title { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; margin-bottom: 16px; font-family: var(--f-body); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-latest li { line-height: 1.4; }
.footer-tech { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-tech a { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .82rem; color: #8D9AB0; }

/* ==========================================================================
   10. Mobilieji ir spausdinimas
   ========================================================================== */
@media (max-width: 600px) {
	:root { --header-h: 58px; }
	.logo__name { font-size: 1.6rem; }
	.logo__mark { width: 40px; height: 36px; }
	.logo__tag { font-size: .6rem; }
	.icon-btn { width: 40px; height: 40px; }
	.topbar .social { display: none; }
	.layout--article { padding-top: 0; }
	.prose > p:first-of-type::first-letter { font-size: 2.9em; }
}
@media print {
	.site-header, .ticker, .site-footer, .sidebar, .share, .to-top, .next-read, .related, .post-nav, .progress, .article__share-end, .also { display: none !important; }
	body { background: #fff; color: #000; }
	.layout { display: block; }
	.prose { max-width: none; color: #000; }
	.prose a::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* WP privalomos klasės */
.alignnone { margin: 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .82rem; color: var(--muted); }
.bypostauthor { display: block; }
.page-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2em; font-weight: 700; }
