/*
Theme Name: Danielos Naujienos
Theme URI: https://www.danielahotel.lt/
Author: Kauno Danielos Naujienos
Description: Greita, moderni naujienų portalo tema Kauno Danielos Naujienoms. Veikia be papildomų įskiepių: įtaisytas SEO (meta, Open Graph, JSON-LD NewsArticle), duonos trupiniai, turinio sąrašas, skaitymo progresas, „Skaitomiausi“, susiję straipsniai, „Skaityti vėliau“, tamsus režimas, mygtukas „Į viršų“, 301 nukreipimai senoms nuorodoms.
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: danielos
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* =========================================================
   1. Kintamieji
   ========================================================= */
:root {
	--accent: #d6283a;
	--accent-ink: #fff;
	--bg: #ffffff;
	--surface: #f4f5f7;
	--surface-2: #eceef2;
	--ink: #11151b;
	--ink-2: #2b323c;
	--muted: #5d6673;
	--line: #e3e6eb;
	--shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
	--radius: 14px;
	--radius-sm: 8px;
	--wrap: 1240px;
	--gap: clamp(16px, 2.4vw, 28px);
	--header-h: 64px;
	--font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-serif: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, "Noto Serif", serif;
	--fs-article: 19px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: light;
}

[data-theme="dark"] {
	--bg: #0e1116;
	--surface: #161b22;
	--surface-2: #1d232c;
	--ink: #e9edf2;
	--ink-2: #c9d0d9;
	--muted: #98a2b0;
	--line: #262d38;
	--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
	color-scheme: dark;
}

/* =========================================================
   2. Pagrindai
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 56px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 16px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background-color .25s, color .25s;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }
.icon { flex: none; }
[hidden] { display: none !important; }

/* =========================================================
   3. Viršutinė juosta ir antraštė
   ========================================================= */
.topbar { background: var(--ink); color: #cfd5dd; font-size: 13px; }
[data-theme="dark"] .topbar { background: #07090c; }
.topbar__in { display: flex; align-items: center; gap: 20px; min-height: 36px; }
.topbar__date { white-space: nowrap; font-weight: 600; color: #fff; }
.trending { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; }
.trending__label { display: inline-flex; align-items: center; gap: 5px; color: #ffb4bc; font-weight: 700; white-space: nowrap; }
.trending ul { display: flex; gap: 14px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.trending ul::-webkit-scrollbar { display: none; }
.trending a { white-space: nowrap; color: #cfd5dd; }
.trending a:hover { color: #fff; }

.site-header {
	position: sticky; top: 0; z-index: 90;
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header__in { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.site-logo { margin: 0; font-size: inherit; line-height: 0; flex: 0 1 auto; min-width: 0; }
.site-logo a { display: inline-block; color: var(--ink); }
.site-logo .logo-svg { height: 44px; width: auto; }
.site-logo .custom-logo { max-height: 48px; width: auto; }
.header__actions { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.icon-btn {
	position: relative; display: inline-grid; place-items: center;
	min-width: 42px; height: 42px; padding: 0 8px; border: 0; border-radius: 999px;
	background: transparent; color: var(--ink); transition: background .2s;
}
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.header__menu { margin-left: -8px; }
.theme-btn__sun { display: none; }
[data-theme="dark"] .theme-btn__sun { display: inline; }
[data-theme="dark"] .theme-btn__moon { display: none; }
.saved-btn__count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px;
}

/* Kategorijų navigacija */
.catnav { border-top: 1px solid var(--line); }
.catnav__in { display: flex; align-items: center; gap: 4px; position: relative; }
.catnav__home { display: inline-grid; place-items: center; width: 38px; height: 44px; color: var(--muted); flex: none; }
.catnav__home.is-current { color: var(--accent); }
.catnav__list {
	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);
	padding-right: 40px;
}
.catnav__list::-webkit-scrollbar { display: none; }
.catnav__list a {
	position: relative; display: block; padding: 11px 12px; white-space: nowrap;
	font-size: 14.5px; font-weight: 650; color: var(--ink-2);
}
.catnav__list a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px;
	border-radius: 3px 3px 0 0; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease);
}
.catnav__list a:hover::after,
.catnav__list .current-menu-item > a::after,
.catnav__list .current-cat > a::after,
.catnav__list .current-post-ancestor > a::after,
.catnav__list .current-menu-parent > a::after { transform: scaleX(1); }
.catnav__list .current-menu-item > a, .catnav__list .current-cat > a { color: var(--ink); }

.search-panel { border-top: 1px solid var(--line); padding: 16px 0; background: var(--bg); animation: drop .25s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* Paieška */
.search-form {
	display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 999px; max-width: 720px;
}
.search-form > .icon { color: var(--muted); }
.search-form__input {
	flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
	font: inherit; font-size: 16px; padding: 8px 4px; outline: none;
}
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }

/* Mygtukai */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 20px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
	font-weight: 700; font-size: 15px; transition: filter .2s, transform .2s;
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.btn--wide { width: 100%; margin-top: 20px; padding: 14px; }

/* =========================================================
   4. Stalčiai (rubrikos / skaityti vėliau)
   ========================================================= */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(8, 10, 14, .55); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer__panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: min(380px, 88vw); overflow-y: auto;
	background: var(--bg); box-shadow: var(--shadow); padding: 16px 20px 32px; animation: slideL .3s var(--ease);
}
.drawer--right .drawer__panel { left: auto; right: 0; animation-name: slideR; }
@keyframes slideL { from { transform: translateX(-100%); } }
@keyframes slideR { from { transform: translateX(100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 18px; }
.drawer__head strong { display: inline-flex; align-items: center; gap: 8px; }
.drawer__cats, .cat-list { list-style: none; display: grid; gap: 2px; }
.drawer__cats a, .cat-list a {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 600;
}
.drawer__cats a::before, .cat-list a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cat); flex: none; }
.drawer__cats a span, .cat-list a span { flex: 1; }
.drawer__cats a:hover, .cat-list a:hover { background: var(--surface); color: var(--ink); }
.drawer__cats small, .cat-list small { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.drawer__pages { list-style: none; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.drawer__pages a { display: block; padding: 8px 12px; font-weight: 600; color: var(--muted); }

.saved-list { list-style: none; display: grid; gap: 10px; }
.saved-list li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.saved-list img, .saved-list .ph { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.saved-list a { font-weight: 700; font-size: 15px; line-height: 1.3; }
.saved-list .empty-note { grid-column: 1 / -1; color: var(--muted); }

/* =========================================================
   5. Naujausia juosta (ticker)
   ========================================================= */
.ticker { border-bottom: 1px solid var(--line); background: var(--surface); }
.ticker__in { display: flex; align-items: center; gap: 14px; height: 46px; }
.ticker__label {
	display: inline-flex; align-items: center; gap: 8px; flex: none;
	font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ticker__viewport {
	overflow: hidden; flex: 1; min-width: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 94%, transparent);
}
.ticker__track { display: flex; gap: 40px; list-style: none; width: max-content; }
.ticker__track a { white-space: nowrap; font-weight: 600; font-size: 14.5px; }
.ticker__track time { color: var(--accent); font-weight: 800; margin-right: 4px; font-size: 13px; }
.js .ticker__track.is-running { animation: tick var(--dur, 60s) linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* =========================================================
   6. Išdėstymas
   ========================================================= */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: calc(var(--gap) * 1.6); padding-block: var(--gap) calc(var(--gap) * 2); }
.layout__main { min-width: 0; }
@media (max-width: 1020px) { .layout { grid-template-columns: 1fr; } }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 18px; }
.stack--rows { gap: 0; }
.stack--rows > .card { padding-block: 20px; border-bottom: 1px solid var(--line); }
.stack--rows > .card:first-child { padding-top: 0; }

.block { margin-bottom: calc(var(--gap) * 1.8); }
.sec-head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--ink);
	position: relative;
}
.sec-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 4px; background: var(--cat, var(--accent)); border-radius: 2px; }
.sec-head__title { margin: 0; font-size: clamp(20px, 2.2vw, 24px); text-transform: none; }
.sec-head__more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; color: var(--muted); }
.sec-head__more:hover { color: var(--cat, var(--accent)); }

.band { background: var(--ink); color: #e9edf2; padding-block: calc(var(--gap) * 1.8); }
.band .sec-head { border-color: rgba(255, 255, 255, .85); }
.band .card__title a, .band .card__title { color: #fff; }
.band .meta { color: #a9b2bf; }
.band--soft { background: var(--surface); color: var(--ink); }
.band--soft .sec-head { border-color: var(--ink); }
.band--soft .card__title a { color: var(--ink); }
.band--soft .meta { color: var(--muted); }
[data-theme="dark"] .band:not(.band--soft) { background: #07090c; }

/* =========================================================
   7. Kortelės
   ========================================================= */
.card { position: relative; display: grid; gap: 12px; align-content: start; }
.card__body { display: grid; gap: 8px; align-content: start; min-width: 0; }
.card__title { margin: 0; font-size: 18px; line-height: 1.28; font-weight: 750; }
.card__title a { color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.card:hover .card__title a { background-size: 100% 1.5px; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__excerpt { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .chip { position: relative; z-index: 2; }

.thumb { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); aspect-ratio: 16 / 9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .thumb img { transform: scale(1.04); }
.thumb__empty {
	display: grid; place-items: center; width: 100%; height: 100%;
	background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--cat) 85%, #fff) 0%, var(--cat) 55%, color-mix(in srgb, var(--cat) 70%, #000) 100%);
}
.thumb__empty span { font-size: clamp(32px, 6vw, 64px); font-weight: 900; color: rgba(255, 255, 255, .9); }

.chip {
	justify-self: start; display: inline-flex; align-items: center; gap: 6px;
	font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--cat, var(--accent));
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
a.chip:hover { color: var(--ink); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted); font-size: 13px; }
.meta > * { display: inline-flex; align-items: center; gap: 5px; }
.meta-author a { font-weight: 700; color: var(--ink); }
.meta-avatar { border-radius: 50%; width: 28px; height: 28px; }
.badge-new {
	display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 4px; background: var(--accent); color: #fff;
	font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px;
}

.save {
	position: absolute; top: 10px; right: 10px; z-index: 2;
	display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 999px;
	background: rgba(255, 255, 255, .92); color: #11151b; box-shadow: var(--shadow);
	opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s, background .2s;
}
.card:hover .save, .save:focus-visible, .save[aria-pressed="true"] { opacity: 1; transform: none; }
.save[aria-pressed="true"] { background: var(--accent); color: #fff; }
.save[aria-pressed="true"] svg { fill: currentColor; }
@media (hover: none) { .save { opacity: 1; transform: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--gap); padding-block: var(--gap); }
.hero__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-content: start; }
.card--hero { gap: 0; border-radius: var(--radius); overflow: hidden; isolation: isolate; height: 100%; }
.card--hero .thumb { aspect-ratio: auto; height: 100%; min-height: 440px; border-radius: 0; }
.card--hero .card__body {
	position: absolute; inset: auto 0 0 0; padding: clamp(20px, 3vw, 36px); color: #fff; gap: 12px;
	background: linear-gradient(180deg, transparent 0%, rgba(8, 10, 14, .55) 30%, rgba(8, 10, 14, .92) 100%);
}
.card--hero .card__title { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.12; font-weight: 850; letter-spacing: -.02em; }
.card--hero .card__title a { color: #fff; }
.card--hero .card__excerpt { color: rgba(255, 255, 255, .85); font-size: 16px; -webkit-line-clamp: 2; max-width: 62ch; }
.card--hero .meta { color: rgba(255, 255, 255, .75); }
.card--hero .chip { color: #fff; background: var(--cat); padding: 5px 10px; border-radius: 6px; }
.card--hero .chip::before { display: none; }
.hero__side .card__title { font-size: 16.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1020px) {
	.hero { grid-template-columns: 1fr; }
	.card--hero .thumb { min-height: 380px; }
}
@media (max-width: 560px) {
	.hero__side { grid-template-columns: 1fr; }
	.hero__side .card { grid-template-columns: 120px 1fr; }
	.hero__side .thumb { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
	.card--hero .thumb { min-height: 340px; }
	.card--hero .card__excerpt { display: none; }
}

/* Eilutė */
.card--row { grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.card--row .card__title { font-size: 20px; }
@media (max-width: 620px) {
	.card--row { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
	.card--row .thumb { aspect-ratio: 1; border-radius: var(--radius-sm); }
	.card--row .card__title { font-size: 16.5px; }
	.card--row .card__excerpt { display: none; }
	.card--row .save { display: none; }
}

/* Mini */
.card--mini { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.card--mini .thumb { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.card--mini .card__title { font-size: 15.5px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--mini .card__body { gap: 4px; }

/* Numeruoti (Skaitomiausi) */
.card--num { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.card--num:last-child { border-bottom: 0; padding-bottom: 0; }
.card__num {
	font-size: 34px; font-weight: 900; line-height: 1; color: transparent;
	-webkit-text-stroke: 1.5px var(--accent); font-variant-numeric: tabular-nums;
}
.card--num .card__title { font-size: 15.5px; font-weight: 700; }
.card--num .card__body { gap: 4px; }

/* Lead (kategorijos blokas / archyvas) */
.card--lead .card__title { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
.archive-lead { margin-bottom: calc(var(--gap) * 1.4); padding-bottom: calc(var(--gap) * 1.4); border-bottom: 1px solid var(--line); }
.archive-lead .card--lead { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--gap); align-items: center; }
@media (max-width: 760px) { .archive-lead .card--lead { grid-template-columns: 1fr; } }

/* Kategorijų blokai */
.catblock__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--gap); }
.catblock__list { display: grid; gap: 18px; align-content: start; }
.catblock--flip .catblock__lead { order: 2; }
@media (max-width: 760px) {
	.catblock__grid { grid-template-columns: 1fr; }
	.catblock--flip .catblock__lead { order: 0; }
}

/* =========================================================
   8. Šoninė juosta
   ========================================================= */
.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 64px); display: grid; gap: calc(var(--gap) * 1.2); }
.widget { background: var(--surface); border-radius: var(--radius); padding: 20px; }
.widget__title {
	display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 13px; font-weight: 850;
	letter-spacing: .1em; text-transform: uppercase;
}
.widget__title .icon { color: var(--accent); }
.widget--popular { background: var(--bg); border: 1px solid var(--line); }
.widget ul:not([class]) { list-style: none; display: grid; gap: 8px; }
@media (max-width: 1020px) { .sidebar__sticky { position: static; } }

/* =========================================================
   9. Straipsnis
   ========================================================= */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 300; pointer-events: none; }
.admin-bar .progress { top: 32px; }
.progress__bar { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #ffb000)); transform-origin: 0 50%; transform: scaleX(0); }

.crumbs { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.crumbs li + li::before { content: "›"; color: var(--line); font-weight: 700; margin-right: 2px; color: var(--muted); }
.crumbs li[aria-current] span { max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.crumbs a:hover { color: var(--accent); }

.article__head { padding-top: calc(var(--gap) * 1.2); }
.article__head > * { max-width: 980px; }
.article__title { font-size: clamp(28px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -.025em; font-weight: 850; margin: 12px 0 16px; text-wrap: balance; }
.article__lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink-2); font-weight: 500; max-width: 62ch; }
.article__bar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 18px;
}
.article__tools { display: flex; align-items: center; gap: 8px; }
.fontsize { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; }
.fontsize .icon-btn { font-weight: 800; font-size: 14px; height: 36px; min-width: 40px; }
.save--inline {
	position: static; width: auto; height: 38px; padding: 0 14px; gap: 6px; display: inline-flex; align-items: center;
	opacity: 1; transform: none; box-shadow: none; border: 1px solid var(--line); background: transparent; color: var(--ink); font-weight: 700; font-size: 14px;
}
.save--inline[aria-pressed="true"] { border-color: var(--accent); }

.article__figure { margin-block: var(--gap) 0; }
.thumb--wide { aspect-ratio: 2 / 1; border-radius: var(--radius); }
@media (max-width: 620px) { .thumb--wide { aspect-ratio: 16 / 10; margin-inline: -20px; border-radius: 0; } }
.article__figure figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

.layout--article .layout__main { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 28px; align-content: start; }
.layout--article .layout__main > *:not(.article__share-rail) { grid-column: 2; }
.article__share-rail { grid-column: 1; grid-row: 1 / span 3; }
.article__share-rail .share { position: sticky; top: calc(var(--header-h) + 72px); }
.article__share-rail .share__list { flex-direction: column; }
@media (max-width: 760px) {
	.layout--article .layout__main { grid-template-columns: 1fr; }
	.layout--article .layout__main > * { grid-column: 1 !important; }
	.article__share-rail { display: none; }
}

/* Turinio tipografija */
.entry-content {
	font-family: var(--font-serif); font-size: var(--fs-article); line-height: 1.75; color: var(--ink-2);
	max-width: 720px; overflow-wrap: break-word;
}
.entry-content > * { margin-block: 0 1.15em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font); color: var(--ink); margin-top: 1.8em; scroll-margin-top: calc(var(--header-h) + 70px); }
.entry-content h2 { font-size: 1.45em; }
.entry-content h3 { font-size: 1.2em; }
.entry-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-thickness: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--accent); font-weight: 700; }
.entry-content blockquote {
	margin-inline: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent);
	font-size: 1.12em; font-style: italic; color: var(--ink);
}
.entry-content img { border-radius: var(--radius-sm); height: auto; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .wp-caption-text { font-family: var(--font); font-size: 13px; color: var(--muted); margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--font); font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--surface); }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin-block: 2em; }
.entry-content > p:first-of-type::first-letter {
	float: left; font-family: var(--font); font-weight: 900; font-size: 3.3em; line-height: .9; padding: 6px 6px 0 0; color: var(--accent);
}
.entry-content > p:first-of-type:has(> img)::first-letter { float: none; font: inherit; padding: 0; color: inherit; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }

/* Turinys (TOC) */
.toc { font-family: var(--font); background: var(--surface); border-radius: var(--radius); padding: 4px 20px; margin-bottom: 1.6em; font-size: 15.5px; }
.toc summary { display: flex; align-items: center; gap: 8px; padding: 12px 0; cursor: pointer; font-weight: 800; color: var(--ink); list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--muted); }
.toc[open] summary::after { content: "–"; }
.toc ol { list-style: none; counter-reset: toc; padding: 0 0 14px; margin: 0; display: grid; gap: 2px; }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 10px; border-left: 2px solid var(--line); color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.toc a:hover, .toc a.is-active { border-left-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.toc__l3 a { padding-left: 24px; font-size: 14.5px; }

/* Taip pat skaitykite */
.also { font-family: var(--font); margin-block: 1.6em !important; }
.also a {
	display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; text-decoration: none !important;
	padding: 14px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); background: var(--bg);
	transition: box-shadow .2s, transform .2s;
}
.also a:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.also__img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; }
.also__body { display: grid; gap: 2px; }
.also__label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.also__title { color: var(--ink); font-weight: 750; font-size: 17px; line-height: 1.3; }

/* Straipsnio apačia */
.article__foot { display: grid; gap: 24px; margin-top: 32px; max-width: 720px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; }
.tags a:hover { background: var(--accent); color: #fff; }

.share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share__label { font-weight: 800; }
.share__list { list-style: none; display: flex; gap: 8px; }
.share__btn {
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	border: 1px solid var(--line); background: var(--bg); color: var(--ink); transition: all .2s;
}
.share__btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }
.share__btn--facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.share__btn--whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff; }
.share__btn--linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }

.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--surface); }
.author-box img { border-radius: 50%; }
.author-box__label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.author-box__name { font-size: 18px; font-weight: 800; }
.author-box p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-nav__item { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.post-nav__item:hover { border-color: var(--accent); color: var(--ink); }
.post-nav__item small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.post-nav__item span { font-weight: 750; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav__next { text-align: right; grid-column: 2; }
@media (max-width: 620px) { .post-nav { grid-template-columns: 1fr; } .post-nav__next { grid-column: 1; } }

.page-links { font-family: var(--font); display: flex; gap: 8px; }

/* Skaitykite toliau */
.next-up {
	position: fixed; right: 20px; bottom: 92px; z-index: 80; width: min(360px, calc(100vw - 40px));
	background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
	animation: rise .4s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.next-up a { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; padding: 12px 40px 12px 12px; }
.next-up img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-sm); }
.next-up small { display: block; color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .07em; font-size: 11px; }
.next-up strong { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; font-size: 15px; }
.next-up__close { position: absolute; top: 4px; right: 4px; min-width: 32px; height: 32px; }

/* =========================================================
   10. Archyvai, paieška, 404
   ========================================================= */
.page-head { padding-block: calc(var(--gap) * 1.2) 0; }
.page-head__title { font-size: clamp(28px, 4vw, 44px); margin: 0 0 8px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.page-head__title::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--cat, var(--accent)); align-self: center; }
.page-head__paged { font-size: .5em; color: var(--muted); font-weight: 700; }
.page-head__desc { color: var(--muted); max-width: 70ch; font-size: 17px; }
.page-head__count { color: var(--muted); font-size: 14px; font-weight: 600; margin: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.page-head__search { margin-top: 16px; }

.pagination { margin-top: calc(var(--gap) * 1.6); }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
	border: 1px solid var(--line); border-radius: 999px; font-weight: 700;
}
.page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.page-numbers.dots { border: 0; }

.empty__text { font-size: 18px; color: var(--muted); }
.empty .search-form { margin-bottom: 28px; }

.notfound { text-align: center; padding-block: clamp(40px, 8vw, 90px) 40px; display: grid; justify-items: center; gap: 12px; }
.notfound__code {
	margin: 0; font-size: clamp(90px, 18vw, 200px); line-height: .9; font-weight: 900; letter-spacing: -.05em;
	background: linear-gradient(135deg, var(--accent), #ff9a3c); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound__title { font-size: clamp(22px, 3vw, 32px); margin: 0; }
.notfound__text { color: var(--muted); }
.notfound .search-form { width: 100%; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.chips .chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }

/* =========================================================
   11. Poraštė
   ========================================================= */
.site-footer { background: #0b0e13; color: #aab3c0; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: calc(var(--gap) * 1.4); padding-block: 56px 40px; }
.footer__logo { display: inline-block; color: #fff; margin-bottom: 14px; }
.footer__logo .logo-svg { height: 44px; width: auto; }
.footer__about p { font-size: 15px; max-width: 40ch; }
.footer__title { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer__cats, .footer__latest, .footer__pages { list-style: none; display: grid; gap: 9px; font-size: 15px; }
.footer__pages + .footer__pages { margin-top: 9px; }
.footer__latest a { color: #dfe4ea; font-weight: 600; line-height: 1.35; display: block; }
.site-footer a:hover { color: #fff; }
.social { list-style: none; display: flex; gap: 8px; margin-top: 16px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #fff; }
.social a:hover { background: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.footer__bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 18px; }
@media (max-width: 1020px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer__grid { grid-template-columns: 1fr; padding-block: 40px 28px; } }

/* =========================================================
   12. Į viršų, pranešimas
   ========================================================= */
.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 85;
	display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%;
	background: var(--ink); color: var(--bg); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
	transition: opacity .3s, transform .3s var(--ease), visibility .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: #fff; }
.to-top .icon { grid-area: 1 / 1; transition: transform .25s var(--ease); }
.to-top:hover .icon { transform: translateY(-3px); }
.to-top__ring { grid-area: 1 / 1; width: 56px; height: 56px; 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: #fff; }
.to-top__label { position: absolute; right: 64px; white-space: nowrap; padding: 6px 10px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; opacity: 0; transform: translateX(6px); transition: .2s; pointer-events: none; }
.to-top:hover .to-top__label { opacity: 1; transform: none; }
@media (hover: none) { .to-top__label { display: none; } }

.toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 400; transform: translateX(-50%);
	padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14.5px;
	box-shadow: var(--shadow); animation: rise .3s var(--ease);
}

/* =========================================================
   13. Mobilūs patobulinimai
   ========================================================= */
@media (max-width: 760px) {
	:root { --header-h: 58px; }
	.site-logo .logo-svg { height: 36px; }
	.topbar__date { display: none; }
	.layout { padding-top: 12px; }
	.article__title { margin-top: 8px; }
	.article__bar { flex-direction: column; align-items: flex-start; }
	.to-top { width: 50px; height: 50px; right: 14px; bottom: 14px; }
	.to-top__ring { width: 50px; height: 50px; }
	.next-up { right: 14px; bottom: 76px; }
}
@media (max-width: 380px) {
	.site-logo .logo-svg { height: 30px; }
	.icon-btn { min-width: 38px; }
}

/* =========================================================
   14. Prieinamumas ir spauda
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .ticker__track.is-running { animation: none; }
	.ticker__viewport { overflow-x: auto; }
}
@media print {
	.topbar, .site-header, .ticker, .sidebar, .site-footer, .to-top, .next-up, .share, .article__tools, .band, .progress, .post-nav, .also { display: none !important; }
	.layout, .layout--article .layout__main { display: block; }
	.entry-content { max-width: none; font-size: 12pt; color: #000; }
	a { color: #000; }
}
