/*
Theme Name: Austėja – Žino viską
Theme URI: https://www.austejosblogas.lt/
Author: Austėja
Description: Greita, SEO optimizuota naujienų portalo tema be papildomų įskiepių. Kalbos burbulo identitetas, kategorijų spalvos, skaitymo progresas, turinio sąrašas, „Skaitykite toliau“ pasiūlymai, tamsus režimas, struktūriniai duomenys (schema.org), Open Graph ir senų URL 301 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: austeja
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. Žetonai (spalvos, šriftai, tarpai)
   ========================================================================== */
:root {
	--ink: #22132f;
	--ink-2: #4a3f57;
	--muted: #6b6277;
	--paper: #ffffff;
	--paper-2: #f5f2fa;
	--line: #e7e1ef;
	--brand: #6a2bd9;
	--brand-ink: #4f1fa8;
	--on-brand: #ffffff;
	--honey: #f2b33d;
	--focus: #6a2bd9;
	--footer-bg: #22132f;
	--footer-ink: #d9d0e6;

	--t0: #6a2bd9;
	--t1: #0b7f74;
	--t2: #b8325f;
	--t3: #2c59c7;
	--t4: #9a5a00;
	--t5: #3b7d2b;

	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
	--serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Noto Serif", Georgia, serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 8px;
	--bubble: 22px;
	--shadow: 0 18px 44px -26px rgba(34, 19, 47, .55);
	--header-offset: 0px;

	color-scheme: light;
}

:root[data-theme="dark"] {
	--ink: #f1ecf7;
	--ink-2: #d2c9de;
	--muted: #a99fb6;
	--paper: #17111f;
	--paper-2: #221a2c;
	--line: #352b42;
	--brand: #b79bff;
	--brand-ink: #d6c7ff;
	--on-brand: #17111f;
	--honey: #f5c15d;
	--focus: #f5c15d;
	--footer-bg: #0f0a15;
	--footer-ink: #c9bfd6;
	--t0: #b79bff;
	--t1: #4fd1c1;
	--t2: #ff8fb3;
	--t3: #8fb0ff;
	--t4: #f2b33d;
	--t5: #8fd47a;
	--shadow: 0 18px 44px -20px rgba(0, 0, 0, .8);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ink: #f1ecf7;
		--ink-2: #d2c9de;
		--muted: #a99fb6;
		--paper: #17111f;
		--paper-2: #221a2c;
		--line: #352b42;
		--brand: #b79bff;
		--brand-ink: #d6c7ff;
		--on-brand: #17111f;
		--honey: #f5c15d;
		--focus: #f5c15d;
		--footer-bg: #0f0a15;
		--footer-ink: #c9bfd6;
		--t0: #b79bff;
		--t1: #4fd1c1;
		--t2: #ff8fb3;
		--t3: #8fb0ff;
		--t4: #f2b33d;
		--t5: #8fd47a;
		--shadow: 0 18px 44px -20px rgba(0, 0, 0, .8);
		color-scheme: dark;
	}
}

.tone-0 { --tone: var(--t0); }
.tone-1 { --tone: var(--t1); }
.tone-2 { --tone: var(--t2); }
.tone-3 { --tone: var(--t3); }
.tone-4 { --tone: var(--t4); }
.tone-5 { --tone: var(--t5); }

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 80px;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-ink); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--sans);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.015em;
	margin: 0 0 .5em;
	color: var(--ink);
	text-wrap: balance;
}

p { margin: 0 0 1em; }
button { font: inherit; }

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

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

.skip-link {
	position: absolute;
	left: 12px; top: -100px;
	z-index: 10000;
	background: var(--ink);
	color: var(--paper);
	padding: 12px 18px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--paper); }

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

.site-main { display: block; outline: none; }

.icon { flex: none; }

/* ==========================================================================
   3. Mygtukai, žymės
   ========================================================================== */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 24px;
	border: 2px solid var(--brand);
	border-radius: 999px;
	background: var(--brand);
	color: var(--on-brand);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.button:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--on-brand); }
.button--ghost { background: transparent; color: var(--brand); }
.button--ghost:hover { background: var(--brand); color: var(--on-brand); }
.button[aria-busy="true"] { opacity: .6; pointer-events: none; }

.icon-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	min-width: 44px;
	justify-content: center;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font-weight: 650;
	cursor: pointer;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

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

/* Kategorijos žymė: spalvotas „kalbos burbuliukas“ + pavadinimas */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: .82rem;
	font-weight: 750;
	line-height: 1.3;
	color: var(--tone, var(--brand));
	text-decoration: none;
	margin-bottom: 6px;
}
.badge::before {
	content: "";
	width: 9px; height: 9px;
	border-radius: 50% 50% 50% 0;
	background: currentColor;
	flex: none;
}
a.badge:hover { text-decoration: underline; color: var(--tone, var(--brand)); }

.chips, .tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--ink);
	font-size: .9rem;
	font-weight: 650;
	text-decoration: none;
	background: var(--paper);
}
.chip[class*="tone-"]::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 50% 50% 50% 0;
	background: var(--tone);
}
.chip:hover { border-color: var(--tone, var(--brand)); color: var(--tone, var(--brand)); }
.chip__count { color: var(--muted); font-weight: 500; font-size: .82rem; }

.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	color: var(--muted);
	font-size: .83rem;
}
.meta__read { display: inline-flex; align-items: center; gap: 5px; }
.meta__read .icon { width: 15px; height: 15px; }

/* ==========================================================================
   4. Antraštė
   ========================================================================== */
.topbar {
	background: var(--footer-bg);
	color: var(--footer-ink);
	font-size: .84rem;
}
.topbar__in {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 36px;
}
.topbar__date { text-transform: none; }
.topbar__date::first-letter { text-transform: uppercase; }
.topbar__nav { margin-left: auto; }
.topbar__nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.topbar a { color: var(--footer-ink); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.topbar__nav + .social { margin-left: 8px; }
.topbar__date + .social { margin-left: auto; }
.social a { display: inline-flex; padding: 6px; border-radius: 999px; }
.social .icon { width: 17px; height: 17px; }

.masthead { border-bottom: 1px solid var(--line); }
.masthead__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 18px;
}
.masthead__actions { display: flex; gap: 8px; }

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--ink);
	text-decoration: none;
	min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand__mark { flex: none; }
.brand__text { display: flex; flex-direction: column; margin: 0; font-size: inherit; line-height: 1; letter-spacing: 0; }
.brand__name {
	font-size: clamp(1.6rem, 3.4vw, 2.15rem);
	font-weight: 850;
	letter-spacing: -.035em;
	line-height: 1;
}
.brand__tagline {
	font-size: .92rem;
	font-weight: 600;
	color: var(--muted);
	margin-top: 4px;
	letter-spacing: 0;
}
.custom-logo-link img { max-height: 64px; width: auto; }

.search-panel { border-top: 1px solid var(--line); background: var(--paper-2); padding-block: 18px 22px; }
.search-panel[hidden] { display: none; }

/* Kategorijų juosta (lipni) */
.catnav {
	position: sticky;
	top: var(--header-offset);
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.admin-bar { --header-offset: 32px; }
@media (max-width: 782px) { .admin-bar { --header-offset: 46px; } }
@media (max-width: 600px) { .admin-bar { --header-offset: 0px; } }

.catnav__in { display: flex; align-items: center; gap: 10px; }
.catnav__home {
	display: none;
	flex: none;
	padding: 6px 4px 6px 0;
}
.is-stuck .catnav__home { display: inline-flex; }
.is-stuck .catnav { box-shadow: 0 10px 24px -20px rgba(34, 19, 47, .6); }

.catnav__scroller {
	position: relative;
	min-width: 0;
	flex: 1;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
}
.catnav__scroller::-webkit-scrollbar { display: none; }
.catnav__list {
	list-style: none;
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0 40px 0 0;
}
.catnav__list a {
	position: relative;
	display: block;
	padding: 14px 12px;
	white-space: nowrap;
	color: var(--ink-2);
	font-weight: 650;
	font-size: .95rem;
	text-decoration: none;
}
.catnav__list a:hover { color: var(--brand); }
.catnav__list .current-menu-item > a,
.catnav__list .current-menu-parent > a,
.catnav__list .current-post-ancestor > a { color: var(--ink); }
.catnav__list .current-menu-item > a::after,
.catnav__list .current-menu-parent > a::after,
.catnav__list .current-post-ancestor > a::after {
	content: "";
	position: absolute;
	left: 12px; right: 12px; bottom: 0;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--brand);
}

/* Antraščių juosta */
.ticker { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.ticker__in { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.ticker__label {
	flex: none;
	padding: 4px 12px 4px 10px;
	border-radius: 999px 999px 999px 4px;
	background: var(--honey);
	color: #22132f;
	font-size: .8rem;
	font-weight: 800;
}
.ticker__viewport {
	display: flex;
	overflow: hidden;
	min-width: 0;
	flex: 1;
	mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.ticker__track {
	list-style: none;
	display: flex;
	flex: none;
	gap: 36px;
	margin: 0;
	padding: 0 36px 0 0;
	animation: austeja-ticker 70s linear infinite;
}
.ticker__viewport:hover .ticker__track,
.ticker__viewport:focus-within .ticker__track { animation-play-state: paused; }
.ticker__track a {
	white-space: nowrap;
	color: var(--ink);
	font-weight: 600;
	font-size: .92rem;
	text-decoration: none;
}
.ticker__track a:hover { color: var(--brand); text-decoration: underline; }
.ticker__track li { display: flex; align-items: center; gap: 36px; }
.ticker__track li::after {
	content: "";
	width: 6px; height: 6px;
	border-radius: 50% 50% 50% 0;
	background: var(--brand);
	opacity: .5;
}
@keyframes austeja-ticker { to { transform: translateX(-100%); } }

/* ==========================================================================
   5. Kortelės
   ========================================================================== */
.card { position: relative; min-width: 0; }
.card__media {
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--paper-2);
	aspect-ratio: 3 / 2;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__title { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.25; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--brand); }
.card__excerpt {
	color: var(--ink-2);
	font-size: .97rem;
	margin: 0 0 10px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.thumb-placeholder {
	display: grid;
	place-items: center;
	width: 100%; height: 100%;
	background: color-mix(in srgb, var(--paper-2) 80%, var(--brand));
}
.thumb-placeholder .brand__mark { opacity: .55; }

.card--grid .card__body { padding-top: 14px; }

/* Pagrindinė naujiena: nuotrauka + kalbos burbulas */
.card--lead .card__media { aspect-ratio: 16 / 9; border-radius: 10px; }
.card--lead .card__body {
	position: relative;
	margin: -88px 12% 0 28px;
	padding: 22px 28px 20px;
	background: var(--paper);
	border-radius: var(--bubble);
	box-shadow: var(--shadow);
}
.card--lead .card__body::before {
	content: "";
	position: absolute;
	left: 34px;
	top: -17px;
	width: 34px;
	height: 18px;
	background: var(--paper);
	clip-path: polygon(0 100%, 18% 0, 100% 100%);
}
.card--lead .card__title {
	font-size: clamp(1.55rem, 2.9vw, 2.35rem);
	line-height: 1.12;
	letter-spacing: -.025em;
	margin-bottom: 10px;
}
.card--lead .card__excerpt { font-size: 1.05rem; -webkit-line-clamp: 2; }

.card--mini {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding-block: 16px;
	border-bottom: 1px solid var(--line);
}
.card--mini:first-child { padding-top: 0; }
.card--mini:last-child { border-bottom: 0; }
.card--mini .card__media { aspect-ratio: 4 / 3; border-radius: 6px; }
.card--mini .card__title { font-size: 1.02rem; line-height: 1.3; margin-bottom: 6px; }

.card--row {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 24px;
	padding-block: 24px;
	border-bottom: 1px solid var(--line);
}
.card--row:first-child { padding-top: 0; }
.card--row .card__title { font-size: 1.35rem; }

.card--text { padding-block: 14px; border-top: 1px solid var(--line); }
.card--text .badge { display: none; }
.card--text .card__title { font-size: 1.02rem; line-height: 1.3; margin-bottom: 6px; }

/* ==========================================================================
   6. Pagrindinis puslapis ir išdėstymai
   ========================================================================== */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	padding-block: 28px 8px;
}
@media (min-width: 1000px) {
	.hero { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; }
	.hero__side { padding-left: 32px; border-left: 1px solid var(--line); }
}

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 32px; }
@media (min-width: 1000px) {
	.layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
}

.section { margin-bottom: 40px; }
.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}
.section__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 1.5rem;
	letter-spacing: -.02em;
}
.section__title::before {
	content: "";
	width: 14px; height: 14px;
	border-radius: 50% 50% 50% 0;
	background: var(--tone, var(--brand));
	flex: none;
}
.section__title a { color: inherit; text-decoration: none; }
.section__title a:hover { color: var(--tone, var(--brand)); }
.section__more {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	color: var(--tone, var(--brand));
	font-weight: 700;
	font-size: .9rem;
	text-decoration: none;
	white-space: nowrap;
}
.section__more .icon { width: 16px; height: 16px; }
.section__more:hover { text-decoration: underline; color: var(--tone, var(--brand)); }

.grid { display: grid; gap: 36px 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
	.grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
	.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.topics {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 48px 36px;
	padding-block: 40px 24px;
	border-top: 1px solid var(--line);
}
.topic .card--grid .card__title { font-size: 1.25rem; }
.topic__list { margin-top: 18px; }

.archive-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-block: 24px 64px;
	padding: 26px 30px;
	border-radius: var(--bubble) var(--bubble) var(--bubble) 6px;
	background: var(--paper-2);
	max-width: calc(var(--wrap) - 2 * var(--gutter));
	width: calc(100% - 2 * var(--gutter));
}
.archive-cta p { margin: 0; font-size: 1.1rem; font-weight: 650; }

.home-intro { padding-block: 24px 0; }

/* Šoninė juosta */
.sidebar { display: flex; flex-direction: column; gap: 36px; }
.module__title {
	margin: 0 0 14px;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--ink);
}
.module--rank { padding: 22px 22px 8px; background: var(--paper-2); border-radius: var(--bubble) var(--bubble) var(--bubble) 6px; }
.rank { list-style: none; counter-reset: rank; margin: 0; padding: 0; }
.rank li {
	counter-increment: rank;
	position: relative;
	padding: 0 0 16px 46px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--line);
}
.rank li:last-child { border-bottom: 0; margin-bottom: 0; }
.rank li::before {
	content: counter(rank);
	position: absolute;
	left: 0; top: -4px;
	font-size: 1.9rem;
	font-weight: 850;
	line-height: 1;
	color: var(--brand);
	opacity: .85;
}
.rank a { display: block; color: var(--ink); font-weight: 700; line-height: 1.3; text-decoration: none; margin-bottom: 4px; }
.rank a:hover { text-decoration: underline; text-decoration-color: var(--brand); }

.widget ul { padding-left: 1.1em; }
.widget li { margin-bottom: .45em; }

/* Straipsnių sąrašas, puslapiavimas */
.page-head { padding-block: 28px 4px; }
.page-head--narrow > * { max-width: 860px; }
.page-head__title {
	font-size: clamp(1.9rem, 3.6vw, 2.7rem);
	letter-spacing: -.03em;
	margin: 6px 0 8px;
}
.page-head[class*="tone-"] .page-head__title::after {
	content: "";
	display: block;
	width: 56px; height: 6px;
	margin-top: 14px;
	border-radius: 6px 6px 6px 0;
	background: var(--tone);
}
.page-head__page { color: var(--muted); font-weight: 600; font-size: .6em; }
.page-head__desc { max-width: 70ch; color: var(--ink-2); font-size: 1.08rem; }
.page-head__count { color: var(--muted); font-size: .92rem; margin: 0; }
.page-head__search { margin-top: 18px; max-width: 640px; }

.loadmore { display: flex; justify-content: center; margin-top: 32px; }
.no-js .loadmore, html:not(.js) .loadmore { display: none; }

.pagination { margin-top: 28px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--ink);
	font-weight: 650;
	text-decoration: none;
}
a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-numbers.dots { border: 0; }

.empty { padding: 28px; background: var(--paper-2); border-radius: var(--bubble); }

/* Paieška */
.search-form { position: relative; display: flex; gap: 10px; align-items: center; }
.search-form > .icon { position: absolute; left: 18px; color: var(--muted); pointer-events: none; }
.search-form__input {
	flex: 1;
	min-width: 0;
	min-height: 50px;
	padding: 10px 18px 10px 48px;
	border: 2px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	font-size: 1.05rem;
}
.search-form__input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.search-form__btn { min-height: 50px; }

/* Duonos trupiniai */
.crumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin: 0 0 14px;
	padding: 0;
	font-size: .86rem;
	color: var(--muted);
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--line); font-weight: 700; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs [aria-current] { max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }

/* ==========================================================================
   7. Straipsnis
   ========================================================================== */
.progress {
	position: fixed;
	z-index: 1000;
	left: 0; right: 0;
	top: var(--header-offset);
	height: 4px;
	pointer-events: none;
}
.progress__bar {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--brand), var(--honey));
	transform-origin: 0 50%;
	transform: scaleX(var(--p, 0));
}

.article__head { padding-block: 28px 8px; }
.article__head > * { max-width: 880px; }
.article__badges { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.article__title {
	font-size: clamp(2rem, 4.4vw, 3.15rem);
	line-height: 1.1;
	letter-spacing: -.03em;
	margin: 6px 0 14px;
}
.article__lede {
	font-family: var(--serif);
	font-size: clamp(1.15rem, 1.6vw, 1.32rem);
	line-height: 1.55;
	color: var(--ink-2);
	max-width: 62ch;
}
.article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
	padding-block: 14px 4px;
	color: var(--muted);
	font-size: .9rem;
}
.article__author { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.article__author a { color: var(--ink); text-decoration: none; }
.article__author a:hover { color: var(--brand); text-decoration: underline; }

.article__hero { margin: 20px auto 0; }
.article__hero img {
	width: 100%;
	max-height: 640px;
	object-fit: cover;
	border-radius: 12px;
	background: var(--paper-2);
}
.article__hero figcaption { margin-top: 8px; font-size: .86rem; color: var(--muted); }

.article__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
	padding-block: 36px 24px;
}
.article__main { min-width: 0; max-width: 740px; }
@media (min-width: 1040px) {
	.article__layout { grid-template-columns: minmax(0, 740px) 300px; justify-content: space-between; gap: 64px; }
}
.article__aside { display: none; }
@media (min-width: 1040px) {
	.article__aside { display: flex; flex-direction: column; gap: 36px; }
	.toc--inline { display: none; }
}
.article__sticky {
	position: sticky;
	top: calc(var(--header-offset) + 72px);
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Straipsnio tekstas */
.entry-content {
	font-family: var(--serif);
	font-size: 1.18rem;
	line-height: 1.78;
	color: var(--ink);
	overflow-wrap: break-word;
}
.entry-content > * { margin-block: 0 1.3em; }
.entry-content h2, .entry-content h3, .entry-content h4 {
	font-family: var(--sans);
	scroll-margin-top: 92px;
}
.entry-content h2 { font-size: 1.65rem; margin-top: 2em; margin-bottom: .55em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.7em; margin-bottom: .5em; }
.entry-content h4 { font-size: 1.1rem; margin-top: 1.5em; }
.entry-content a { color: var(--brand); text-decoration-thickness: 1px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--brand); font-weight: 700; }
.entry-content strong { font-weight: 700; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .entry-content .wp-caption-text {
	font-family: var(--sans);
	font-size: .86rem;
	color: var(--muted);
	margin-top: 8px;
}
.entry-content blockquote {
	margin-inline: 0;
	padding: 18px 24px;
	border-radius: var(--bubble) var(--bubble) var(--bubble) 4px;
	background: var(--paper-2);
	font-style: italic;
	color: var(--ink-2);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 8px; font-family: var(--sans); font-style: normal; font-size: .9rem; color: var(--muted); }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin-block: 2.2em; }
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--sans);
	font-size: .95rem;
	display: block;
	overflow-x: auto;
}
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--paper-2); font-weight: 700; }
.entry-content pre, .entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.entry-content pre { padding: 16px; background: var(--paper-2); border-radius: var(--radius); overflow-x: auto; }
.entry-content iframe { width: 100%; border-radius: var(--radius); }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.entry-content .aligncenter { margin-inline: auto; text-align: center; }
.entry-content .aligncenter img { margin-inline: auto; }
@media (min-width: 1040px) {
	.entry-content .alignwide { margin-inline: -60px; max-width: calc(100% + 120px); }
}
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content--page { max-width: 760px; padding-block: 24px 40px; }

/* „Taip pat skaitykite“ teksto viduryje */
.inline-read {
	clear: both;
	margin-block: 1.6em !important;
	padding: 14px 16px 16px;
	border-radius: 16px 16px 16px 4px;
	background: var(--paper-2);
	font-family: var(--sans);
}
.inline-read__label { display: block; font-size: .8rem; font-weight: 800; color: var(--brand); margin-bottom: 8px; }
.inline-read__link {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--ink) !important;
	font-weight: 750;
	font-size: 1.05rem;
	line-height: 1.3;
	text-decoration: none !important;
}
.inline-read__link img { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; }
.inline-read__link:hover span { text-decoration: underline; text-decoration-color: var(--brand); }

/* Turinio sąrašas */
.toc__list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc__item a {
	display: block;
	margin-left: -2px;
	padding: 6px 0 6px 14px;
	border-left: 2px solid transparent;
	color: var(--ink-2);
	font-size: .9rem;
	line-height: 1.35;
	text-decoration: none;
}
.toc__item--h3 a { padding-left: 28px; font-size: .85rem; }
.toc__item a:hover { color: var(--brand); }
.toc__item a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 700; }
.toc--aside { max-height: calc(100vh - 260px); overflow-y: auto; }
.toc--inline {
	margin-bottom: 28px;
	padding: 4px 18px;
	border: 1px solid var(--line);
	border-radius: 16px;
}
.toc--inline summary {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	font-weight: 750;
	cursor: pointer;
	list-style: none;
}
.toc--inline summary::-webkit-details-marker { display: none; }
.toc--inline summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--brand); }
.toc--inline[open] summary::after { content: "–"; }
.toc--inline .toc__list { margin-bottom: 14px; }

/* Dalinimasis */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.share__label { font-weight: 750; font-size: .92rem; }
.share__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink-2);
	cursor: pointer;
}
.share__btn:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.share__btn.is-done { background: var(--t1); border-color: var(--t1); color: #fff; }
.share--end { margin-block: 32px; padding-block: 20px; border-block: 1px solid var(--line); }
.share--aside .share__label { width: 100%; font-size: .85rem; color: var(--muted); }

.tags { margin-top: 28px; }

.about-box {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 22px;
	border-radius: var(--bubble) var(--bubble) var(--bubble) 6px;
	background: var(--paper-2);
	margin-bottom: 32px;
}
.about-box p { margin: 0; color: var(--ink-2); }
.about-box .about-box__title { color: var(--ink); font-weight: 800; margin-bottom: 4px; }

.post-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 32px; }
@media (min-width: 640px) { .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-nav__link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	text-decoration: none;
	color: var(--ink);
}
.post-nav__link--next { text-align: right; grid-column: -2; }
.post-nav__link:hover { border-color: var(--brand); }
.post-nav__label { font-size: .82rem; color: var(--muted); }
.post-nav__title { font-weight: 750; line-height: 1.3; }

.related { background: var(--paper-2); padding-block: 48px 56px; margin-top: 24px; }
.related .card__media { background: var(--paper); }

.comments { margin-top: 32px; }
.comments__list { list-style: none; padding: 0; }
.comments__list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comments__list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comments__list .reply { display: none; }

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

/* Pasiūlymas skaityti toliau */
.up-next {
	position: fixed;
	z-index: 90;
	right: 88px;
	bottom: 20px;
	display: flex;
	align-items: center;
	gap: 6px;
	width: min(400px, calc(100% - 108px));
	padding: 10px 8px 10px 10px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 18px 18px 4px 18px;
	box-shadow: var(--shadow);
	transform: translateY(calc(100% + 40px));
	transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.up-next[hidden] { display: none; }
.up-next.is-visible { transform: none; }
.up-next__link { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; color: var(--ink); text-decoration: none; }
.up-next__link img { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.up-next__text { display: flex; flex-direction: column; min-width: 0; }
.up-next__label { font-size: .78rem; font-weight: 800; color: var(--brand); }
.up-next__title {
	font-weight: 750;
	font-size: .95rem;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.up-next__link:hover .up-next__title { text-decoration: underline; }
.up-next__close {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}
.up-next__close:hover { background: var(--paper-2); color: var(--ink); }

/* Mygtukas „į viršų“ */
.to-top {
	position: fixed;
	z-index: 95;
	right: 20px;
	bottom: 20px;
	display: grid;
	place-items: center;
	width: 56px; height: 56px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--paper);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--honey); }
.to-top > .icon { grid-area: 1 / 1; }
.to-top__ring { grid-area: 1 / 1; width: 56px; height: 56px; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke-width: 3; stroke: color-mix(in srgb, var(--paper) 18%, transparent); }
.to-top__ring .to-top__progress {
	stroke: var(--honey);
	stroke-linecap: round;
	stroke-dasharray: 100;
	stroke-dashoffset: calc(100 - var(--sp, 0) * 100);
}
html:not(.js) .to-top { opacity: 1; visibility: visible; transform: none; }

/* 404 */
.notfound { max-width: 720px; text-align: center; padding-block: 48px 24px; }
.notfound__bubble { display: flex; justify-content: center; margin-bottom: 12px; }
.notfound .search-form { margin: 24px auto; max-width: 560px; }
.notfound p { color: var(--ink-2); font-size: 1.08rem; }

/* ==========================================================================
   8. Poraštė
   ========================================================================== */
.site-footer {
	margin-top: 56px;
	background: var(--footer-bg);
	color: var(--footer-ink);
	font-size: .95rem;
}
.related + .site-footer, .archive-cta + .site-footer { margin-top: 0; }
.site-footer a { color: var(--footer-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 36px;
	padding-block: 56px 40px;
}
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 48px; } }
.site-footer__brand p { margin-top: 16px; max-width: 42ch; }
.site-footer .brand { color: #fff; }
.site-footer .brand__tagline { color: var(--footer-ink); }
.site-footer .brand__mark circle { stroke: var(--footer-bg); }
.site-footer__title { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; line-height: 1.35; }
.site-footer li .children { margin: 8px 0 0 14px; }
.site-footer__utility { margin-top: 18px !important; padding-top: 14px !important; border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__utility a { display: inline-flex; align-items: center; gap: 6px; }
.site-footer__utility .icon { width: 16px; height: 16px; }
.social--footer { margin-top: 16px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px; font-size: .86rem; }
.site-footer__bottom p { margin: 0; }

/* ==========================================================================
   9. Prisitaikymas mažiems ekranams
   ========================================================================== */
@media (max-width: 999px) {
	.hero__side .card--mini:first-child { padding-top: 16px; }
}
@media (max-width: 760px) {
	.topbar__date { display: none; }
	.topbar__nav { margin-left: 0; }
	.topbar__in { justify-content: space-between; }
	.icon-btn__label { display: none; }
	.icon-btn { padding: 8px; }
	.brand__mark { width: 40px; height: 40px; }
	.masthead__in { padding-block: 12px; }

	.card--lead .card__body { margin: -36px 10px 0; padding: 18px 18px 16px; border-radius: 18px; }
	.card--lead .card__body::before { left: 22px; }
	.card--lead .card__excerpt { display: none; }

	.card--row { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding-block: 16px; }
	.card--row .card__media { aspect-ratio: 4 / 3; border-radius: 6px; }
	.card--row .card__title { font-size: 1.05rem; line-height: 1.3; }
	.card--row .card__excerpt { display: none; }

	.entry-content { font-size: 1.1rem; line-height: 1.72; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 0 1em; max-width: 100%; }
	.article__hero { padding-inline: 0; }
	.article__hero img { border-radius: 0; max-height: 420px; }
	.article__hero figcaption { padding-inline: var(--gutter); }

	.up-next { left: 12px; right: 80px; bottom: 14px; width: auto; }
	.to-top { right: 14px; bottom: 14px; width: 52px; height: 52px; }
	.to-top__ring { width: 52px; height: 52px; }
	.archive-cta { padding: 22px; }
	.crumbs [aria-current] { max-width: 24ch; }
}

/* ==========================================================================
   10. Judesys, spauda
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.ticker__viewport { overflow-x: auto; scrollbar-width: none; }
	.ticker__track[aria-hidden="true"] { display: none; }
}

@media print {
	.topbar, .masthead__actions, .catnav, .ticker, .search-panel, .progress, .article__aside, .toc,
	.share, .related, .up-next, .to-top, .post-nav, .inline-read, .site-footer__grid, .sidebar, .loadmore, .pagination { display: none !important; }
	body { color: #000; background: #fff; }
	.entry-content { font-size: 12pt; }
	.entry-content a::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
	.article__layout { display: block; }
}

/* WordPress būtinos klasės */
.wp-caption { max-width: 100%; }
.gallery-caption, .bypostauthor, .sticky { display: block; }
.alignnone { margin: 0; }
