/* ==========================================================================
   Translate.lt – pagrindiniai stiliai
   Spalvos: rašalas, violetinė (prekės ženklas), gintaras (akcentas), popierius.
   ========================================================================== */

:root {
	--paper: #f6f5fb;
	--surface: #ffffff;
	--surface-2: #fbfaff;
	--ink: #161433;
	--ink-2: #4a4766;
	--ink-3: #75718f;
	--line: #e3e0f0;
	--line-2: #d3cfe6;
	--violet: #5b3df5;
	--violet-600: #4a2fe0;
	--violet-50: #efebff;
	--amber: #f2a93b;
	--amber-ink: #8a5300;
	--amber-50: #fff3df;
	--danger: #c0263b;
	--danger-50: #fdecee;
	--footer: #161433;

	--font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--font-display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;

	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: 1.5625rem;
	--step-3: 1.953rem;
	--step-4: clamp(2.1rem, 1.6rem + 2.2vw, 3.05rem);

	--r-sm: 8px;
	--r: 12px;
	--r-lg: 20px;
	--wrap: 1180px;
	--gutter: clamp(16px, 4vw, 32px);
	--shadow: 0 1px 0 rgba(22, 20, 51, .04), 0 24px 48px -28px rgba(22, 20, 51, .28);
	--focus: 0 0 0 3px var(--surface), 0 0 0 5px var(--violet);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #100e24;
		--surface: #19163a;
		--surface-2: #1d1a42;
		--ink: #f1effa;
		--ink-2: #c3bfdc;
		--ink-3: #938eb2;
		--line: #2c2853;
		--line-2: #3a3566;
		--violet: #9580ff;
		--violet-600: #a895ff;
		--violet-50: #262058;
		--amber: #f5b553;
		--amber-ink: #f5b553;
		--amber-50: #2f2440;
		--danger: #ff7b8c;
		--danger-50: #3a1a2a;
		--footer: #0b0a1c;
		--shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 24px 48px -28px rgba(0, 0, 0, .7);
		color-scheme: dark;
	}
}

/* ---------- Pagrindas ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 var(--step-0)/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: var(--violet); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--ink);
	margin: 0 0 .5em;
	text-wrap: balance;
}
p { margin: 0 0 1em; }
kbd {
	font: 600 .78em/1 var(--font-body);
	padding: .25em .45em;
	border: 1px solid var(--line-2);
	border-bottom-width: 2px;
	border-radius: 5px;
	background: var(--surface);
	color: var(--ink-2);
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.wrap--wide { max-width: calc(1000px + 2 * var(--gutter)); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0; padding: 0; margin: -1px;
}
.skip-link:focus {
	clip-path: none; width: auto; height: auto; margin: 0;
	top: 12px; left: 12px; z-index: 1000;
	padding: 12px 18px; background: var(--ink); color: var(--paper);
	border-radius: var(--r);
}

/* ---------- Mygtukai, žymos ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 26px;
	border: 1.5px solid transparent; border-radius: var(--r);
	font: 700 1rem/1 var(--font-body);
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover { background: var(--violet-600); color: #fff; }
@media (prefers-color-scheme: dark) { .btn--primary { color: #120f2e; } .btn--primary:hover { color: #120f2e; } }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--violet); color: var(--violet); }
.btn[disabled], .btn.is-busy { opacity: .7; cursor: progress; }

.chip {
	display: inline-flex; align-items: center;
	min-height: 34px; padding: 0 14px;
	border: 1px solid var(--line); border-radius: 999px;
	background: var(--surface);
	color: var(--ink-2);
	font: 600 var(--step--1)/1 var(--font-body);
	text-decoration: none; cursor: pointer;
	transition: border-color .15s, color .15s, background-color .15s;
}
.chip:hover { border-color: var(--violet); color: var(--violet); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.cat-tag {
	display: inline-block;
	font: 700 .8125rem/1.2 var(--font-body);
	color: var(--amber-ink);
	text-decoration: none;
	margin-bottom: 8px;
}
.cat-tag:hover { text-decoration: underline; }

/* ---------- Antraštė ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand, .custom-logo-link { display: inline-flex; flex-shrink: 0; }
.brand img, .custom-logo { height: 40px; width: auto; display: block; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav .menu a {
	display: block; padding: 10px 14px; border-radius: var(--r-sm);
	color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .975rem;
}
.site-nav .menu a:hover { color: var(--ink); background: var(--violet-50); }
.site-nav .current-menu-item > a,
.site-nav .current_page_parent > a,
.site-nav .current-menu-ancestor > a { color: var(--violet); }
.site-nav .menu .sub-menu { display: none; }

.nav-search { display: flex; align-items: center; position: relative; }
.nav-search input {
	width: 190px; height: 40px; padding: 0 40px 0 14px;
	border: 1px solid var(--line); border-radius: 999px;
	background: var(--surface); color: var(--ink);
	font: 500 .9rem var(--font-body);
	transition: width .2s, border-color .15s;
}
.nav-search input:focus { outline: none; border-color: var(--violet); width: 240px; }
.nav-search button {
	position: absolute; right: 4px; width: 34px; height: 34px;
	display: grid; place-items: center;
	border: 0; background: none; color: var(--ink-3); cursor: pointer; border-radius: 50%;
}

.nav-toggle { display: none; }

@media (max-width: 880px) {
	.nav-toggle {
		display: grid; place-items: center;
		margin-left: auto; width: 44px; height: 44px;
		background: none; border: 1px solid var(--line); border-radius: var(--r);
		cursor: pointer; color: var(--ink);
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
		transition: transform .2s, opacity .2s;
	}
	.nav-toggle__bars { position: relative; }
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -6px; }
	.nav-toggle__bars::after { top: 6px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

	.site-nav {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 12px;
		padding: 12px var(--gutter) 20px;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
	}
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu a { padding: 12px 8px; font-size: 1.05rem; }
	.nav-search input, .nav-search input:focus { width: 100%; height: 46px; }
}

/* ---------- Hero ir vertėjas ---------- */
.hero { padding: clamp(28px, 5vw, 56px) 0 clamp(36px, 5vw, 64px); }
.hero__head {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 32px;
	align-items: end;
	margin-bottom: clamp(20px, 3vw, 32px);
}
.hero__title { font-size: var(--step-4); max-width: 16ch; margin-bottom: 14px; }
.hero__lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 46ch; margin: 0; }

/* Pasisveikinimų stulpelis – vienintelis „garsus“ dekoratyvus elementas. */
.greetings {
	list-style: none; margin: 0; padding: 0;
	justify-self: end;
	font-family: var(--font-display);
	line-height: 1;
	text-align: right;
	user-select: none;
}
.greetings li { display: flex; align-items: baseline; justify-content: flex-end; gap: 12px; }
.greetings__word { font-weight: 800; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.35rem); letter-spacing: -0.03em; }
.greetings__lang { font: 600 .75rem/1 var(--font-body); color: var(--ink-3); width: 64px; text-align: left; }
.greetings li:nth-child(1) .greetings__word { color: var(--violet); }
.greetings li:nth-child(2) { opacity: .78; }
.greetings li:nth-child(3) { opacity: .58; }
.greetings li:nth-child(4) { opacity: .42; }
.greetings li:nth-child(5) { opacity: .3; }
.greetings li:nth-child(6) { opacity: .2; }

@media (max-width: 820px) {
	.hero__head { grid-template-columns: 1fr; }
	.greetings { display: none; }
}

/* Vertėjo komponentas */
.tlt {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow);
}
.tlt__form { margin: 0; }

.tlt__bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	border-bottom: 1px solid var(--line);
	position: relative;
}
.tlt__lang { display: block; position: relative; }
.tlt__lang select {
	width: 100%; height: 60px;
	padding: 0 44px 0 22px;
	border: 0; background: transparent;
	color: var(--ink);
	font: 700 1.0625rem var(--font-body);
	appearance: none; -webkit-appearance: none;
	cursor: pointer;
	border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.tlt__lang::after {
	content: ''; position: absolute; right: 22px; top: 50%;
	width: 8px; height: 8px; margin-top: -6px;
	border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
	transform: rotate(45deg); pointer-events: none;
}
.tlt__lang select:hover { color: var(--violet); }
.tlt__lang select:focus-visible { box-shadow: inset 0 0 0 2px var(--violet); }
.tlt__lang select option { color: #161433; background: #fff; }

.tlt__swap {
	width: 44px; height: 44px; margin: 0 6px;
	display: grid; place-items: center;
	border: 1px solid var(--line-2); border-radius: 50%;
	background: var(--surface); color: var(--violet);
	cursor: pointer;
	transition: transform .25s ease, border-color .15s, background-color .15s;
}
.tlt__swap:hover { border-color: var(--violet); background: var(--violet-50); }
.tlt__swap.is-spun { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .tlt__swap { transition: none; } }

.tlt__panes { display: grid; grid-template-columns: 1fr 1fr; }
.tlt__pane { display: flex; flex-direction: column; min-width: 0; }
.tlt__pane--out { background: var(--surface-2); border-left: 1px solid var(--line); }

.tlt__pane textarea,
.tlt__out {
	flex: 1;
	width: 100%;
	min-height: 220px;
	padding: 20px 22px 8px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: 500 1.25rem/1.55 var(--font-body);
	resize: none;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.tlt__pane textarea::placeholder { color: var(--ink-3); opacity: 1; }
.tlt__pane textarea:focus, .tlt__pane textarea:focus-visible { outline: none; box-shadow: none; border-radius: 0; }
.tlt__pane--src:focus-within { box-shadow: inset 0 0 0 2px var(--violet-50); }
.tlt__out:empty::before { content: attr(data-placeholder); color: var(--ink-3); }
.tlt__out.is-loading { color: var(--ink-3); }
.tlt__out.is-error { color: var(--danger); font-size: 1rem; }

.tlt__foot {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	min-height: 48px; padding: 6px 12px 10px 22px;
	font-size: var(--step--1); color: var(--ink-3);
}
.tlt__count.is-over { color: var(--danger); font-weight: 700; }
.tlt__tools { display: inline-flex; gap: 4px; margin-left: auto; }
.tlt__tool {
	min-height: 34px; padding: 0 12px;
	border: 1px solid transparent; border-radius: var(--r-sm);
	background: none; color: var(--ink-2);
	font: 600 var(--step--1)/1 var(--font-body);
	cursor: pointer;
}
.tlt__tool:hover { border-color: var(--line-2); color: var(--violet); background: var(--surface); }

.tlt__actions {
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
	padding: 16px 22px;
	border-top: 1px solid var(--line);
}
.tlt__hint { margin: 0; font-size: var(--step--1); color: var(--ink-3); }

.tlt__pairs {
	display: flex; flex-wrap: wrap; gap: 8px;
	padding: 0 22px 20px;
}

/* Kompaktiškas variantas (šoninė juosta, trumpasis kodas) */
.tlt--compact { box-shadow: none; }
.tlt--compact .tlt__bar { grid-template-columns: 1fr auto 1fr; }
.tlt--compact .tlt__lang select { height: 50px; padding: 0 30px 0 14px; font-size: .9375rem; }
.tlt--compact .tlt__lang::after { right: 12px; }
.tlt--compact .tlt__swap { width: 36px; height: 36px; margin: 0 2px; }
.tlt--compact .tlt__panes { grid-template-columns: 1fr; }
.tlt--compact .tlt__pane--out { border-left: 0; border-top: 1px solid var(--line); }
.tlt--compact .tlt__pane textarea,
.tlt--compact .tlt__out { min-height: 96px; font-size: 1rem; padding: 14px 14px 4px; }
.tlt--compact .tlt__foot { padding: 4px 8px 8px 14px; min-height: 40px; }
.tlt--compact .tlt__actions { padding: 12px 14px; }
.tlt--compact .tlt__actions .btn { width: 100%; min-height: 44px; }
.entry-content .tlt { margin: 2em 0; }

@media (max-width: 720px) {
	.tlt__panes { grid-template-columns: 1fr; }
	.tlt__pane--out { border-left: 0; border-top: 1px solid var(--line); }
	.tlt__pane textarea, .tlt__out { min-height: 150px; font-size: 1.125rem; padding: 16px 16px 6px; }
	.tlt__lang select { padding: 0 34px 0 16px; height: 56px; font-size: 1rem; }
	.tlt__lang::after { right: 14px; }
	.tlt__swap { margin: 0 2px; }
	.tlt__foot { padding-left: 16px; }
	.tlt__actions { padding: 14px 16px; }
	.tlt__actions .btn { flex: 1; }
	.tlt__hint { display: none; }
	.tlt__pairs { padding: 0 16px 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.tlt__pairs .chip { white-space: nowrap; }
}

/* ---------- Skiltys ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tight { padding-top: 24px; }
.section__title { font-size: var(--step-3); margin-bottom: 20px; }
.section__lead { color: var(--ink-2); max-width: 60ch; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section__head .section__title { margin: 0; }
.link-more { font-weight: 700; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

.ad-slot { margin: 8px auto 0; min-height: 90px; display: flex; justify-content: center; }
.ad-slot--article { margin: 40px 0; }

/* Žingsniai – tikra seka, todėl numeruojama */
.steps { border-top: 1px solid var(--line); }
.steps__list {
	list-style: none; margin: 8px 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 48px);
	counter-reset: step;
}
.steps__list li { counter-increment: step; position: relative; padding-top: 64px; }
.steps__list li::before {
	content: counter(step);
	position: absolute; top: 0; left: 0;
	font: 800 3.25rem/1 var(--font-display);
	color: var(--amber);
	letter-spacing: -0.04em;
}
.steps__list h3 { font-size: var(--step-1); margin-bottom: 8px; }
.steps__list p { color: var(--ink-2); margin: 0; }

/* Kalbos */
.languages { background: var(--surface); border-block: 1px solid var(--line); }
.languages__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: baseline; margin-bottom: 28px; }
.languages__head .section__lead { margin: 0; }
.languages__pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.languages__pairs h3 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 800; letter-spacing: 0; color: var(--ink-3); margin-bottom: 12px; }
.pair-list {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(2, 1fr);
	border-top: 1px solid var(--line);
}
.pair-list li { border-bottom: 1px solid var(--line); }
.pair-list a {
	display: block; padding: 12px 4px;
	color: var(--ink); text-decoration: none; font-weight: 600;
}
.pair-list a:hover { color: var(--violet); }
.languages__all-title { font-size: var(--step-0); font-family: var(--font-body); font-weight: 800; letter-spacing: 0; color: var(--ink-3); margin: 40px 0 12px; }
.lang-cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 2px; }
.lang-cloud button {
	padding: 6px 10px; border: 0; border-radius: var(--r-sm);
	background: none; color: var(--ink-2);
	font: 500 1rem/1.3 var(--font-body); cursor: pointer;
}
.lang-cloud button:hover { background: var(--violet-50); color: var(--violet); }

@media (max-width: 820px) {
	.languages__head, .languages__pairs { grid-template-columns: 1fr; gap: 16px; }
	.languages__pairs { gap: 28px; }
}

/* Privalumai */
.features__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.features__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 0; }
.features__list > div { padding: 20px 0; border-top: 2px solid var(--ink); }
.features__list dt { font: 800 var(--step-1)/1.25 var(--font-display); letter-spacing: -0.01em; margin-bottom: 6px; }
.features__list dd { margin: 0; color: var(--ink-2); }

/* Kortelės */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r); background: var(--line); margin-bottom: 16px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .card__media img { transition: none; } .card:hover .card__media img { transform: none; } }
.card__title { font-size: var(--step-1); line-height: 1.25; margin-bottom: 8px; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--violet); }
.card__excerpt { color: var(--ink-2); font-size: .975rem; margin-bottom: 10px; }

.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; font-size: var(--step--1); color: var(--ink-3); }
.post-meta__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

/* Patarimai */
.tips { background: var(--amber-50); }
.tips__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.tips__list li { position: relative; padding: 16px 0 16px 34px; border-top: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); color: var(--ink-2); }
.tips__list li::before {
	content: ''; position: absolute; left: 4px; top: 25px;
	width: 14px; height: 8px;
	border-left: 2.5px solid var(--amber-ink); border-bottom: 2.5px solid var(--amber-ink);
	transform: rotate(-45deg);
}
.tips__list strong { color: var(--ink); }

/* DUK */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-of-type { border-top: 1px solid var(--line); }
.faq__item summary {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 20px 0; cursor: pointer; list-style: none;
	font-weight: 700; font-size: 1.0625rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
	content: ''; flex-shrink: 0; width: 10px; height: 10px; margin-right: 6px;
	border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet);
	transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq__item p { color: var(--ink-2); margin: -6px 0 20px; max-width: 64ch; }

@media (max-width: 820px) {
	.steps__list, .features__grid, .features__list, .tips__list { grid-template-columns: 1fr; }
	.features__grid { gap: 8px; }
}

/* ---------- Tinklaraštis ---------- */
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.page-head__title { font-size: var(--step-4); margin-bottom: 12px; }
.page-head__desc { color: var(--ink-2); max-width: 60ch; font-size: var(--step-1); line-height: 1.5; }
.page-head__desc p:last-child { margin: 0; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px;
	display: inline-grid; place-items: center;
	border: 1px solid var(--line); border-radius: var(--r);
	background: var(--surface); color: var(--ink);
	text-decoration: none; font-weight: 700;
}
.pagination .page-numbers:hover { border-color: var(--violet); color: var(--violet); }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pagination .page-numbers.dots { border: 0; background: none; }

.empty { padding: 40px 0; max-width: 560px; }
.search-form { display: flex; gap: 8px; margin: 16px 0 24px; }
.search-form input {
	flex: 1; min-width: 0; height: 48px; padding: 0 16px;
	border: 1px solid var(--line-2); border-radius: var(--r);
	background: var(--surface); color: var(--ink); font: 500 1rem var(--font-body);
}
.search-form input:focus { outline: none; border-color: var(--violet); }

/* Įrašas */
.post-head { padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: var(--step--1); color: var(--ink-3); margin-bottom: 16px; }
.crumbs a { color: var(--ink-3); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--violet); }
.post-head__title { font-size: var(--step-4); max-width: 22ch; margin-bottom: 16px; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; padding-bottom: 32px; }
.post-main { min-width: 0; max-width: 760px; }
.post-aside { position: sticky; top: 96px; display: grid; gap: 20px; }
.admin-bar .post-aside { top: 128px; }
.aside-title { font-size: var(--step-0); font-family: var(--font-body); font-weight: 800; letter-spacing: 0; margin: 0 0 12px; }
.aside-box.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.aside-box ul { margin: 0; padding-left: 1.1em; }

@media (max-width: 1000px) {
	.post-layout { grid-template-columns: 1fr; }
	.post-aside { position: static; }
}

.entry-hero { margin: 0 0 32px; }
.entry-hero img { width: 100%; border-radius: var(--r-lg); display: block; }

/* Įrašo turinio tipografija */
.entry-content { font-size: 1.125rem; line-height: 1.75; }
.entry-content > * { max-width: 70ch; }
.entry-content > .alignwide, .entry-content > .alignfull, .entry-content > .wp-block-image, .entry-content > figure, .entry-content > .tlt { max-width: none; }
.entry-content h2 { font-size: var(--step-2); margin: 1.8em 0 .55em; }
.entry-content h3 { font-size: var(--step-1); margin: 1.6em 0 .5em; }
.entry-content h4 { font-size: var(--step-0); margin: 1.4em 0 .4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content li::marker { color: var(--violet); }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin: 1.6em 0; padding: 4px 0 4px 22px;
	border-left: 4px solid var(--amber);
	font-size: 1.2rem; color: var(--ink);
}
.entry-content blockquote cite { display: block; margin-top: 8px; font-size: .9rem; color: var(--ink-3); font-style: normal; }
.entry-content img { border-radius: var(--r); }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption, .wp-caption-text { font-size: var(--step--1); color: var(--ink-3); margin-top: 8px; text-align: center; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.entry-content code { font-size: .9em; padding: .15em .4em; border-radius: 6px; background: var(--violet-50); }
.entry-content pre { overflow-x: auto; padding: 18px; border-radius: var(--r); background: var(--ink); color: var(--paper); font-size: .9rem; }
.entry-content pre code { background: none; padding: 0; color: inherit; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 1.6em 0; 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 { font-weight: 800; border-bottom: 2px solid var(--ink); }
.entry-content .wp-block-table table { display: table; }
.entry-content .wp-block-button__link { background: var(--violet); color: #fff; border-radius: var(--r); font-weight: 700; padding: 14px 24px; text-decoration: none; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; display: block; }
.has-ink-color { color: #161433; } .has-violet-color { color: #5b3df5; } .has-amber-color { color: #f2a93b; }
.has-ink-background-color { background-color: #161433; } .has-violet-background-color { background-color: #5b3df5; }
.has-amber-background-color { background-color: #f2a93b; } .has-paper-background-color { background-color: #f6f5fb; }
.has-white-background-color { background-color: #fff; }

.tag-list { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.post-navigation { margin-top: 48px; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post-navigation a { display: block; padding: 20px 0; text-decoration: none; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-nav__label { display: block; font-size: var(--step--1); color: var(--ink-3); font-weight: 600; margin-bottom: 4px; }
.post-nav__title { display: block; font: 800 var(--step-0)/1.3 var(--font-display); color: var(--ink); }
.post-navigation a:hover .post-nav__title { color: var(--violet); }

.related { background: var(--surface); border-top: 1px solid var(--line); }
.page-links { margin: 24px 0; font-weight: 700; }

/* Komentarai */
.comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.comments__title, .comment-reply-title { font-size: var(--step-2); }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; border-left: 2px solid var(--line); }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: var(--step--1); margin: 4px 0 8px; }
.comment-metadata a { color: var(--ink-3); text-decoration: none; }
.reply a { font-size: var(--step--1); font-weight: 700; }
.comment-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px;
	border: 1px solid var(--line-2); border-radius: var(--r);
	background: var(--surface); color: var(--ink); font: 500 1rem var(--font-body);
}
.comment-form textarea:focus, .comment-form input:focus { outline: none; border-color: var(--violet); }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 500; }
.comment-notes { color: var(--ink-3); font-size: var(--step--1); }

/* 404 */
.notfound__code { font: 800 clamp(5rem, 18vw, 10rem)/1 var(--font-display); color: var(--violet); letter-spacing: -0.05em; margin: 0 0 8px; }

/* ---------- Poraštė ---------- */
.site-footer { background: var(--footer); color: #c9c5e2; padding: 64px 0 24px; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__about p { margin-top: 16px; max-width: 34ch; font-size: .975rem; }
.site-footer__about .brand img { height: 36px; }
.site-footer__title { font: 800 .95rem/1.2 var(--font-body); letter-spacing: 0; color: #8f8ab2; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; font-size: .975rem; }
.site-footer__contact { margin-top: 18px; font-size: .9rem; }
.site-footer__bottom {
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	margin-top: 48px; padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: var(--step--1); color: #8f8ab2;
}
@media (max-width: 880px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Spausdinimas */
@media print {
	.site-header, .site-footer, .post-aside, .ad-slot, .related, .comments, .post-navigation { display: none !important; }
	body { background: #fff; color: #000; }
	.post-layout { display: block; }
}
.brand picture { display: block; }
.entry-content .wp-block-table td, .entry-content .wp-block-table th { border: 0; border-bottom: 1px solid var(--line); }
.entry-content .wp-block-table th { border-bottom: 2px solid var(--ink); }
.entry-content .wp-block-table thead, .entry-content .wp-block-table tfoot { border: 0; }

/* ---------- Tinklaraščio centras: išskirtiniai įrašai ir temos ---------- */
.blog-hub { background: var(--surface); border-top: 1px solid var(--line); }
.blog-hub .section__head { align-items: flex-end; margin-bottom: 32px; }
.blog-hub .section__lead { margin: 0; }
.blog-hub__subtitle { font-size: var(--step-2); margin: 56px 0 20px; }
.blog-hub__topics { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }

.featured {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	grid-template-rows: auto auto;
	gap: 24px clamp(20px, 3vw, 36px);
	margin-bottom: 48px;
}
.featured--single { grid-template-columns: 1fr; }
.feature-card { display: flex; flex-direction: column; min-width: 0; }
.feature-card--big { grid-row: 1 / span 2; }
.feature-card__media { display: block; overflow: hidden; border-radius: var(--r); background: var(--line); margin-bottom: 14px; aspect-ratio: 16 / 10; }
.feature-card--big .feature-card__media { aspect-ratio: 16 / 9; border-radius: var(--r-lg); margin-bottom: 20px; }
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.feature-card:hover .feature-card__media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .feature-card:hover .feature-card__media img { transform: none; } }
.feature-card__title { font-size: var(--step-1); line-height: 1.22; margin-bottom: 8px; }
.feature-card--big .feature-card__title { font-size: var(--step-3); margin-bottom: 12px; }
.feature-card__title a { color: var(--ink); text-decoration: none; }
.feature-card__title a:hover { color: var(--violet); }
.feature-card__excerpt { color: var(--ink-2); font-size: 1.0625rem; max-width: 62ch; }

.topics {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}
.topic {
	display: flex; flex-direction: column;
	padding: 22px 22px 18px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
}
.blog-hub__topics .topic { background: var(--surface); }
.topic__title { font-size: var(--step-1); margin: 0 0 2px; }
.topic__title a { color: var(--ink); text-decoration: none; }
.topic__title a:hover { color: var(--violet); }
.topic__count { margin: 0 0 14px; font-size: var(--step--1); font-weight: 700; color: var(--amber-ink); }
.topic__list { list-style: none; margin: 0 0 14px; padding: 0; flex: 1; }
.topic__list li { padding: 9px 0; border-top: 1px solid var(--line); line-height: 1.35; }
.topic__list a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9688rem; }
.topic__list a:hover { color: var(--violet); }
.topic__more { font-weight: 700; font-size: var(--step--1); text-decoration: none; }
.topic__more:hover { text-decoration: underline; }

.chip__n { margin-left: 6px; font-weight: 600; color: var(--ink-3); }
.chip.is-active .chip__n { color: inherit; opacity: .7; }

@media (max-width: 900px) {
	.featured { grid-template-columns: 1fr 1fr; }
	.feature-card--big { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 560px) {
	.featured { grid-template-columns: 1fr; }
	.blog-hub .section__head .btn { width: 100%; }
}
.feature-card--noimg { padding: 24px; background: var(--violet-50); border-radius: var(--r-lg); justify-content: flex-end; }
.feature-card--big.feature-card--noimg { padding: clamp(24px, 4vw, 48px); min-height: 320px; }

/* Mygtukas „Į viršų“ */
.to-top {
	position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 60;
	width: 48px; height: 48px;
	display: grid; place-items: center;
	border: 0; border-radius: 50%;
	background: var(--violet); color: #fff;
	box-shadow: 0 10px 24px -10px rgba(91, 61, 245, .7);
	cursor: pointer;
	opacity: 0; transform: translateY(8px);
	transition: opacity .2s, transform .2s, background-color .15s;
}
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--violet-600); }
.to-top[hidden] { display: none; }
@media (prefers-color-scheme: dark) { .to-top { color: #120f2e; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
@media print { .to-top { display: none !important; } }
