/*
Theme Name: Ditma žinios
Theme URI: https://www.ditma.lt/
Author: Ditma.lt
Description: Greita naujienų portalo tema be papildomų įskiepių: kategorijų „maršrutų“ spalvos, svarbiausių naujienų linija, skaitomiausi straipsniai, straipsnio turinys, „Taip pat skaitykite“, skaitymo progresas, tamsus režimas, mygtukas į viršų, SEO žymos ir Schema.org duomenys, senų nuorodų nukreipimai.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ditma
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. Kintamieji
   ========================================================================== */
:root {
	--ink: #0f2233;
	--ink-2: #44566a;
	--paper: #fff;
	--mist: #eef3f2;
	--line: #d6e0de;
	--link: #0b6e69;
	--amber: #ffb000;
	--topbar: #0f2233;
	--topbar-text: #dbe5ea;
	--shadow: 0 10px 30px -12px rgba(15, 34, 51, .35);

	--serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Iowan Old Style", Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--wrap: 1240px;
	--gap: clamp(20px, 3vw, 44px);
	--r: 6px;
	color-scheme: light;
}

[data-theme="dark"] {
	--ink: #e7eef1;
	--ink-2: #a5b4c0;
	--paper: #0b1520;
	--mist: #132331;
	--line: #23384a;
	--link: #5fd0c5;
	--topbar: #050c13;
	--topbar-text: #c1cfd8;
	--shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
	color-scheme: dark;
}

/* Kategorijų „maršrutų“ spalvos */
[data-hue="1"] { --hue: #c2410c; }
[data-hue="2"] { --hue: #0f766e; }
[data-hue="3"] { --hue: #6d28d9; }
[data-hue="4"] { --hue: #15803d; }
[data-hue="5"] { --hue: #be123c; }
[data-hue="6"] { --hue: #1d4ed8; }
[data-hue="7"] { --hue: #92400e; }
[data-hue="8"] { --hue: #475569; }
[data-theme="dark"] [data-hue="1"] { --hue: #fb923c; }
[data-theme="dark"] [data-hue="2"] { --hue: #2dd4bf; }
[data-theme="dark"] [data-hue="3"] { --hue: #a78bfa; }
[data-theme="dark"] [data-hue="4"] { --hue: #4ade80; }
[data-theme="dark"] [data-hue="5"] { --hue: #fb7185; }
[data-theme="dark"] [data-hue="6"] { --hue: #60a5fa; }
[data-theme="dark"] [data-hue="7"] { --hue: #fbbf24; }
[data-theme="dark"] [data-hue="8"] { --hue: #94a3b8; }

/* ==========================================================================
   2. Pagrindai
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 16px/1.55 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.18; color: var(--ink); text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 2px; }

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

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

.icon { width: 20px; height: 20px; flex: none; }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 40px; height: 40px; padding: 0 8px;
	background: none; border: 0; border-radius: 999px; color: inherit;
}
.icon-btn:hover { background: var(--mist); }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border: 0; border-radius: 999px;
	background: var(--ink); color: var(--paper);
	font: 600 15px/1.2 var(--sans); text-decoration: none;
}
.btn:hover { background: var(--link); color: #fff; }

/* ==========================================================================
   3. Viršutinė juosta su „Ką tik“ antraštėmis
   ========================================================================== */
.topbar { background: var(--topbar); color: var(--topbar-text); font-size: 13px; }
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 40px; }
.topbar-date { white-space: nowrap; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.ticker { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.ticker-label {
	display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; white-space: nowrap;
}
.ticker-label::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
	box-shadow: 0 0 0 0 rgba(255, 176, 0, .6); animation: pulse 2.4s infinite;
}
.ticker-viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); }
.ticker-track { display: flex; gap: 40px; margin: 0; list-style: none; width: max-content; animation: ticker 60s linear infinite; }
.ticker-track li { white-space: nowrap; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.topbar-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topbar .icon-btn { width: 34px; height: 34px; min-width: 34px; }
.topbar .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.topbar .social a { display: inline-flex; padding: 7px; }
.topbar .social .icon { width: 18px; height: 18px; }
.when-dark { display: none; }
[data-theme="dark"] .when-dark { display: block; }
[data-theme="dark"] .when-light { display: none; }

@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(255, 176, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 176, 0, 0); } }

/* ==========================================================================
   4. Antraštė ir navigacija
   ========================================================================== */
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 18px; color: var(--ink); text-decoration: none; }
.logo-mark { width: auto; height: 46px; color: currentColor; }
.logo-sun { fill: var(--amber); }
.brand-tagline {
	font: 500 15px/1.3 var(--sans); color: var(--ink-2); max-width: 15em;
	padding-left: 18px; border-left: 1px solid var(--line);
}
.custom-logo { max-height: 60px; width: auto; }
.masthead-ad { max-width: 728px; min-height: 90px; display: flex; align-items: center; }

.navbar {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 92%, transparent);
	backdrop-filter: saturate(1.4) blur(10px);
	border-block: 1px solid var(--line);
}
.admin-bar .navbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .navbar { top: 0; } }
.navbar-inner { display: flex; align-items: center; gap: 8px; min-height: 54px; }
.navbar-mini-logo { display: none; color: var(--ink); margin-right: 8px; }
.navbar-mini-logo .logo-mark { height: 26px; }
.navbar.is-stuck .navbar-mini-logo { display: inline-flex; }

.primary-nav { flex: 1; min-width: 0; }
.primary-nav .menu {
	display: flex; gap: 2px; margin: 0; list-style: none;
	overflow-x: auto; scrollbar-width: none;
	mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
}
.primary-nav .menu::-webkit-scrollbar { display: none; }
.primary-nav a {
	position: relative; display: block; padding: 16px 11px; white-space: nowrap;
	color: var(--ink); font: 600 15px/1.2 var(--sans); text-decoration: none;
}
.primary-nav a::after {
	content: ""; position: absolute; left: 11px; right: 11px; bottom: 8px; height: 3px; border-radius: 3px;
	background: var(--hue, var(--ink)); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current-menu-parent > a::after { transform: scaleX(1); }
.nav-toggle { display: none; font-weight: 600; }

.search-panel { border-top: 1px solid var(--line); background: var(--paper); padding-block: 18px; }
.search-form { position: relative; display: flex; gap: 10px; max-width: 720px; }
.search-form-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.search-field {
	flex: 1; min-width: 0; height: 50px; padding: 0 16px 0 46px;
	font: 400 17px var(--sans); color: var(--ink); background: var(--paper);
	border: 2px solid var(--line); border-radius: 999px;
}
.search-field:focus { outline: none; border-color: var(--link); }

/* ==========================================================================
   5. Kategorijų žymės
   ========================================================================== */
.chip {
	display: inline-flex; align-items: center; gap: 7px;
	font: 600 13px/1.2 var(--sans); color: var(--ink-2); text-decoration: none;
}
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--hue, var(--link)); flex: none; }
.chip:hover { color: var(--ink); text-decoration: underline; }
.chip--count span { color: var(--ink-2); font-weight: 400; }
.topic-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; list-style: none; }
.topic-cloud .chip { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.topic-cloud .chip:hover { border-color: var(--hue); text-decoration: none; }
.topic-cloud--sub { margin-top: 16px; }

/* ==========================================================================
   6. Kortelės
   ========================================================================== */
.card { position: relative; }
.card-media { display: block; align-self: start; overflow: hidden; border-radius: var(--r); background: var(--mist); }
.thumb { width: 100%; height: auto; object-fit: cover; aspect-ratio: 16 / 10; transition: transform .5s ease; }
.card:hover .thumb { transform: scale(1.03); }
.thumb--empty {
	display: block; aspect-ratio: 16 / 10;
	background:
		radial-gradient(circle at 78% 30%, var(--amber) 0 9%, transparent 9.5%),
		linear-gradient(transparent 62%, color-mix(in srgb, var(--hue, var(--link)) 40%, transparent) 62% 66%, transparent 66% 74%, color-mix(in srgb, var(--hue, var(--link)) 25%, transparent) 74% 78%, transparent 78%),
		var(--mist);
}
.card-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card-title { font-size: 20px; line-height: 1.22; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--amber); }
.card-excerpt { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--ink-2); }
.meta-read { display: inline-flex; align-items: center; gap: 5px; }
.meta-read .icon { width: 15px; height: 15px; }

/* Svarbiausia */
.card--lead { display: flex; flex-direction: column; gap: 18px; }
.card--lead .thumb { aspect-ratio: 16 / 9; }
.card--lead .card-title { font-size: clamp(28px, 3.3vw, 44px); line-height: 1.1; letter-spacing: -.01em; }
.card--lead .card-excerpt { font: 400 19px/1.55 var(--serif); }
.card--lead .card-body { gap: 12px; }

/* Srauto eilutė */
.card--row { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding-block: 24px; border-top: 1px solid var(--line); }
.card--row:first-child { border-top: 0; padding-top: 0; }
.card--row .card-title { font-size: 23px; }

/* Plytelė */
.card--tile { display: flex; flex-direction: column; gap: 14px; }

/* Mažoji */
.card--mini { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.card--mini .thumb, .card--mini .thumb--empty { aspect-ratio: 1; }
.card--mini .card-title { font-size: 17px; line-height: 1.28; }
.card--mini .card-body { gap: 6px; }

/* Reitingas (skaitomiausi – eiliškumas pagal skaitomumą) */
.rank-list { counter-reset: rank; }
.card--rank { display: grid; grid-template-columns: 38px 1fr; gap: 8px; padding-block: 14px; border-top: 1px solid var(--line); }
.card--rank:first-child { border-top: 0; padding-top: 4px; }
.card-rank { font: 700 30px/1 var(--serif); color: var(--link); }
.card--rank .card-title { font-size: 17px; line-height: 1.3; }

/* ==========================================================================
   7. Pagrindinis puslapis
   ========================================================================== */
.hero { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: var(--gap); padding-block: 32px 40px; }
.line-title { font: 700 15px/1.2 var(--sans); color: var(--ink); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.line-title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }

/* Laiko linija: naujienos išdėstytos chronologiškai kaip stotelės */
.line { position: relative; padding-left: 26px; }
.line::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--ink); }
.card--stop { display: grid; grid-template-columns: 1fr 104px; gap: 6px 16px; padding-bottom: 22px; }
.card--stop:last-child { padding-bottom: 0; }
.card--stop .card-media { grid-column: 2; grid-row: 1; align-self: start; }
.card--stop .thumb, .card--stop .thumb--empty { aspect-ratio: 4 / 3; }
.card--stop .card-body { grid-column: 1; grid-row: 1; gap: 4px; }
.card--stop .card-title { font-size: 18px; line-height: 1.28; }
.card-station {
	position: absolute; left: -26px; top: 3px; width: 15px; height: 15px; border-radius: 50%;
	background: var(--paper); border: 3px solid var(--ink);
}
.card--stop:first-child .card-station { background: var(--amber); }
.card-meta--top { font-weight: 600; color: var(--ink); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap); padding-block: 8px 56px; align-items: start; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 3px solid var(--ink); margin-bottom: 24px; }
.section-title { font-size: 26px; margin-bottom: 20px; }
.section-head .section-title { margin: 0; }

.load-more-wrap { display: flex; justify-content: center; padding-top: 28px; border-top: 1px solid var(--line); margin-top: 8px; }
.btn--more[aria-busy="true"] { opacity: .6; pointer-events: none; }
.pagination { margin-top: 24px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px;
}
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pagination a.page-numbers:hover { border-color: var(--ink); }
.js .pagination { font-size: 14px; }

/* Teminiai blokai */
.cat-block { padding-block: 8px 48px; }
.cat-block-head {
	position: relative; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px;
	padding: 20px 0 0 30px; margin-bottom: 26px; border-top: 4px solid var(--hue);
}
.cat-block-head::before {
	content: ""; position: absolute; left: 0; top: -12px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--paper); border: 4px solid var(--hue);
}
.cat-block-title { font-size: 30px; }
.cat-block-title a { color: var(--ink); text-decoration: none; }
.cat-block-title a:hover { text-decoration: underline; text-decoration-color: var(--hue); }
.cat-block-all { font: 600 14px var(--sans); color: var(--ink-2); }
.cat-block-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--gap); }
.cat-block--b .cat-block-main { order: 2; }
.cat-block-main .card-title { font-size: 28px; line-height: 1.15; }
.cat-block-side { display: flex; flex-direction: column; gap: 22px; }
.cat-block-side .card + .card { padding-top: 22px; border-top: 1px solid var(--line); }

/* ==========================================================================
   8. Šoninė juosta
   ========================================================================== */
.sidebar { display: flex; flex-direction: column; gap: 36px; }
.side-title { font: 700 15px/1.2 var(--sans); padding-bottom: 12px; margin-bottom: 8px; border-bottom: 3px solid var(--ink); }
.side-block .topic-cloud { padding-top: 8px; }
.side-sticky { position: sticky; top: 80px; }
.widget { font-size: 15px; }
.widget-title { font: 700 15px/1.2 var(--sans); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 3px solid var(--ink); }
.widget ul { list-style: none; margin: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.ad-wrap { text-align: center; }
.ad-label { display: block; font-size: 11px; color: var(--ink-2); margin-bottom: 6px; letter-spacing: .04em; }
.ad-slot img { margin-inline: auto; }

/* ==========================================================================
   9. Archyvai, paieška, 404
   ========================================================================== */
.page-head { padding: 28px 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.page-head[data-hue] .page-title { display: flex; align-items: center; gap: 14px; }
.page-head[data-hue] .page-title::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 4px solid var(--hue); flex: none; }
.page-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.page-sub { color: var(--ink-2); font-weight: 400; font-size: .6em; }
.page-desc { max-width: 68ch; margin-top: 14px; color: var(--ink-2); font: 18px/1.6 var(--serif); }
.page-count { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.page-search { margin-top: 20px; }
.archive-lead { padding-bottom: 32px; margin-bottom: 28px; border-bottom: 3px solid var(--ink); }
.empty { font-size: 18px; color: var(--ink-2); }

.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.tile-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.notfound { padding-block: 48px 64px; }
.notfound-head { max-width: 760px; margin-bottom: 56px; }
.notfound-code { font: 700 clamp(72px, 12vw, 140px)/1 var(--serif); color: var(--amber); margin: 0 0 8px; }
.notfound-head > p { font-size: 18px; color: var(--ink-2); margin-top: 12px; }
.notfound .topic-cloud { margin-top: 24px; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 16px; list-style: none; font-size: 13px; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.crumbs a { color: var(--ink-2); }

/* ==========================================================================
   10. Straipsnis
   ========================================================================== */
.layout--article { grid-template-columns: minmax(0, 1fr) 300px; padding-top: 28px; }
.article-head { max-width: 800px; }
.article-head > .chip { margin-bottom: 14px; }
.article-title { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; letter-spacing: -.01em; }
.article-dek { margin: 16px 0 0; font: 400 21px/1.5 var(--serif); color: var(--ink-2); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 20px; font-size: 14px; color: var(--ink-2); }
.meta-author { font-weight: 700; color: var(--ink); }
.article-figure { margin: 28px 0 0; }
.article-image { width: 100%; height: auto; border-radius: var(--r); aspect-ratio: auto; }
.article-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.article-share--top { margin-top: 20px; }

.entry-content { max-width: 700px; margin-top: 32px; font: 400 19px/1.75 var(--serif); }
.entry-content > * { margin-block: 0 1.15em; }
.entry-content h2 { font-size: 28px; margin-top: 1.8em; margin-bottom: .6em; }
.entry-content h3 { font-size: 22px; margin-top: 1.5em; margin-bottom: .5em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--link); }
.entry-content blockquote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--amber); font-size: 22px; line-height: 1.5; }
.entry-content img { border-radius: var(--r); }
.entry-content figcaption { font: 13px/1.4 var(--sans); color: var(--ink-2); margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font: 15px/1.45 var(--sans); }
.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(--mist); }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.entry-content strong { font-weight: 700; }

.toc { margin-block: 8px 1.6em; padding: 16px 20px; background: var(--mist); border-radius: 10px; font: 15px/1.45 var(--sans); }
.toc summary { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "Slėpti"; margin-left: auto; font-weight: 400; font-size: 13px; color: var(--ink-2); }
.toc:not([open]) summary::after { content: "Rodyti"; }
.toc ol { margin: 12px 0 0; padding-left: 1.4em; }
.toc li { margin: 0; padding: 4px 0; }
.toc li::marker { color: var(--ink-2); }
.toc .toc-h3 { margin-left: 1em; list-style: circle; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--link); text-decoration: underline; }

.also-read { margin-block: 1.6em; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--r); font-family: var(--sans); }
.also-read-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.also-read .card--mini { grid-template-columns: 84px 1fr; }
.also-read .card-title { font-size: 18px; }

.ad-wrap { margin-block: 1.6em; }

.article-foot { max-width: 700px; margin-top: 40px; display: flex; flex-direction: column; gap: 32px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; list-style: none; }
.tag-list a { display: inline-block; padding: 6px 12px; background: var(--mist); border-radius: 999px; color: var(--ink); font-size: 14px; text-decoration: none; }
.tag-list a:hover { background: var(--line); }

.article-share { padding-block: 20px; border-block: 1px solid var(--line); }
.article-share--top { padding: 0; border: 0; }
.share-prompt { margin: 0 0 12px; font: 600 16px var(--sans); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 40px; min-width: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px;
	background: var(--paper); color: var(--ink); font: 600 14px var(--sans); text-decoration: none;
}
.share-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.share-btn .icon { width: 18px; height: 18px; }
.share-copy, .share-native { padding: 0 14px; }

.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 20px; background: var(--mist); border-radius: 10px; }
.author-box img { border-radius: 50%; }
.author-name { font-size: 18px; margin-bottom: 4px; }
.author-name a { color: var(--ink); }
.author-box p { margin: 0; color: var(--ink-2); font-size: 15px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav-link { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.post-nav-link:hover { border-color: var(--ink); }
.post-nav-next { text-align: right; grid-column: 2; }
.post-nav-dir { font-size: 13px; color: var(--ink-2); }
.post-nav-title { font: 700 17px/1.3 var(--serif); }

.related { margin-top: 56px; padding-top: 22px; border-top: 3px solid var(--ink); }

/* Komentarai */
.comments { margin-top: 56px; max-width: 700px; }
.comment-list { list-style: none; margin: 0 0 32px; }
.comment-list .children { list-style: none; margin-left: 24px; padding-left: 16px; border-left: 2px solid var(--line); }
.comment-body { padding-block: 16px; 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: 13px; margin: 4px 0 8px; }
.comment-metadata a { color: var(--ink-2); }
.comment-respond label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea {
	width: 100%; padding: 10px 12px; font: 16px var(--sans); color: var(--ink); background: var(--paper);
	border: 1px solid var(--line); border-radius: var(--r);
}
.comment-respond p { margin-bottom: 14px; }
.comment-reply-title { font-size: 22px; margin-bottom: 12px; }

/* ==========================================================================
   11. Poraštė
   ========================================================================== */
.site-footer { background: #0f2233; color: #c9d5dc; padding-top: 56px; font-size: 15px; }
[data-theme="dark"] .site-footer { background: #050c13; }
.site-footer a { color: #e7eef1; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap); padding-bottom: 40px; }
.brand--footer { color: #fff; margin-bottom: 16px; }
.brand--footer .logo-mark { height: 40px; }
.footer-about p { max-width: 42ch; }
.footer-title { font: 700 15px/1.2 var(--sans); color: #fff; margin-bottom: 16px; }
.footer-cats ul { columns: 2; column-gap: 24px; margin: 0; list-style: none; }
.footer-cats li { break-inside: avoid; padding: 4px 0; }
.footer-cats a { display: inline-flex; align-items: center; gap: 8px; }
.footer-cats a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hue); }
.site-footer [data-hue="1"] { --hue: #fb923c; } .site-footer [data-hue="2"] { --hue: #2dd4bf; }
.site-footer [data-hue="3"] { --hue: #a78bfa; } .site-footer [data-hue="4"] { --hue: #4ade80; }
.site-footer [data-hue="5"] { --hue: #fb7185; } .site-footer [data-hue="6"] { --hue: #60a5fa; }
.site-footer [data-hue="7"] { --hue: #fbbf24; } .site-footer [data-hue="8"] { --hue: #94a3b8; }
.footer-latest ul { margin: 0; list-style: none; }
.footer-latest li { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); line-height: 1.4; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; list-style: none; }
.social { display: flex; gap: 4px; }
.site-footer .social a { display: inline-flex; padding: 8px; border-radius: 50%; }
.site-footer .social a:hover { background: rgba(255, 255, 255, .1); }

/* ==========================================================================
   12. Skaitymo progresas, mygtukas į viršų, „Kitas straipsnis“
   ========================================================================== */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 100; pointer-events: none; }
.admin-bar .progress { top: 32px; }
.progress-bar { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: var(--amber); }
.progress-bar::after { content: ""; position: absolute; right: -5px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }

.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 60;
	display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
	background: var(--ink); color: var(--paper); border: 0; border-radius: 50%; box-shadow: var(--shadow);
	opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s;
}
.to-top.is-visible { opacity: 1; transform: none; }
.to-top > * { grid-area: 1 / 1; }
.to-top .icon { width: 22px; height: 22px; }
.to-top-ring { width: 52px; height: 52px; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke-width: 3; }
.to-top-ring circle:first-child { stroke: color-mix(in srgb, var(--paper) 18%, transparent); }
.to-top-progress { stroke: var(--amber); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); }
.to-top:hover { background: var(--link); }

.next-up {
	position: fixed; left: 20px; bottom: 20px; z-index: 60; width: min(360px, calc(100vw - 100px));
	padding: 16px 44px 16px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
	transform: translateY(calc(100% + 40px)); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.next-up.is-visible { transform: none; }
.next-up-label { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.next-up-link { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; }
.next-up-link .thumb, .next-up-link .thumb--empty { aspect-ratio: 1; border-radius: var(--r); }
.next-up-title { font: 700 16px/1.3 var(--serif); }
.next-up-link:hover .next-up-title { text-decoration: underline; }
.next-up-close { position: absolute; right: 6px; top: 6px; }

/* ==========================================================================
   13. WordPress klasės
   ========================================================================== */
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }
.wp-caption, .wp-caption-text, .gallery-caption { font-size: 13px; color: var(--ink-2); }
.sticky, .bypostauthor { /* WordPress reikalaujamos klasės */ }
.page-links { font: 15px var(--sans); margin-top: 1em; }
.page-links a { margin-left: 8px; }

/* ==========================================================================
   14. Prisitaikymas prie ekranų
   ========================================================================== */
@media (max-width: 1100px) {
	.layout, .layout--article { grid-template-columns: minmax(0, 1fr); }
	.sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; border-top: 3px solid var(--ink); padding-top: 28px; }
	.side-sticky { position: static; }
	.tile-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.hero { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
	.cat-block-grid { grid-template-columns: minmax(0, 1fr); }
	.cat-block--b .cat-block-main { order: 0; }
	.masthead-ad { display: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }

	.nav-toggle { display: inline-flex; }
	.primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; mask-image: none; padding: 8px 12px 16px; }
	.primary-nav a { padding: 12px 10px; display: flex; align-items: center; gap: 10px; }
	.primary-nav a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--hue, var(--ink)); }
	.primary-nav a::after { display: none; }
	.search-toggle { margin-left: auto; }
}

@media (max-width: 700px) {
	body { font-size: 16px; }
	.topbar-date { display: none; }
	.masthead-inner { padding-block: 16px; }
	.logo-mark { height: 36px; }
	.brand { gap: 12px; }
	.brand-tagline { font-size: 13px; padding-left: 12px; }

	.card--row { grid-template-columns: minmax(0, 1fr) 112px; gap: 14px; padding-block: 18px; }
	.card--row .card-media { grid-column: 2; grid-row: 1; }
	.card--row .card-body { grid-column: 1; grid-row: 1; }
	.card--row .thumb, .card--row .thumb--empty { aspect-ratio: 1; }
	.card--row .card-title { font-size: 18px; }
	.card--row .card-excerpt { display: none; }
	.card--lead .card-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 17px; }

	.tile-grid, .tile-grid--4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 16px; }
	.tile-grid .card-title { font-size: 17px; }
	.sidebar { grid-template-columns: minmax(0, 1fr); }
	.cat-block-title { font-size: 26px; }
	.cat-block-main .card-title { font-size: 23px; }

	.entry-content { font-size: 18px; line-height: 1.7; }
	.entry-content h2 { font-size: 24px; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav-next { grid-column: auto; }
	.share-copy-label { display: none; }
	.next-up { left: 12px; right: 76px; width: auto; bottom: 12px; }
	.to-top { right: 12px; bottom: 12px; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-about { grid-column: auto; }
}

@media (max-width: 420px) {
	.brand-tagline { display: none; }
	.tile-grid, .tile-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

@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; flex-wrap: nowrap; }
}

@media print {
	.topbar, .navbar, .sidebar, .share, .article-share, .related, .comments, .to-top, .next-up, .progress, .site-footer, .toc, .also-read, .ad-wrap { display: none !important; }
	.layout, .layout--article { display: block; }
	body { color: #000; background: #fff; }
}
