/*
Theme Name: Plunksna
Theme URI: https://www.gelbvaik.lt/
Author: Vaikų žurnalistika
Description: Savita, greita ir SEO optimizuota naujienų portalo tema „Vaikų žurnalistikai“. Veikia be papildomų įskiepių: schema.org (NewsArticle), Open Graph, kanoninės nuorodos, robots, turinio rodyklė, susiję straipsniai, peržiūrų skaitiklis, tamsus režimas, „Į viršų“ mygtukas su progreso žiedu, senų URL nukreipimai. Suderinta su LiteSpeed Cache.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: plunksna
Tags: news, blog, two-columns, custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. Kintamieji
   ========================================================================== */
:root {
	--paper: #FAF6EE;
	--paper-2: #F2EBDD;
	--card: #FFFFFF;
	--ink: #17172B;
	--ink-2: #3A3A52;
	--muted: #5E5E72;
	--line: #E2D9C8;
	--edge: #17172B;
	--shadow-c: #17172B;
	--red: #D2381F;
	--yellow: #FFC93C;
	--hl: #FFD966;
	--blue: #2B59C3;
	--green: #1C7C62;
	--purple: #6F45B8;
	--orange: #B85A0C;
	--teal: #0D7480;
	--footer: #17172B;
	--cat: var(--red);
	--radius: 16px;
	--radius-s: 10px;
	--f-head: Bitter, Georgia, "Times New Roman", serif;
	--f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 1240px;
	--gap: clamp(18px, 2.4vw, 30px);
	--nav-h: 54px;
	color-scheme: light;
}

html[data-theme="dark"] {
	--paper: #111120;
	--paper-2: #18182C;
	--card: #1C1C32;
	--ink: #F1ECE2;
	--ink-2: #D7D1C5;
	--muted: #A9A5B8;
	--line: #2D2D48;
	--edge: #3A3A5E;
	--shadow-c: #05050B;
	--red: #FF6B4F;
	--hl: rgba(255, 201, 60, .38);
	--blue: #7FA2FF;
	--green: #4CC9A0;
	--purple: #B596FF;
	--orange: #FFA45C;
	--teal: #4FD1DB;
	--footer: #0A0A14;
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) {
		--paper: #111120;
		--paper-2: #18182C;
		--card: #1C1C32;
		--ink: #F1ECE2;
		--ink-2: #D7D1C5;
		--muted: #A9A5B8;
		--line: #2D2D48;
		--edge: #3A3A5E;
		--shadow-c: #05050B;
		--red: #FF6B4F;
		--hl: rgba(255, 201, 60, .38);
		--blue: #7FA2FF;
		--green: #4CC9A0;
		--purple: #B596FF;
		--orange: #FFA45C;
		--teal: #4FD1DB;
		--footer: #0A0A14;
		color-scheme: dark;
	}
}

html[data-fs="1"] { font-size: 109%; }
html[data-fs="2"] { font-size: 118%; }

.c-0 { --cat: var(--red); }
.c-1 { --cat: var(--blue); }
.c-2 { --cat: var(--green); }
.c-3 { --cat: var(--purple); }
.c-4 { --cat: var(--orange); }
.c-5 { --cat: var(--teal); }

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

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

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-head);
	line-height: 1.18;
	letter-spacing: -.012em;
	margin: 0 0 .5em;
	font-weight: 750;
	text-wrap: balance;
}

p { margin: 0 0 1em; }

button { font: inherit; color: inherit; cursor: pointer; }

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

::selection { background: var(--yellow); color: #17172B; }

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

.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 1000;
	background: var(--yellow);
	color: #17172B;
	padding: 10px 16px;
	font-weight: 700;
	border: 2px solid #17172B;
	border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 32px);
}
.wrap--narrow { max-width: calc(760px + 2 * clamp(16px, 4vw, 32px)); }
.wrap--wide { max-width: calc(1100px + 2 * clamp(16px, 4vw, 32px)); }

.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

.site-main { display: block; min-height: 50vh; }
.site-main:focus { outline: none; }

/* ==========================================================================
   3. Viršutinė juosta
   ========================================================================== */
.topbar {
	background: #17172B;
	color: #EDE8DD;
	font-size: .82rem;
}
.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 38px;
}
.topbar__meta { margin: 0; display: flex; gap: 16px; align-items: center; white-space: nowrap; overflow: hidden; }
.topbar__date:first-letter { text-transform: uppercase; }
.topbar__edition {
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--yellow);
}
.topbar__tools { display: flex; gap: 6px; align-items: center; }
.tool {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: 1.5px solid rgba(237, 232, 221, .35);
	color: inherit;
	border-radius: 999px;
	padding: 4px 11px;
	font-size: .8rem;
	font-weight: 600;
	line-height: 1.2;
	transition: background .15s, color .15s, border-color .15s;
}
.tool:hover { background: var(--yellow); color: #17172B; border-color: var(--yellow); }
.tool--icon { padding: 5px; width: 30px; height: 30px; justify-content: center; }
.tool .ico { width: 16px; height: 16px; }
.ico--sun { display: none; }
html[data-theme="dark"] .ico--sun { display: block; }
html[data-theme="dark"] .ico--moon { display: none; }
@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) .ico--sun { display: block; }
	html:not([data-theme="light"]) .ico--moon { display: none; }
}

/* ==========================================================================
   4. Antraštė (masthead) ir meniu
   ========================================================================== */
.masthead {
	background-color: var(--paper);
	background-image: radial-gradient(var(--line) 1.1px, transparent 1.2px);
	background-size: 18px 18px;
	position: relative;
}
.masthead__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding-block: 18px;
}
.brand { margin: 0; font-size: inherit; line-height: 1; font-family: var(--f-body); flex: none; }
.brand__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--ink);
}
.brand__link:hover { color: var(--ink); }
.brand__link:hover .brand__mark { transform: rotate(-6deg) scale(1.04); }
.brand__mark { width: 54px; height: 54px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__kicker {
	font-family: var(--f-body);
	font-weight: 700;
	font-size: .82rem;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--red);
}
.brand__name {
	font-family: var(--f-head);
	font-weight: 850;
	font-size: 2rem;
	letter-spacing: -.02em;
	line-height: .95;
}
.custom-logo { max-height: 66px; width: auto; }

.masthead__tagline {
	margin: 0 auto;
	font-family: var(--f-head);
	font-style: italic;
	font-weight: 500;
	color: var(--ink-2);
	font-size: 1rem;
	text-align: center;
	max-width: 340px;
	padding: 6px 14px;
	position: relative;
}
.masthead__tagline::before {
	content: "";
	position: absolute;
	inset: auto 10% 2px 10%;
	height: 9px;
	background: var(--hl);
	z-index: -1;
	border-radius: 3px;
	transform: rotate(-1deg);
}

.search-toggle {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--card);
	border: 2px solid var(--edge);
	border-radius: 999px;
	padding: 9px 16px;
	font-weight: 700;
	font-size: .92rem;
	box-shadow: 3px 3px 0 var(--shadow-c);
	transition: transform .15s, box-shadow .15s;
}
.search-toggle:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow-c); }
.search-toggle[aria-expanded="true"] { background: var(--yellow); color: #17172B; }

.mainnav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-top: 2px solid var(--edge);
	border-bottom: 2px solid var(--edge);
}
.admin-bar .mainnav { top: 32px; }
@media (max-width: 782px) { .admin-bar .mainnav { top: 0; } }

.nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	min-height: var(--nav-h);
	align-items: center;
	mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.nav__list::-webkit-scrollbar { display: none; }
.nav__list a {
	display: block;
	white-space: nowrap;
	text-decoration: none;
	font-weight: 700;
	font-size: .95rem;
	padding: 8px 13px;
	border-radius: 8px;
	position: relative;
}
.nav__list a:hover { background: var(--paper-2); color: var(--ink); }
.nav__list .current-menu-item > a,
.nav__list .current-category-ancestor > a,
.nav__list .current-post-ancestor > a {
	background-image: linear-gradient(var(--hl), var(--hl));
	background-size: calc(100% - 20px) 9px;
	background-position: 10px 78%;
	background-repeat: no-repeat;
}

.search-panel {
	border-bottom: 2px solid var(--edge);
	background: var(--paper-2);
	padding-block: 20px;
}
.search-panel__hint { margin: 12px 0 0; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); }
.search-panel__hint a { color: var(--ink); font-weight: 600; }

.searchform { display: flex; gap: 10px; max-width: 760px; }
.searchform__input {
	flex: 1;
	min-width: 0;
	font: inherit;
	font-size: 1.1rem;
	padding: 13px 18px;
	border: 2px solid var(--edge);
	border-radius: 12px;
	background: var(--card);
	color: var(--ink);
}
.searchform__input:focus { outline: 3px solid var(--yellow); outline-offset: 0; }
.searchform__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 2px solid var(--edge);
	background: #17172B;
	color: #FFF;
	font-weight: 700;
	border-radius: 12px;
	padding: 0 20px;
	box-shadow: 3px 3px 0 var(--red);
}

/* ==========================================================================
   5. Naujienų juosta
   ========================================================================== */
.ticker {
	background: var(--paper-2);
	border-bottom: 2px solid var(--edge);
	font-size: .92rem;
	overflow: hidden;
}
.ticker__inner { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.ticker__label {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--yellow);
	color: #17172B;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .75rem;
	padding: 5px 11px;
	border: 2px solid #17172B;
	border-radius: 6px;
	transform: rotate(-2deg);
}
.ticker__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--red);
	animation: pulse 1.6s infinite;
}
.ticker__viewport {
	display: flex;
	overflow: hidden;
	flex: 1;
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
}
.ticker__track {
	display: flex;
	flex: none;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	animation: ticker 70s linear infinite;
}
.ticker__track li { white-space: nowrap; padding-right: 34px; position: relative; }
.ticker__track li::after {
	content: "✦";
	position: absolute;
	right: 11px;
	color: var(--red);
	font-size: .7rem;
	top: .25em;
}
.ticker__track a { text-decoration: none; font-weight: 600; }
.ticker__track a:hover { text-decoration: underline; }
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }

@keyframes ticker { to { transform: translateX(-100%); } }
@keyframes pulse { 50% { opacity: .25; } }

/* ==========================================================================
   6. Bendri elementai
   ========================================================================== */
.section-title {
	font-size: clamp(1.45rem, 2.6vw, 1.9rem);
	font-weight: 850;
	margin: 0 0 22px;
	letter-spacing: -.02em;
}
.section-title a { text-decoration: none; }
.section-title span {
	background-image: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 88%, transparent 88%);
	padding: 0 .1em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.catblock .section-title span {
	background-image: linear-gradient(transparent 58%, color-mix(in srgb, var(--cat) 28%, transparent) 58%, color-mix(in srgb, var(--cat) 28%, transparent) 88%, transparent 88%);
}

.stamp {
	position: relative;
	z-index: 2;
	display: inline-block;
	align-self: flex-start;
	background: var(--cat);
	color: #FFF;
	font-family: var(--f-body);
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 4px 8px 3px;
	border-radius: 4px;
	transform: rotate(-2deg);
	box-shadow: 2px 2px 0 var(--shadow-c);
	line-height: 1.35;
	transition: transform .2s;
}
html[data-theme="dark"] .stamp { color: #111120; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .stamp { color: #111120; } }
a.stamp:hover { color: #FFF; transform: rotate(0) scale(1.05); }

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--card);
	border: 2px solid var(--edge);
	border-radius: 999px;
	padding: 6px 13px;
	font-weight: 700;
	font-size: .88rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, color .15s, transform .15s;
}
.chip small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.chip:hover { background: var(--cat); color: #FFF; transform: translateY(-2px); }
.chip:hover small { color: inherit; opacity: .85; }

.more-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: .92rem;
	text-decoration: none;
	color: var(--ink);
}
.more-link .ico { transition: transform .2s; }
.more-link:hover .ico { transform: translateX(4px); }

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	background: #17172B;
	color: #FFF;
	border: 2px solid #17172B;
	border-radius: 999px;
	padding: 12px 24px;
	font-weight: 800;
	font-size: 1rem;
	text-decoration: none;
	box-shadow: 4px 4px 0 var(--red);
	transition: transform .15s, box-shadow .15s;
}
.button:hover { color: #FFF; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--red); }
.button--yellow { background: var(--yellow); color: #17172B; box-shadow: 4px 4px 0 #000; border-color: #000; }
.button--yellow:hover { color: #17172B; box-shadow: 6px 6px 0 #000; }

.hl {
	background-image: linear-gradient(var(--hl), var(--hl));
	background-size: 0 42%;
	background-position: 0 92%;
	background-repeat: no-repeat;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	transition: background-size .38s cubic-bezier(.25, .8, .25, 1);
}
a:hover .hl, a:focus-visible .hl, .card:hover .hl { background-size: 100% 42%; }

.time { white-space: nowrap; }

/* ==========================================================================
   7. Kortelės
   ========================================================================== */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 2px solid var(--edge);
	border-radius: var(--radius);
	box-shadow: 4px 4px 0 var(--shadow-c);
	transition: transform .18s ease, box-shadow .18s ease;
	min-width: 0;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--shadow-c); }
.card:focus-within { box-shadow: 7px 7px 0 var(--yellow); }

.thumb { position: relative; overflow: hidden; background: var(--paper-2); }
.card__media {
	aspect-ratio: 16 / 10;
	border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
	border-bottom: 2px solid var(--edge);
}
.thumb__img, .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.card:hover .thumb__img { transform: scale(1.045); }

.thumb__ph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background-color: var(--cat);
	background-image:
		repeating-linear-gradient(-45deg, rgba(255, 255, 255, .13) 0 10px, transparent 10px 22px);
	color: #FFF;
	font-family: var(--f-head);
	font-weight: 900;
	font-size: clamp(2.6rem, 7vw, 5rem);
	line-height: 1;
}
.thumb__ph span {
	text-shadow: 4px 4px 0 rgba(0, 0, 0, .22);
	transform: rotate(-6deg);
}

.card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px 18px;
	flex: 1;
}
.card__title {
	font-size: 1.2rem;
	font-weight: 750;
	line-height: 1.26;
	margin: 0;
}
.card__link { text-decoration: none; color: var(--ink); }
.card__link:hover { color: var(--ink); }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card__excerpt { color: var(--ink-2); margin: 0; font-size: .97rem; line-height: 1.55; }
.card__meta {
	margin: auto 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	color: var(--muted);
	font-size: .82rem;
	font-weight: 500;
}
.card__rt { display: inline-flex; align-items: center; gap: 4px; }
.card__rt .ico { width: 14px; height: 14px; }

.card__num {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	background: var(--yellow);
	color: #17172B;
	font-family: var(--f-head);
	font-weight: 900;
	font-size: .85rem;
	padding: 2px 7px;
	border-radius: 6px;
	border: 2px solid #17172B;
}

/* Pagrindinė (lead) */
.card--lead { background: none; border: 0; box-shadow: none; }
.card--lead:hover { transform: none; box-shadow: none; }
.card--lead .card__media {
	aspect-ratio: 16 / 9;
	border: 2px solid var(--edge);
	border-radius: var(--radius);
	box-shadow: 6px 6px 0 var(--shadow-c);
}
.card--lead .card__body {
	position: relative;
	margin: -78px 22px 0;
	background: var(--card);
	border: 2px solid var(--edge);
	border-radius: var(--radius);
	box-shadow: 6px 6px 0 var(--red);
	padding: 22px 26px 22px;
	transition: transform .2s, box-shadow .2s;
}
.card--lead:hover .card__body { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--red); }
.card--lead .card__title { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 850; line-height: 1.12; letter-spacing: -.02em; }
.card--lead .card__excerpt { font-size: 1.06rem; }

/* Kompaktiška */
.card--compact {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	background: none;
	border: 0;
	border-bottom: 2px dashed var(--line);
	border-radius: 0;
	box-shadow: none;
	padding: 14px 0;
}
.card--compact:hover { transform: none; box-shadow: none; }
.card--compact:last-child { border-bottom: 0; padding-bottom: 0; }
.card--compact .card__media {
	aspect-ratio: 1 / 1;
	border: 2px solid var(--edge);
	border-radius: 12px;
}
.card--compact .thumb__ph { font-size: 2.2rem; }
.card--compact .card__body { padding: 0; gap: 8px; }
.card--compact .card__title { font-size: 1.04rem; line-height: 1.3; }

/* Plati (archyvo pirma) */
.card--wide { grid-column: 1 / -1; }
@media (min-width: 760px) {
	.card--wide { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
	.card--wide .card__media {
		aspect-ratio: auto;
		min-height: 320px;
		border-bottom: 0;
		border-right: 2px solid var(--edge);
		border-radius: calc(var(--radius) - 2px) 0 0 calc(var(--radius) - 2px);
	}
	.card--wide .card__body { padding: 28px 30px; justify-content: center; }
	.card--wide .card__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 850; }
}

/* ==========================================================================
   8. Pagrindinis puslapis
   ========================================================================== */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: calc(var(--gap) + 8px);
	margin-top: 30px;
	align-items: start;
}
.hero__side {
	background: var(--card);
	border: 2px solid var(--edge);
	border-radius: var(--radius);
	box-shadow: 4px 4px 0 var(--shadow-c);
	padding: 18px 20px 20px;
}
.hero__side-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--f-head);
	font-weight: 800;
	font-size: 1.1rem;
	margin: 0 0 4px;
}
.hero__side-title::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--red);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 25%, transparent);
}
.hero__side .card--compact .card__title { font-size: 1rem; }

.topics {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 44px;
}
.topics__label {
	flex: none;
	font-family: var(--f-head);
	font-weight: 800;
	font-size: 1.05rem;
}
.topics__label::after { content: " →"; color: var(--red); }
.topics__list {
	list-style: none;
	margin: 0;
	padding: 4px 4px 8px;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: thin;
}
.topics__list--sub { flex-wrap: wrap; margin-top: 14px; padding-left: 0; }

.sections { margin-top: 8px; }
.catblock { margin-top: 56px; }
.catblock__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	border-top: 5px solid var(--cat);
	padding-top: 14px;
	margin-bottom: 4px;
	position: relative;
}
.catblock__head::before {
	content: "";
	position: absolute;
	top: -5px;
	left: 0;
	width: 84px;
	height: 5px;
	background: var(--ink);
}
.catblock__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: var(--gap);
	align-items: start;
}
.catblock__list { display: flex; flex-direction: column; }
.catblock__grid > .card .card__media { aspect-ratio: 16 / 9; }
@media (min-width: 761px) {
	.catblock:nth-of-type(even) .catblock__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
	.catblock:nth-of-type(even) .catblock__grid > .card { order: 2; }
}
.catblock__list .card--compact:first-child { padding-top: 0; }

.split {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: var(--gap);
	margin-top: 60px;
	align-items: start;
}

.popular {
	background: var(--card);
	border: 2px solid var(--edge);
	border-radius: var(--radius);
	box-shadow: 4px 4px 0 var(--shadow-c);
	padding: 24px 26px 18px;
}
.popular__list { list-style: none; margin: 0; padding: 0; }
.popular__item {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	padding: 14px 0;
	border-top: 2px dashed var(--line);
}
.popular__item:first-child { border-top: 0; padding-top: 4px; }
.popular__n {
	font-family: var(--f-head);
	font-weight: 900;
	font-size: 2.6rem;
	line-height: .9;
	color: transparent;
	-webkit-text-stroke: 2px var(--red);
}
.popular__item:first-child .popular__n { color: var(--red); }
.popular__title { font-size: 1.08rem; margin: 8px 0 0; line-height: 1.3; }
.popular__title a { text-decoration: none; }

.discover {
	background: #17172B;
	color: #F1ECE2;
	border: 2px solid #17172B;
	border-radius: var(--radius);
	padding: 28px;
	position: relative;
	overflow: hidden;
	box-shadow: 6px 6px 0 var(--yellow);
}
.discover::after {
	content: "";
	position: absolute;
	right: -40px;
	top: -40px;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	border: 22px solid rgba(255, 201, 60, .12);
}
.discover__eyebrow { color: var(--yellow); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; margin: 0 0 6px; }
.discover__title { font-size: 1.65rem; font-weight: 850; margin: 0 0 18px; color: #FFF; }
.discover__sub { margin: 26px 0 6px; font-weight: 700; font-size: .9rem; color: #B9B4C8; }
.discover__list { list-style: none; margin: 0; padding: 0; }
.discover__list li { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: 2px; }
.discover__list a { color: #FFF; font-weight: 600; text-decoration-color: var(--yellow); }
.discover__list a:hover { color: var(--yellow); }
.discover__list .time { color: #9C98AE; font-size: .8rem; }

.latest { margin-top: 64px; }

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
	gap: calc(var(--gap) + 4px);
}

/* Puslapiavimas */
.pagination { margin: 44px 0 0; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.pagination .page-numbers:not(.button) {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 2px solid var(--edge);
	border-radius: 12px;
	background: var(--card);
	text-decoration: none;
	font-weight: 700;
}
.pagination .page-numbers.current { background: var(--yellow); color: #17172B; border-color: #17172B; }
.pagination .page-numbers.dots { border: 0; background: none; }
.pagination a.page-numbers:not(.button):hover { background: var(--ink); color: var(--paper); }
.loadmore { display: flex; justify-content: center; margin-top: 40px; }

/* ==========================================================================
   9. Sąrašai (archyvai, paieška)
   ========================================================================== */
.listing__head { margin: 34px 0 30px; }
.listing__eyebrow {
	margin: 18px 0 4px;
	color: var(--red);
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-size: .8rem;
}
.listing__title {
	font-size: clamp(2.1rem, 5.2vw, 3.6rem);
	font-weight: 900;
	letter-spacing: -.03em;
	margin: 0 0 10px;
}
.listing__title.c-0, .listing__title.c-1, .listing__title.c-2,
.listing__title.c-3, .listing__title.c-4, .listing__title.c-5 {
	text-decoration: underline;
	text-decoration-color: var(--cat);
	text-decoration-thickness: .14em;
	text-underline-offset: .12em;
}
.listing__desc { max-width: 720px; color: var(--ink-2); font-size: 1.1rem; }
.listing__count, .listing__page {
	display: inline-block;
	margin: 6px 10px 0 0;
	font-weight: 700;
	font-size: .85rem;
	background: var(--paper-2);
	border: 2px solid var(--edge);
	border-radius: 999px;
	padding: 3px 12px;
}

.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 9px; color: var(--line); font-weight: 700; }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }

.empty { margin: 20px 0; }
.empty__title { font-family: var(--f-head); font-weight: 800; font-size: 1.4rem; }
.empty .searchform { margin: 14px 0 20px; }
.empty .topics__list { flex-wrap: wrap; padding-left: 0; margin-bottom: 40px; }

.notfound { text-align: left; margin: 40px 0 10px; position: relative; }
.notfound__code {
	font-family: var(--f-head);
	font-weight: 900;
	font-size: clamp(6rem, 22vw, 13rem);
	line-height: .8;
	margin: 0 0 12px;
	color: transparent;
	-webkit-text-stroke: 3px var(--red);
	transform: rotate(-4deg);
	display: inline-block;
}

/* ==========================================================================
   10. Straipsnis
   ========================================================================== */
.readbar {
	position: fixed;
	inset: 0 0 auto 0;
	height: 5px;
	z-index: 100;
	pointer-events: none;
}
.admin-bar .readbar { top: 32px; }
.readbar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--red), var(--yellow));
	transform-origin: 0 50%;
	transform: scaleX(var(--p, 0));
}

.article__head { margin-top: 30px; }
.article__head .stamp { font-size: .78rem; margin-bottom: 14px; }
.article__title {
	font-size: clamp(2rem, 4.8vw, 3.25rem);
	font-weight: 850;
	line-height: 1.1;
	letter-spacing: -.025em;
	margin: 0 0 16px;
}
.article__dek {
	font-size: clamp(1.12rem, 2vw, 1.32rem);
	line-height: 1.5;
	color: var(--ink-2);
	margin: 0 0 20px;
	padding-left: 16px;
	border-left: 4px solid var(--yellow);
}
.byline { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; }
.byline__avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--yellow);
	color: #17172B;
	border: 2px solid #17172B;
	font-family: var(--f-head);
	font-weight: 900;
	font-size: 1.25rem;
	text-transform: uppercase;
}
.byline__avatar--lg { width: 64px; height: 64px; font-size: 1.7rem; }
.byline__text { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.byline__author { font-weight: 700; }
.byline__author a { text-decoration-color: var(--red); }
.byline__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--muted); }
.byline__rt { display: inline-flex; align-items: center; gap: 4px; }
.byline__rt .ico { width: 15px; height: 15px; }

.article__media { margin: 34px auto 10px; }
.article__img {
	width: 100%;
	max-height: 640px;
	object-fit: cover;
	border: 2px solid var(--edge);
	border-radius: var(--radius);
	box-shadow: 7px 7px 0 var(--shadow-c);
}
.article__media figcaption { font-size: .85rem; color: var(--muted); margin-top: 12px; padding-left: 4px; }

.article__layout {
	display: grid;
	grid-template-columns: 56px minmax(0, 720px);
	justify-content: center;
	gap: 44px;
	margin-top: 30px;
	padding-right: calc(clamp(16px, 4vw, 32px) + 100px);
}
.article__aside { position: relative; }
.article__aside .share { position: sticky; top: calc(var(--nav-h) + 30px); }

/* Turinio tipografija */
.entry-content {
	font-size: 1.15rem;
	line-height: 1.78;
	overflow-wrap: break-word;
}
.entry-content > * { margin-top: 0; margin-bottom: 1.3em; }
.entry-content > p:first-child::first-letter {
	float: left;
	font-family: var(--f-head);
	font-weight: 900;
	font-size: 4.1em;
	line-height: .82;
	margin: .07em .1em 0 0;
	color: var(--red);
}
.entry-content h2 { font-size: clamp(1.5rem, 2.8vw, 1.85rem); font-weight: 800; margin: 2em 0 .65em; }
.entry-content h3 { font-size: 1.36rem; font-weight: 750; margin: 1.7em 0 .55em; }
.entry-content h4 { font-size: 1.15rem; margin: 1.5em 0 .5em; }
.entry-content h2, .entry-content h3 { scroll-margin-top: calc(var(--nav-h) + 24px); }
.entry-content h2::before {
	content: "";
	display: block;
	width: 44px;
	height: 5px;
	background: var(--yellow);
	border-radius: 3px;
	margin-bottom: 14px;
}
.entry-content a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--red);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	transition: background .15s;
}
.entry-content a:hover { background: var(--hl); color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .45em; }
.entry-content ul li::marker { color: var(--red); }
.entry-content ol li::marker { color: var(--red); font-weight: 800; font-family: var(--f-head); }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin-inline: 0;
	padding: 6px 0 6px 24px;
	border-left: 6px solid var(--yellow);
	font-family: var(--f-head);
	font-size: 1.32rem;
	line-height: 1.5;
	font-weight: 600;
}
.entry-content blockquote cite { display: block; margin-top: 8px; font-family: var(--f-body); font-size: .9rem; font-style: normal; color: var(--muted); font-weight: 600; }
.entry-content .wp-block-pullquote { border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); padding: 24px 0; text-align: center; }
.entry-content img { border-radius: 12px; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .wp-caption-text { font-size: .86rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.entry-content th, .entry-content td { border: 1.5px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--paper-2); font-weight: 700; }
.entry-content hr { border: 0; height: 0; border-top: 2px dashed var(--line); margin: 2.4em 0; }
.entry-content code { background: var(--paper-2); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
.entry-content pre { background: #17172B; color: #F1ECE2; padding: 18px; border-radius: 12px; overflow: auto; font-size: .92rem; }
.entry-content mark { background: var(--hl); color: inherit; padding: 0 .15em; }
.entry-content iframe { width: 100%; border-radius: 12px; }
.entry-content .alignwide { margin-inline: calc(-1 * min(120px, 6vw)); max-width: none; }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.aligncenter { display: block; margin-inline: auto; text-align: center; }
.wp-caption { max-width: 100%; }
.wp-block-image img { height: auto; }

/* Turinio rodyklė */
.toc {
	background: var(--paper-2);
	border: 2px dashed var(--edge);
	border-radius: 14px;
	padding: 4px 22px;
	font-size: 1rem;
	line-height: 1.5;
}
.toc summary {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-family: var(--f-head);
	font-weight: 800;
	font-size: 1.08rem;
	padding: 14px 0;
	list-style: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; font-weight: 700; transition: transform .2s; }
.toc[open] summary::after { transform: rotate(45deg); }
.toc summary small {
	background: var(--ink);
	color: var(--paper);
	border-radius: 999px;
	font-size: .72rem;
	padding: 1px 8px;
	font-family: var(--f-body);
}
.toc ol { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: toc; }
.toc li { margin: 0; padding: 4px 0; display: flex; gap: 8px; }
.toc .toc__l2 { counter-increment: toc; }
.toc .toc__l2::before { content: counter(toc) "."; color: var(--red); font-weight: 800; font-family: var(--f-head); min-width: 1.4em; }
.toc .toc__l3 { padding-left: 2.2em; font-size: .94rem; }
.toc .toc__l3::before { content: "–"; color: var(--muted); }
.toc a { text-decoration: none !important; color: var(--ink-2) !important; }
.toc a:hover, .toc a.is-active { color: var(--red) !important; background: none !important; }
.toc a.is-active { font-weight: 700; }

/* Taip pat skaitykite */
.alsoread {
	border: 2px solid var(--edge);
	border-left: 8px solid var(--red);
	border-radius: 12px;
	background: var(--card);
	padding: 14px 16px;
	box-shadow: 4px 4px 0 var(--shadow-c);
	font-size: 1rem;
	line-height: 1.4;
}
.alsoread__label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.entry-content .alsoread__link { display: grid; grid-template-columns: 64px 1fr 24px; gap: 14px; align-items: center; text-decoration: none; }
.entry-content .alsoread__link:hover { background: none; }
.alsoread__thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; display: block; background: var(--paper-2); }
.alsoread__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.alsoread__thumb .thumb__ph { font-size: 1.6rem; }
.alsoread__title { font-family: var(--f-head); font-weight: 750; font-size: 1.08rem; }
.alsoread__link:hover .alsoread__title { color: var(--red); }

/* Straipsnio apačia */
.article__foot { margin-top: 36px; }
.tags { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
	display: inline-block;
	text-decoration: none;
	font-weight: 700;
	font-size: .88rem;
	padding: 5px 12px;
	border-radius: 8px;
	background: var(--paper-2);
	border: 2px solid var(--line);
}
.tags a:hover { border-color: var(--edge); color: var(--ink); background: var(--hl); }

.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share__label { font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-right: 4px; color: var(--muted); }
.share__btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid var(--edge);
	background: var(--card);
	color: var(--ink);
	text-decoration: none;
	transition: transform .15s, background .15s;
}
.share__btn:hover { background: var(--yellow); color: #17172B; transform: translateY(-2px) rotate(-6deg); }
.share__btn .ico { width: 19px; height: 19px; }
.share--vertical { flex-direction: column; }
.share--vertical .share__label { writing-mode: vertical-rl; transform: rotate(180deg); margin: 0 0 6px; }
.share--row { padding: 18px 0; border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); }

.authorbox {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 18px;
	margin-top: 28px;
	padding: 22px;
	background: var(--paper-2);
	border: 2px solid var(--edge);
	border-radius: var(--radius);
}
.authorbox__name { font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; margin: 0 0 4px; }
.authorbox__bio { color: var(--ink-2); margin: 0 0 10px; font-size: .97rem; }

.postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 40px;
}
.postnav__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	border: 2px solid var(--edge);
	border-radius: var(--radius);
	background: var(--card);
	text-decoration: none;
	box-shadow: 4px 4px 0 var(--shadow-c);
	transition: transform .15s, box-shadow .15s;
}
.postnav__item:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow-c); }
.postnav__item--next { text-align: right; grid-column: 2; }
.postnav__dir { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--red); }
.postnav__title { font-family: var(--f-head); font-weight: 750; font-size: 1.05rem; line-height: 1.3; }

.related { margin-top: 64px; }
.after-article { margin-top: 30px; }
.widget__title { font-size: 1.2rem; }
.page-links { display: flex; gap: 8px; margin-top: 24px; font-weight: 700; }

/* Kitas straipsnis (lipni juosta) */
.nextup {
	position: fixed;
	left: 50%;
	bottom: 18px;
	z-index: 70;
	width: min(560px, calc(100% - 108px));
	display: grid;
	grid-template-columns: 52px 1fr 22px;
	gap: 12px;
	align-items: center;
	padding: 9px 16px 9px 9px;
	background: #17172B;
	color: #FFF;
	border: 2px solid #17172B;
	border-radius: 16px;
	text-decoration: none;
	box-shadow: 5px 5px 0 var(--yellow);
	transform: translate(-50%, 160%);
	transition: transform .4s cubic-bezier(.2, 1.2, .4, 1);
}
.nextup.is-visible { transform: translate(-50%, 0); }
.nextup:hover { color: var(--yellow); }
.nextup__thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; display: block; }
.nextup__thumb .thumb__ph { font-size: 1.4rem; }
.nextup__text { display: flex; flex-direction: column; min-width: 0; }
.nextup__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--yellow); }
.nextup__title { font-family: var(--f-head); font-weight: 750; font-size: .98rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   11. Į viršų, pranešimai
   ========================================================================== */
.totop {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 80;
	width: 58px;
	height: 58px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 2px solid var(--edge);
	background: var(--card);
	color: var(--ink);
	box-shadow: 3px 3px 0 var(--shadow-c);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px) scale(.9);
	transition: opacity .25s, transform .25s, visibility .25s, background .15s;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--yellow); color: #17172B; }
.totop:hover .totop__ico { transform: translateY(-3px); }
.totop__ico { width: 22px; height: 22px; transition: transform .2s; position: relative; }
.totop__ring { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); transform: rotate(-90deg); }
.totop__track { fill: none; stroke: transparent; stroke-width: 3; }
.totop__progress {
	fill: none;
	stroke: var(--red);
	stroke-width: 3.5;
	stroke-linecap: round;
	stroke-dasharray: 100;
	stroke-dashoffset: calc(100 - var(--p, 0) * 100);
}
html:not(.js) .totop { opacity: 1; visibility: visible; transform: none; }

.toast {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 90;
	max-width: min(420px, calc(100% - 108px));
	background: var(--card);
	color: var(--ink);
	border: 2px solid var(--edge);
	border-radius: 14px;
	padding: 12px 14px;
	box-shadow: 5px 5px 0 var(--red);
	font-size: .92rem;
	display: flex;
	gap: 10px;
	align-items: flex-start;
	animation: toastIn .35s cubic-bezier(.2, 1.2, .4, 1);
}
.toast[hidden] { display: none; }
.toast a { font-weight: 700; text-decoration-color: var(--red); }
.toast__label { display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: 2px; }
.toast__close { margin-left: auto; background: none; border: 0; padding: 0 2px; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.toast__bar { display: block; height: 4px; background: var(--paper-2); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.toast__bar i { display: block; height: 100%; background: var(--yellow); }
@keyframes toastIn { from { transform: translateY(30px); opacity: 0; } }

body.has-nextup .totop { bottom: 92px; }
body.has-nextup .toast { display: none; }

/* ==========================================================================
   12. Poraštė
   ========================================================================== */
.site-footer {
	margin-top: 90px;
	background-color: var(--footer);
	background-image: radial-gradient(rgba(255, 255, 255, .06) 1.1px, transparent 1.2px);
	background-size: 18px 18px;
	color: #DAD5CB;
	border-top: 6px solid var(--yellow);
	font-size: .95rem;
}
.site-footer a { color: #FFF; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .8fr);
	gap: 40px;
	padding-block: 54px 36px;
}
.brand__link--footer { color: #FFF; margin-bottom: 18px; }
.brand__link--footer:hover { color: #FFF; }
.brand__link--footer .brand__kicker { color: #FF7A5C; }
.site-footer__about p { max-width: 440px; color: #B9B4C8; }
.site-footer__title {
	font-family: var(--f-head);
	font-weight: 800;
	color: #FFF;
	font-size: 1.1rem;
	margin: 0 0 14px;
}
.site-footer__cats, .site-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: 20px;
}
.site-footer__menu { columns: 1; }
.site-footer__cats li, .site-footer__menu li { padding: 4px 0; break-inside: avoid; }
.site-footer__cats a, .site-footer__menu a { text-decoration: none; }
.site-footer__cats a:hover, .site-footer__menu a:hover { text-decoration: underline; }
.site-footer__stat { margin: 16px 0; color: #B9B4C8; }
.site-footer__stat strong { display: block; font-family: var(--f-head); font-size: 2.4rem; color: var(--yellow); line-height: 1; }
.site-footer__top { font-weight: 700; text-decoration: none; }
.social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 8px; }
.social a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .25);
}
.social a:hover { background: var(--yellow); color: #17172B; border-color: var(--yellow); }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 18px 26px;
	border-top: 1px dashed rgba(255, 255, 255, .16);
	font-size: .82rem;
	color: #9C98AE;
}
.site-footer__bottom p { margin: 0; }

/* ==========================================================================
   13. WordPress branduolio klasės
   ========================================================================== */
.sticky, .bypostauthor { display: block; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery-item { margin: 0; }
.wp-block-embed__wrapper { position: relative; }

/* ==========================================================================
   14. Prisitaikymas prie ekrano
   ========================================================================== */
@media (max-width: 1100px) {
	.article__layout { padding-right: clamp(16px, 4vw, 32px); }
}

@media (max-width: 1024px) {
	.hero { grid-template-columns: 1fr; }
	.masthead__tagline { display: none; }
}

@media (max-width: 900px) {
	.split { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__about { grid-column: 1 / -1; }
	.article__layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.article__aside { display: none; }
}

@media (max-width: 760px) {
	body { font-size: 1rem; }
	.topbar__edition { display: none; }
	.tool span { display: none; }
	.tool { padding: 5px; width: 30px; height: 30px; justify-content: center; }
	.masthead__inner { padding-block: 12px; gap: 12px; }
	.brand__mark { width: 44px; height: 44px; }
	.brand__name { font-size: 1.55rem; }
	.brand__kicker { font-size: .7rem; }
	.search-toggle { padding: 9px; }
	.search-toggle__label { display: none; }
	.catblock__grid { grid-template-columns: 1fr; }
	.card--lead .card__body { margin: -40px 10px 0; padding: 18px; }
	.card--lead .card__media { box-shadow: 4px 4px 0 var(--shadow-c); }
	.topics { flex-direction: column; align-items: flex-start; gap: 8px; }
	.topics__list { width: 100%; }
	.entry-content { font-size: 1.08rem; line-height: 1.72; }
	.entry-content .alignwide { margin-inline: 0; }
	.postnav { grid-template-columns: 1fr; }
	.postnav__item--next { grid-column: auto; }
	.searchform__btn span { display: none; }
	.alignleft, .alignright { float: none; margin: 0 0 1em; max-width: 100%; }
	.nextup { width: calc(100% - 100px); left: 12px; transform: translate(0, 160%); grid-template-columns: 44px 1fr; }
	.nextup.is-visible { transform: none; }
	.nextup > .ico { display: none; }
	.nextup__thumb { width: 44px; height: 44px; }
	.toast { left: 12px; bottom: 12px; }
	.totop { right: 12px; bottom: 12px; width: 54px; height: 54px; }
	body.has-nextup .totop { bottom: 12px; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.ticker__track { animation: none; }
	.ticker__track[aria-hidden="true"] { display: none; }
	.ticker__viewport { overflow-x: auto; }
}

@media print {
	.topbar, .mainnav, .ticker, .search-panel, .article__aside, .share, .related, .split, .postnav, .nextup, .totop, .toast, .site-footer, .readbar, .alsoread, .toc { display: none !important; }
	body { background: #FFF; color: #000; }
	.article__img { box-shadow: none; }
}
