/*
Theme Name: Nušauk
Theme URI: https://www.shooting.lt/
Author: Nušauk žinią pirmas
Description: Greita, SEO optimizuota naujienų portalo tema „Nušauk žinią pirmas“. Veikia be papildomų įskiepių: meta aprašymai, kanoninės nuorodos, Open Graph, JSON-LD (NewsArticle), naršymo kelias, turinys (TOC), skaitymo eiga, „Skaitomiausi“, susiję straipsniai, „Rodyti daugiau“, šviesus / tamsus režimas, mygtukas „Į viršų“ ir senų adresų peradresavimas.
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: nusauk
Tags: news, blog, two-columns, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Spalvos ir dydžiai
   ========================================================================== */
:root {
	--paper: #F4F6F2;
	--surface: #FFFFFF;
	--ink: #14231C;
	--ink-2: #4A5B51;
	--line: #D7DFD5;
	--forest: #0E5A3A;
	--forest-deep: #0A3F29;
	--amber: #F5B700;
	--link: #0E5A3A;
	--live: #C0392B;
	--on-band: #FFFFFF;
	--shadow: 0 10px 30px -12px rgba(10, 40, 25, .28);

	--tone-1: #0E5A3A;
	--tone-2: #0F6475;
	--tone-3: #A63A24;
	--tone-4: #6B3A75;
	--tone-5: #8A6200;
	--tone-6: #3D4F63;

	--serif: "Bitter", "Iowan Old Style", "Rockwell", "Roboto Slab", Georgia, serif;
	--sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 72px;
	--radius: 6px;

	color-scheme: light;
}

:root[data-theme="dark"] {
	--paper: #0E1813;
	--surface: #15231B;
	--ink: #E7EDE5;
	--ink-2: #A3B5A9;
	--line: #263A2E;
	--forest: #13724A;
	--forest-deep: #0A2F1F;
	--link: #F5C93A;
	--shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
	--tone-1: #6FCB9C;
	--tone-2: #6CC3D4;
	--tone-3: #F09A84;
	--tone-4: #D6A6E0;
	--tone-5: #F1C653;
	--tone-6: #A9BCD2;
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #0E1813;
		--surface: #15231B;
		--ink: #E7EDE5;
		--ink-2: #A3B5A9;
		--line: #263A2E;
		--forest: #13724A;
		--forest-deep: #0A2F1F;
		--link: #F5C93A;
		--shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
		--tone-1: #6FCB9C;
		--tone-2: #6CC3D4;
		--tone-3: #F09A84;
		--tone-4: #D6A6E0;
		--tone-5: #F1C653;
		--tone-6: #A9BCD2;
		color-scheme: dark;
	}
}

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

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

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-feature-settings: "kern", "liga";
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--link); }

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

h1, h2, h3, h4 { font-family: var(--serif); margin: 0; line-height: 1.15; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

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

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

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--amber); color: #14231C;
	padding: 10px 16px; font-weight: 700; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.site-main { display: block; min-height: 60vh; outline: none; }
.section-pad { padding-block: 40px 72px; }

/* ==========================================================================
   3. Antraštė
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }

.header-bar {
	display: flex; align-items: center; gap: 28px;
	min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand .logo-svg { height: 46px; width: auto; display: block; }
.brand .custom-logo { max-height: 52px; width: auto; }

.primary-nav { flex: 1; min-width: 0; }
.primary-nav .menu { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 2px; }
.primary-nav a {
	display: block; padding: 8px 12px; border-radius: var(--radius);
	font-weight: 600; font-size: .95rem; color: var(--ink);
}
.primary-nav a:hover { background: var(--surface); color: var(--ink); }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current-post-ancestor > a {
	box-shadow: inset 0 -3px 0 var(--amber);
	border-radius: 0;
}

.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.today { font-size: .875rem; color: var(--ink-2); margin-right: 10px; white-space: nowrap; }
.today::first-letter { text-transform: uppercase; }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 42px; height: 42px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; cursor: pointer;
	color: var(--ink);
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 22px; height: 22px; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .i-sun { display: block; }
	:root:not([data-theme="light"]) .i-moon { display: none; }
}
.menu-btn { display: none; }

.search-panel { background: var(--surface); border-top: 1px solid var(--line); padding-block: 18px; }
.search-form { display: flex; gap: 10px; max-width: 720px; }
.search-input {
	flex: 1; min-width: 0; height: 52px; padding: 0 18px;
	font: 500 1.0625rem var(--sans); color: var(--ink);
	background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
}
.search-input:focus { border-color: var(--forest); outline: none; }
.search-submit {
	height: 52px; padding: 0 24px; border: 0; border-radius: var(--radius);
	background: var(--forest); color: #fff; font-weight: 700; cursor: pointer;
}
.search-submit:hover { background: var(--forest-deep); }

/* Naujausių antraščių juosta */
.ticker { border-top: 1px solid var(--line); background: var(--surface); font-size: .9rem; }
.ticker-inner { display: flex; align-items: center; gap: 16px; height: 40px; }
.ticker-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; flex: none; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(192, 57, 43, .5); }
.ticker-viewport {
	flex: 1; min-width: 0; overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 48px), transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 48px), transparent);
}
.ticker-track { display: flex; width: max-content; }
.ticker-list { display: flex; list-style: none; gap: 36px; padding-right: 36px; }
.ticker-list a { white-space: nowrap; color: var(--ink); }
.ticker-list a:hover { color: var(--link); text-decoration: underline; }
.ticker-time { color: var(--ink-2); font-variant-numeric: tabular-nums; margin-right: 4px; }

@media (prefers-reduced-motion: no-preference) {
	.ticker-track { animation: nzp-ticker 70s linear infinite; }
	.ticker:hover .ticker-track,
	.ticker:focus-within .ticker-track { animation-play-state: paused; }
	.pulse { animation: nzp-pulse 2s ease-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
	.ticker-viewport { overflow-x: auto; }
	.ticker-list[aria-hidden="true"] { display: none; }
}
@keyframes nzp-ticker { to { transform: translateX(-50%); } }
@keyframes nzp-pulse {
	0% { box-shadow: 0 0 0 0 rgba(192, 57, 43, .55); }
	80%, 100% { box-shadow: 0 0 0 9px rgba(192, 57, 43, 0); }
}

/* Skaitymo eiga */
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.read-progress span {
	display: block; height: 100%; background: var(--amber);
	transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* ==========================================================================
   4. Bendri elementai: žymos, laikas, mygtukai, nuotraukos
   ========================================================================== */
.chip {
	display: inline-block;
	font: 600 .8125rem/1.2 var(--sans);
	color: var(--c);
	background: color-mix(in srgb, var(--c) 12%, transparent);
	padding: 4px 9px; border-radius: 4px;
	align-self: flex-start;
}
a.chip:hover { color: var(--c); background: color-mix(in srgb, var(--c) 22%, transparent); }
/* --c – teksto / akcento spalva (prisitaiko prie režimo), --ph – nuotraukos pakaitalo fonas (pastovus) */
:where(.chip, .ph, .cat-block, .archive-band) { --c: var(--tone-1); --ph: #0E5A3A; }
.tone-1 { --c: var(--tone-1); --ph: #0E5A3A; }
.tone-2 { --c: var(--tone-2); --ph: #0F6475; }
.tone-3 { --c: var(--tone-3); --ph: #A63A24; }
.tone-4 { --c: var(--tone-4); --ph: #6B3A75; }
.tone-5 { --c: var(--tone-5); --ph: #8A6200; }
.tone-6 { --c: var(--tone-6); --ph: #3D4F63; }

.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.meta .read::before {
	content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px;
	border: 2px solid currentColor; border-radius: 50%; vertical-align: -1px; opacity: .7;
}

.btn-more {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 50px; padding: 0 28px;
	font-weight: 700; color: var(--ink);
	border: 2px solid var(--ink); border-radius: var(--radius);
	background: transparent; cursor: pointer;
}
.btn-more:hover { background: var(--ink); color: var(--paper); }
.btn-more[aria-busy="true"] { opacity: .6; pointer-events: none; }
.more-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 40px; }
.more-status { font-size: .875rem; color: var(--ink-2); min-height: 1.2em; }

.section-title {
	display: flex; align-items: center; gap: 10px;
	font-size: clamp(1.35rem, 1.1rem + .8vw, 1.65rem);
	margin-bottom: 22px;
}
.section-title::before {
	content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%;
	background: var(--amber); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink);
}
.section-title a:hover { color: var(--link); }

/* Taikiklio rėmas: įpjovos rėmo viduryje (kaip logotipe), užvedus – taikinys centre */
.reticle { position: relative; display: block; }
.reticle img, .reticle .ph { border-radius: var(--radius); }
.reticle::before {
	content: ""; position: absolute; inset: -10px; z-index: 1; pointer-events: none;
	background:
		linear-gradient(var(--amber), var(--amber)) 50% 0 / 4px 22px no-repeat,
		linear-gradient(var(--amber), var(--amber)) 50% 100% / 4px 22px no-repeat,
		linear-gradient(var(--amber), var(--amber)) 0 50% / 22px 4px no-repeat,
		linear-gradient(var(--amber), var(--amber)) 100% 50% / 22px 4px no-repeat;
}
.reticle::after {
	content: ""; position: absolute; left: 50%; top: 50%; z-index: 1;
	width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
	border: 4px solid var(--amber); box-shadow: inset 0 0 0 14px rgba(20, 35, 28, .25), 0 0 0 2px rgba(20, 35, 28, .25);
	opacity: 0; transform: scale(1.6); pointer-events: none;
}
a:hover .reticle::after, a:focus-visible .reticle::after { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: no-preference) {
	.reticle::after { transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
}

/* Pakaitalas, kai straipsnis neturi nuotraukos */
.ph {
	position: relative; display: flex; align-items: flex-end;
	width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
	background:
		repeating-radial-gradient(circle at 82% 78%, rgba(255, 255, 255, .13) 0 2px, transparent 2px 26px),
		var(--ph);
	color: #fff;
}
.ph-word {
	padding: 14px 16px; font: 800 clamp(1.1rem, 2.5vw, 1.6rem)/1 var(--serif);
	opacity: .92; overflow-wrap: anywhere;
}

/* ==========================================================================
   5. Kortelės
   ========================================================================== */
.grid { display: grid; gap: 36px 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
	.card-media img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
	.card:hover .card-media img { transform: scale(1.035); }
}
.card-body { display: flex; flex-direction: column; gap: 10px; }
.card-title { font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -.005em; }
.card-title a { color: var(--ink); background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 3px no-repeat; transition: background-size .25s ease; }
.card-title a:hover { color: var(--ink); background-size: 100% 3px; }
.card-excerpt { color: var(--ink-2); font-size: 1rem; }

.card-row { flex-direction: row; gap: 16px; align-items: flex-start; padding-top: 16px; border-top: 1px solid var(--line); }
.card-row .card-media { flex: none; width: 96px; }
.card-row .card-media img, .card-row .ph { width: 96px; aspect-ratio: 1; }
.card-row .ph-word { display: none; }
.card-row .card-title { font-size: 1.05rem; font-weight: 600; }
.card-row .card-body { gap: 6px; }

/* ==========================================================================
   6. Pradžia: pagrindinė naujiena
   ========================================================================== */
.lead {
	background: var(--forest); color: var(--on-band);
	padding-block: clamp(36px, 6vw, 72px);
	position: relative; overflow: hidden;
}
.lead::before {
	content: ""; position: absolute; right: -180px; bottom: -260px; width: 720px; height: 720px;
	background: repeating-radial-gradient(circle, rgba(255, 255, 255, .06) 0 2px, transparent 2px 60px);
	pointer-events: none;
}
.lead-inner {
	position: relative;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(28px, 5vw, 64px); align-items: center;
}
.lead-text { display: flex; flex-direction: column; gap: 18px; }
.lead .chip { --c: #14231C; background: var(--amber); color: #14231C; }
.lead .chip:hover { background: #fff; color: #14231C; }
.lead-title {
	font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.25rem);
	line-height: 1.06; letter-spacing: -.02em; font-weight: 800;
	text-wrap: balance;
}
.lead-long .lead-title { font-size: clamp(1.75rem, 1rem + 2.1vw, 2.7rem); }
.lead-title a { color: #fff; }
.lead-title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 5px; text-underline-offset: 8px; }
.lead-excerpt { font-size: 1.125rem; line-height: 1.55; opacity: .88; max-width: 54ch; }
.meta-lead { color: rgba(255, 255, 255, .78); font-size: .875rem; }
.btn-read {
	align-self: flex-start; margin-top: 6px;
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px;
	background: var(--amber); color: #14231C; font-weight: 700; border-radius: var(--radius);
}
.btn-read:hover { background: #fff; color: #14231C; }
.lead-media { display: block; margin: 10px; }
.lead-media img, .lead-media .ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lead .ph { --ph: #0A3F29; }

/* ==========================================================================
   7. Pradžia: svarbiausia + laiko juosta
   ========================================================================== */
.home-grid {
	display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 56px; padding-block: 56px;
}
.timeline-list { list-style: none; position: relative; }
.timeline-list::before {
	content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line);
}
.timeline-list li {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
	padding: 0 0 24px 32px;
}
.timeline-list li::before {
	content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%;
	background: var(--paper); border: 3px solid var(--forest);
}
.timeline-list li:first-child::before { background: var(--amber); border-color: var(--ink); }
.tl-time { font-size: .8125rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tl-title { font: 600 1.05rem/1.3 var(--serif); color: var(--ink); }
.tl-title:hover { color: var(--link); }
.timeline .chip { font-size: .75rem; padding: 2px 7px; }

/* Skaitomiausi */
.popular { background: var(--surface); border-block: 1px solid var(--line); padding-block: 44px; }
.popular-list { list-style: none; counter-reset: pop; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.popular-list li { counter-increment: pop; }
.popular-list a { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; color: var(--ink); }
.popular-list a::before {
	content: counter(pop);
	grid-row: span 2;
	font: 800 3rem/0.9 var(--serif); color: var(--forest);
	font-variant-numeric: lining-nums;
}
:root[data-theme="dark"] .popular-list a::before { color: var(--amber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .popular-list a::before { color: var(--amber); } }
.popular-title { font: 600 1rem/1.3 var(--serif); }
.popular-list a:hover .popular-title { color: var(--link); }
.popular-meta { font-size: .8125rem; color: var(--ink-2); }

/* Rubrikų blokai */
.cat-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 48px; padding-block: 56px 24px; }
.cat-block { display: flex; flex-direction: column; gap: 16px; border-top: 5px solid var(--c); padding-top: 18px; }
.cat-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.cat-block-head .section-title { margin: 0; }
.cat-block-head .section-title::before { background: var(--c); }
.see-all { font-size: .875rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.see-all:hover { color: var(--link); text-decoration: underline; }

.more-news { padding-block: 40px 80px; }
.js-feed:empty { display: none; }

/* Puslapiavimas */
.pager { margin-top: 28px; }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager a, .pager span {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
	border-radius: var(--radius); font-weight: 600; font-size: .9375rem;
}
.pager a:hover { background: var(--surface); }
.pager .current { background: var(--ink); color: var(--paper); }
.js .pager { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ==========================================================================
   8. Archyvai
   ========================================================================== */
.archive-band { background: var(--surface); border-bottom: 1px solid var(--line); }
.archive-band[class*="tone-"] { box-shadow: inset 0 6px 0 var(--c); }
.archive-head { padding-block: 36px 40px; display: flex; flex-direction: column; gap: 12px; }
.archive-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); letter-spacing: -.015em; }
.archive-page { display: block; font: 600 1rem var(--sans); color: var(--ink-2); margin-top: 8px; letter-spacing: 0; }
.archive-desc { max-width: 70ch; color: var(--ink-2); font-size: 1.0625rem; }
.archive-desc p + p { margin-top: .8em; }
.archive-count { color: var(--ink-2); font-size: .9375rem; }
.search-inline { margin-top: 8px; }
.subcats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.subcats .chip { font-size: .9rem; padding: 7px 12px; }
.empty { padding: 24px 0 40px; display: flex; flex-direction: column; gap: 18px; font-size: 1.125rem; }
.latest-strip { margin-top: 24px; }

/* Naršymo kelias */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: .8125rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .55; }
.crumbs a:hover { color: var(--link); text-decoration: underline; }
.crumbs [aria-current] span { display: inline-block; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ==========================================================================
   9. Straipsnis
   ========================================================================== */
.article-head {
	max-width: calc(996px + var(--gutter) * 2);
	padding-block: 32px 28px;
	display: flex; flex-direction: column; gap: 16px;
}
.article-title {
	font-size: clamp(2rem, 1.2rem + 3vw, 3.3rem);
	line-height: 1.08; letter-spacing: -.02em; max-width: 30ch;
	text-wrap: balance;
}
.article-dek { font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); max-width: 62ch; line-height: 1.5; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: .875rem; color: var(--ink-2); padding-top: 4px; }
.byline { font-weight: 700; color: var(--ink); }
.article-meta .read::before {
	content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px;
	border: 2px solid currentColor; border-radius: 50%; vertical-align: -1px; opacity: .7;
}
.article-hero { margin: 0 auto 8px; max-width: var(--wrap); }
.article-hero .reticle { margin: 10px; }
.article-hero img, .article-hero .ph { width: 100%; max-height: 560px; aspect-ratio: 16 / 9; object-fit: cover; }
.article-hero figcaption { font-size: .8125rem; color: var(--ink-2); margin: 10px 10px 0; }

.article-layout {
	display: grid; grid-template-columns: 220px minmax(0, 720px);
	justify-content: center; gap: 56px; padding-block: 32px 64px;
}
.article-aside { position: relative; }
.article-aside > * + * { margin-top: 28px; }
.article-aside .toc, .article-aside .aside-share { position: sticky; top: calc(var(--header-h) + 64px); }
.article-aside .toc + .aside-share { position: static; }
.aside-label { font-size: .8125rem; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }

.toc { font-size: .9rem; }
.toc summary { font-weight: 700; cursor: pointer; margin-bottom: 10px; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); line-height: 1.35; }
.toc .toc-l3 a { padding-left: 26px; font-size: .85rem; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--amber); font-weight: 600; }

.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
	border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.share-btn:hover { border-color: var(--ink); color: var(--ink); }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }
.share-note { font-size: .8125rem; color: var(--forest); font-weight: 600; flex-basis: 100%; min-height: 1em; }

/* Straipsnio tekstas */
.entry-content {
	font-family: var(--serif);
	font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
	line-height: 1.75;
	min-width: 0;
	overflow-wrap: break-word;
}
.entry-content > * + * { margin-top: 1.15em; }
.entry-content p:first-of-type::first-line { font-weight: 600; }
.entry-content h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); margin-top: 2.1em; line-height: 1.2; letter-spacing: -.01em; }
.entry-content h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.4rem); margin-top: 1.8em; line-height: 1.25; font-weight: 700; }
.entry-content h4 { font-size: 1.1rem; margin-top: 1.6em; font-weight: 700; }
.entry-content h2 + *, .entry-content h3 + *, .entry-content h4 + * { margin-top: .6em; }
.entry-content a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-thickness: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .45em; }
.entry-content ul li::marker { color: var(--forest); }
.entry-content ol li::marker { font-weight: 700; color: var(--forest); }
.entry-content strong { font-weight: 700; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { font: .8125rem/1.45 var(--sans); color: var(--ink-2); margin-top: 8px; }
.entry-content blockquote {
	margin-inline: 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--amber);
	font-size: 1.25em; font-style: italic; line-height: 1.5;
}
.entry-content blockquote cite { display: block; font: normal .8rem var(--sans); color: var(--ink-2); margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font: .95rem/1.45 var(--sans); 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(--surface); font-weight: 700; }
.entry-content hr { border: 0; height: 2px; background: var(--line); margin-block: 2.4em; }
.entry-content pre, .entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875em; }
.entry-content pre { background: var(--surface); padding: 16px; border-radius: var(--radius); overflow-x: auto; }
.entry-content iframe, .entry-content video { width: 100%; border-radius: var(--radius); }
.entry-content .alignwide { margin-inline: min(-80px, calc((720px - 100vw) / 2 + var(--gutter))); max-width: none; }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.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; }
.entry-content .wp-block-image img { margin-inline: auto; }
.entry-content::after { content: ""; display: table; clear: both; }

.inline-rel {
	display: flex; flex-direction: column; gap: 4px;
	padding: 16px 20px; margin-block: 1.8em;
	background: var(--surface); border-left: 4px solid var(--forest); border-radius: 0 var(--radius) var(--radius) 0;
}
.entry-content .inline-rel { margin-top: 1.8em; }
.inline-rel-label { font: 700 .8125rem var(--sans); color: var(--ink-2); }
.entry-content .inline-rel a { font-weight: 700; font-size: 1.05rem; line-height: 1.35; color: var(--ink); text-decoration: none; }
.entry-content .inline-rel a:hover { color: var(--link); text-decoration: underline; }

.page-links { font-family: var(--sans); font-weight: 600; }
.article-foot { font-family: var(--sans); margin-top: 3em; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px; }
.entry-content .tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.entry-content .tags li + li { margin-top: 0; }
.entry-content .tags a {
	display: inline-block; padding: 6px 12px; border-radius: 4px; font-size: .875rem; font-weight: 600;
	background: var(--surface); color: var(--ink); text-decoration: none; border: 1px solid var(--line);
}
.entry-content .tags a:hover { border-color: var(--ink); }

/* Skaitykite toliau */
.next-band { background: var(--forest); color: #fff; padding-block: clamp(36px, 5vw, 60px); }
.next-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.next-text { display: flex; flex-direction: column; gap: 14px; }
.next-label { font: 700 .9375rem var(--sans); color: var(--amber); }
.next-title { font: 800 clamp(1.6rem, 1.1rem + 2vw, 2.6rem)/1.1 var(--serif); letter-spacing: -.015em; color: #fff; text-wrap: balance; }
.next-title:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.next-media { display: block; margin: 10px; }
.next-media img, .next-media .ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.next-band .ph { --ph: #0A3F29; }

.related { padding-block: 56px 80px; }

/* „Skaitykite toliau“ iššokantis langelis */
.next-toast {
	position: fixed; left: 20px; bottom: 20px; z-index: 40;
	display: flex; align-items: flex-start; gap: 6px;
	max-width: min(380px, calc(100vw - 110px));
	background: var(--surface); color: var(--ink);
	border: 1px solid var(--line); border-left: 5px solid var(--amber);
	border-radius: var(--radius); box-shadow: var(--shadow);
	padding: 14px 8px 14px 16px;
}
.next-toast[hidden] { display: none; }
.next-toast-link { display: flex; flex-direction: column; gap: 4px; }
.next-toast-label { font-size: .75rem; font-weight: 700; color: var(--ink-2); }
.next-toast-title { font: 700 1rem/1.3 var(--serif); }
.next-toast-link:hover .next-toast-title { color: var(--link); }
.next-toast-close { flex: none; width: 32px; height: 32px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.next-toast-close:hover { background: var(--paper); color: var(--ink); }
.next-toast-close svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
	.next-toast { animation: nzp-in .35s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes nzp-in { from { opacity: 0; transform: translateY(16px); } }

/* ==========================================================================
   10. Mygtukas „Į viršų“ – taikiklis su skaitymo eiga
   ========================================================================== */
.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 45;
	width: 60px; height: 60px; display: grid; place-items: center;
	border-radius: 50%; background: var(--surface); color: var(--ink);
	box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(12px);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: no-preference) {
	.to-top { transition: opacity .25s ease, transform .25s ease, visibility .25s; }
}
.to-top:hover { color: var(--ink); background: var(--amber); }
.to-top-ring { position: absolute; inset: 2px; width: 56px; height: 56px; overflow: visible; }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 3; }
.ring-fg {
	fill: none; stroke: var(--amber); stroke-width: 3.5; stroke-linecap: round;
	stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100);
	transform: rotate(-90deg); transform-origin: 50% 50%;
}
.to-top:hover .ring-fg { stroke: var(--ink); }
.ticks { stroke: var(--ink); stroke-width: 3; }
.to-top-arrow { width: 22px; height: 22px; position: relative; }
.to-top-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.has-toast .to-top { bottom: 20px; }

/* ==========================================================================
   11. Poraštė
   ========================================================================== */
.site-footer { background: var(--forest-deep); color: rgba(255, 255, 255, .82); padding-top: 56px; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-about { display: flex; flex-direction: column; gap: 18px; max-width: 42ch; }
.brand-footer { color: #fff; }
.brand-footer:hover { color: #fff; }
.brand-footer .logo-svg { height: 52px; }
.footer-h { font: 700 .9375rem var(--sans); color: var(--amber); margin-bottom: 14px; }
.footer-cats { list-style: none; columns: 2; column-gap: 24px; }
.footer-cats li { break-inside: avoid; padding-block: 4px; }
.footer-cats .count { font-size: .75rem; opacity: .55; margin-left: 4px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links + .footer-links { margin-top: 8px; }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 20px 28px; font-size: .8125rem; color: rgba(255, 255, 255, .6); }

/* ==========================================================================
   12. Prisitaikymas prie ekrano
   ========================================================================== */
@media (max-width: 1180px) {
	.today { display: none; }
	.popular-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.article-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 1000px) {
	:root { --header-h: 64px; }
	.brand .logo-svg { height: 40px; }
	.menu-btn { display: inline-grid; }
	.primary-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		padding: 8px var(--gutter) 16px;
		z-index: 5;
		display: none;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { flex-direction: column; }
	.primary-nav a { padding: 12px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.header-bar { position: relative; }

	.lead-inner { grid-template-columns: 1fr; }
	.lead-media { order: -1; }
	.home-grid { grid-template-columns: 1fr; gap: 40px; padding-block: 40px; }
	.cat-blocks { grid-template-columns: 1fr; }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.next-inner { grid-template-columns: 1fr; gap: 24px; }
	.next-media { order: -1; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; max-width: none; }

	.article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: calc(720px + var(--gutter) * 2); padding-top: 16px; }
	.article-aside .aside-share { display: none; }
	.article-aside .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 28px; }
	.article-aside .toc summary { margin: 0; }
	.article-aside .toc[open] summary { margin-bottom: 10px; }
	.article-aside .toc summary::after { content: "+"; float: right; font-weight: 700; }
	.article-aside .toc[open] summary::after { content: "–"; }
}

@media (max-width: 640px) {
	body { font-size: 1rem; }
	.ticker-label { display: none; }
	.grid-2, .grid-3 { grid-template-columns: 1fr; }
	.grid { gap: 32px; }
	.popular-list { grid-template-columns: 1fr; gap: 18px; }
	.footer-grid { grid-template-columns: 1fr; }
	.search-form { flex-direction: column; }
	.lead-media { margin: 10px 10px 4px; }
	.to-top { right: 14px; bottom: 14px; width: 54px; height: 54px; }
	.to-top-ring { width: 50px; height: 50px; }
	.next-toast { left: 12px; bottom: 14px; max-width: calc(100vw - 92px); }
	.crumbs [aria-current] { display: none; }
	.crumbs li:nth-last-child(2)::after { content: ""; }
}

@media print {
	.site-header, .site-footer, .article-aside, .next-band, .related, .to-top, .next-toast, .foot-share, .inline-rel { display: none !important; }
	body { background: #fff; color: #000; }
	.article-layout { display: block; }
}
