/*
Theme Name: Patikimumo garantas
Theme URI: https://www.patikimumogarantas.lt/
Author: Patikimumo garantas
Description: Greita, SEO optimizuota Kauno ir Lietuvos verslo naujienų tema, įkvėpta Kauno tarpukario modernizmo. Veikia be papildomų įskiepių: struktūriniai duomenys (NewsArticle), meta žymės, Open Graph, turinio planas, skaitomiausi straipsniai, skaitymo progresas, mygtukas „į viršų“, tamsus režimas, senų adresų 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: patikimumo-garantas
Tags: news, blog, one-column, two-columns, custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready
*/

/* ==========================================================================
   Šriftai (SIL Open Font License) – talpinami temoje, jokių išorinių užklausų
   ========================================================================== */
@font-face {
	font-family: "Bitter";
	src: url("assets/fonts/bitter-var.woff") format("woff");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Bitter";
	src: url("assets/fonts/bitter-var-italic.woff") format("woff");
	font-weight: 300 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Fira Sans";
	src: url("assets/fonts/fira-regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fira Sans";
	src: url("assets/fonts/fira-semibold.woff") format("woff");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Žetonai
   ========================================================================== */
:root {
	--pine: #0F3D3A;
	--pine-2: #16504B;
	--pine-3: #2A6C65;
	--ochre: #E2A12B;
	--ochre-ink: #8C5A00;
	--bg: #F1F3EF;
	--surface: #FFFFFF;
	--soft: #E4E9E5;
	--text: #1E2A2A;
	--muted: #566462;
	--rule: #D3DBD7;
	--head: #0F3D3A;
	--plinth: #0F3D3A;
	--mark-bg: #0F3D3A;
	--mark-ck: #E2A12B;

	--f-serif: "Bitter", Georgia, Cambria, "Times New Roman", serif;
	--f-sans: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1240px;
	--gut: clamp(16px, 4vw, 32px);
	--corner: 3px 14px 3px 3px;
	--facade: clamp(72px, 16vw, 200px);
	--header-h: 76px;
	color-scheme: light;
}

[data-theme="dark"] {
	--bg: #0B1816;
	--surface: #11211F;
	--soft: #173430;
	--text: #DCE5E1;
	--muted: #9DB0AA;
	--rule: #24403B;
	--head: #F1F3EF;
	--ochre-ink: #E9B44C;
	--plinth: #16504B;
	--mark-bg: #E2A12B;
	--mark-ck: #0F3D3A;
	color-scheme: dark;
}

/* ==========================================================================
   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(--bg);
	color: var(--text);
	font: 400 1rem/1.6 var(--f-sans);
	font-kerning: normal;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ochre-ink); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--f-serif); color: var(--head); line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

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

.pg-main:focus { outline: none; }

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

.pg-sr,
.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;
}

.pg-skip {
	position: absolute;
	left: 12px; top: -60px;
	z-index: 200;
	padding: 10px 16px;
	background: var(--ochre);
	color: #0F3D3A;
	font-weight: 600;
	border-radius: var(--corner);
}
.pg-skip:focus { top: 12px; }

.pg-ico { flex: none; }

.pg-lead-media, .pg-side-media, .pg-card-media, .pg-row-media, .pg-nextup-link { display: block; text-decoration: none; }

/* Prekės ženklas */
.pg-mark .pg-mark-bg { fill: var(--mark-bg); }
.pg-mark .pg-mark-ck { stroke: var(--mark-ck); }

/* ==========================================================================
   Viršutinė juosta ir antraščių juosta
   ========================================================================== */
.pg-topbar {
	background: var(--pine);
	color: #DCE6E2;
	font-size: .875rem;
}
.pg-topbar-in {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 40px;
}
.pg-today {
	display: flex;
	gap: 12px;
	flex: none;
	white-space: nowrap;
}
.pg-today [data-today]::first-letter { text-transform: uppercase; }
.pg-today-city { color: #9FC0B8; }

.pg-ticker {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	flex: 1;
}
.pg-ticker-label {
	flex: none;
	padding: 2px 10px;
	background: var(--ochre);
	color: #0F3D3A;
	font-weight: 600;
	border-radius: var(--corner);
}
.pg-ticker-viewport {
	overflow: hidden;
	min-width: 0;
	flex: 1;
	mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 48px), transparent);
}
.pg-ticker-track {
	display: flex;
	width: max-content;
	animation: pg-ticker 80s linear infinite;
}
.pg-ticker:hover .pg-ticker-track,
.pg-ticker:focus-within .pg-ticker-track { animation-play-state: paused; }
.pg-ticker-list { display: flex; }
.pg-ticker-list li {
	padding-right: 40px;
	white-space: nowrap;
}
.pg-ticker-list li + li::before {
	content: "";
	display: inline-block;
	width: 6px; height: 6px;
	margin-right: 40px;
	vertical-align: middle;
	background: var(--ochre);
	border-radius: 1px 4px 1px 1px;
}
.pg-ticker-list a { color: #F1F3EF; text-decoration: none; }
.pg-ticker-list a:hover { color: var(--ochre); text-decoration: underline; }

@keyframes pg-ticker {
	to { transform: translateX(-50%); }
}

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

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

.pg-brand { margin: 0; flex: none; font-size: 1rem; line-height: 1; }
.pg-brand a {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--head);
}
.pg-brand-text { display: grid; gap: 4px; }
.pg-brand-name {
	font: 700 1.375rem/1 var(--f-serif);
	letter-spacing: -.005em;
}
.pg-brand-sub {
	font: 400 .8125rem/1.1 var(--f-sans);
	color: var(--muted);
	letter-spacing: .01em;
}
.pg-brand--custom img { max-height: 56px; width: auto; }

.pg-nav { flex: 1; min-width: 0; }
.pg-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
}
.pg-menu a {
	display: block;
	padding: 6px 0;
	font-weight: 600;
	font-size: .9375rem;
	text-decoration: none;
	color: var(--text);
	border-bottom: 3px solid transparent;
}
.pg-menu a:hover { color: var(--head); border-bottom-color: var(--rule); }
.pg-menu .current-menu-item > a,
.pg-menu .current-menu-ancestor > a,
.pg-menu .current-post-ancestor > a { border-bottom-color: var(--ochre); color: var(--head); }
.pg-menu .sub-menu { display: none; }

.pg-actions { display: flex; gap: 6px; margin-left: auto; }
.pg-iconbtn {
	display: inline-grid;
	place-items: center;
	width: 42px; height: 42px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--rule);
	border-radius: 50%;
	color: var(--head);
}
.pg-iconbtn:hover { background: var(--soft); }
.pg-iconbtn .pg-when-light,
.pg-iconbtn .pg-when-closed { display: inline-grid; }
.pg-iconbtn .pg-when-dark,
.pg-iconbtn .pg-when-open { display: none; }
[data-theme="dark"] .pg-iconbtn .pg-when-light { display: none; }
[data-theme="dark"] .pg-iconbtn .pg-when-dark { display: inline-grid; }
.pg-iconbtn[aria-expanded="true"] .pg-when-closed { display: none; }
.pg-iconbtn[aria-expanded="true"] .pg-when-open { display: inline-grid; }
.pg-menu-btn { display: none; }

.pg-search {
	border-top: 1px solid var(--rule);
	background: var(--surface);
	padding-block: 18px;
}

.pg-searchform {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 6px 6px 16px;
	background: var(--bg);
	border: 2px solid var(--rule);
	border-radius: var(--corner);
	max-width: 760px;
	color: var(--muted);
}
.pg-searchform:focus-within { border-color: var(--pine-3); }
.pg-searchform input {
	flex: 1;
	min-width: 0;
	padding: 10px 4px;
	background: transparent;
	border: 0;
	color: var(--text);
	font: 400 1.125rem/1.3 var(--f-serif);
}
.pg-searchform input:focus { outline: none; }
.pg-searchform button {
	padding: 12px 20px;
	background: var(--pine);
	color: #fff;
	border: 0;
	font-weight: 600;
	border-radius: var(--corner);
}
.pg-searchform button:hover { background: var(--pine-2); }

@media (max-width: 1080px) {
	.pg-menu-btn { display: inline-grid; }
	.pg-nav {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: var(--surface);
		border-bottom: 1px solid var(--rule);
		padding: 8px var(--gut) 24px;
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
	}
	.pg-nav.is-open { display: block; }
	.pg-menu { flex-direction: column; gap: 0; }
	.pg-menu a {
		padding: 14px 0;
		font: 600 1.25rem/1.2 var(--f-serif);
		border-bottom: 1px solid var(--rule);
	}
	.pg-menu .sub-menu { display: block; padding-left: 16px; }
	.pg-menu .sub-menu a { font-size: 1.05rem; }
}
@media (max-width: 560px) {
	:root { --header-h: 64px; }
	.pg-brand-sub { display: none; }
	.pg-brand-name { font-size: 1.05rem; }
	.pg-brand a { gap: 10px; }
	.pg-brand .pg-mark { width: 34px; height: 34px; }
	.pg-header-in { gap: 8px; }
	.pg-actions { gap: 2px; }
	.pg-iconbtn { width: 40px; height: 40px; border-color: transparent; }
	.pg-today-city { display: none; }
	.pg-topbar-in { gap: 14px; }
	.pg-today { display: none; }
}

/* ==========================================================================
   Bendri elementai: etiketės, meta, antraštės, mygtukai, žymos
   ========================================================================== */
.pg-cat {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font: 600 .8125rem/1.2 var(--f-sans);
	color: var(--ochre-ink);
	text-decoration: none;
	letter-spacing: .01em;
}
.pg-cat::before {
	content: "";
	width: 9px; height: 9px;
	background: var(--ochre);
	border-radius: 1px 6px 1px 1px;
}
.pg-cat:hover { text-decoration: underline; }

.pg-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: .8125rem;
	color: var(--muted);
}

.pg-sec-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--head);
}
.pg-sec-title {
	font-size: clamp(1.4rem, 1.15rem + .8vw, 1.85rem);
	font-weight: 750;
	letter-spacing: -.01em;
}
.pg-sec-title a { text-decoration: none; }
.pg-sec-title a:hover { color: var(--ochre-ink); }
.pg-sec-link {
	flex: none;
	font-weight: 600;
	font-size: .9375rem;
	color: var(--ochre-ink);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.pg-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 24px;
	background: var(--ochre);
	color: #0F3D3A;
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--corner);
}
.pg-btn:hover { background: #ECB24A; color: #0F3D3A; }

.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-chips a {
	display: inline-block;
	padding: 6px 12px;
	font-size: .875rem;
	text-decoration: none;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: var(--corner);
}
.pg-chips a:hover { border-color: var(--pine-3); color: var(--head); }

/* Paveikslėliai */
.pg-media {
	position: relative;
	overflow: hidden;
	background: var(--soft);
	aspect-ratio: 16 / 10;
}
.pg-media .pg-img {
	width: 100%; height: 100%;
	object-fit: cover;
}
.pg-media--empty {
	display: grid;
	align-items: end;
	background:
		radial-gradient(circle at 100% 0, var(--pine-3) 0 32%, transparent 32.5%),
		var(--pine);
}
.pg-media--empty span {
	padding: 0 0 .1em .3em;
	font: 800 clamp(3rem, 8vw, 6rem)/1 var(--f-serif);
	color: var(--ochre);
}

/* ==========================================================================
   Pradžia: fasadas (pagrindinė istorija)
   ========================================================================== */
.pg-hero { padding-block: 32px 48px; }
.pg-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 40px;
	align-items: start;
}
.pg-lead { position: relative; }
.pg-lead-media { display: block; }
.pg-lead .pg-media {
	aspect-ratio: 4 / 3;
	border-top-right-radius: var(--facade);
}
.pg-lead-body {
	position: relative;
	margin: -96px 14% 0 0;
	padding: 26px 30px 28px;
	background: var(--plinth);
	color: #DCE6E2;
	display: grid;
	gap: 12px;
}
.pg-lead-body .pg-cat { color: var(--ochre); }
.pg-lead-title {
	font-size: clamp(1.65rem, 1.05rem + 2vw, 2.6rem);
	font-weight: 750;
	line-height: 1.12;
	letter-spacing: -.015em;
	color: #fff;
}
.pg-lead-title a { text-decoration: none; }
.pg-lead-title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 3px; }
.pg-lead-excerpt { font-size: 1.0625rem; line-height: 1.55; max-width: 60ch; }
.pg-lead .pg-meta { color: #A9C2BC; }

.pg-hero-side { display: grid; }
.pg-side {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 132px;
	gap: 18px;
	padding-block: 20px;
	border-bottom: 1px solid var(--rule);
}
.pg-side:first-child { padding-top: 0; }
.pg-side:last-child { border-bottom: 0; }
.pg-side-body { display: grid; gap: 8px; align-content: start; }
.pg-side-title { font-size: 1.15rem; font-weight: 650; line-height: 1.28; }
.pg-side-title a, .pg-card-title a, .pg-row-title a, .pg-mini-title a { text-decoration: none; }
.pg-side-title a:hover, .pg-card-title a:hover, .pg-row-title a:hover, .pg-mini-title a:hover { text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; color: var(--head); }
.pg-side .pg-media { aspect-ratio: 1; border-radius: var(--corner); }

/* ==========================================================================
   Pradžia: laiko juosta + skaitomiausi
   ========================================================================== */
.pg-split {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	gap: 56px;
	padding-bottom: 64px;
	align-items: start;
}
.pg-rows { position: relative; }
.pg-rows::before {
	content: "";
	position: absolute;
	left: 31px; top: 8px; bottom: 8px;
	width: 2px;
	background: var(--rule);
}
.pg-row {
	position: relative;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 24px;
	padding-bottom: 32px;
}
.pg-row-date {
	position: relative;
	display: grid;
	justify-items: center;
	align-content: start;
	padding: 6px 0 8px;
	background: var(--bg);
	color: var(--head);
}
.pg-row-day { font: 750 1.75rem/1 var(--f-serif); }
.pg-row-month { font-size: .8125rem; color: var(--muted); margin-top: 4px; }
.pg-row-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 200px;
	gap: 22px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--rule);
}
.pg-row:last-child { padding-bottom: 0; }
.pg-row:last-child .pg-row-body { border-bottom: 0; padding-bottom: 0; }
.pg-row-text { display: grid; gap: 8px; align-content: start; }
.pg-row-title { font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.pg-row-excerpt,
.pg-card-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pg-row-excerpt { color: var(--muted); font-size: .975rem; line-height: 1.55; }
.pg-row .pg-media { aspect-ratio: 4 / 3; border-radius: var(--corner); }

.pg-aside {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	display: grid;
	gap: 40px;
}
.pg-aside-title {
	font-size: 1.35rem;
	font-weight: 750;
	padding-bottom: 10px;
	margin-bottom: 8px;
	border-bottom: 2px solid var(--head);
}
.pg-rank { counter-reset: rank; }
.pg-rank .pg-mini {
	counter-increment: rank;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	column-gap: 12px;
	padding-block: 16px;
	border-bottom: 1px solid var(--rule);
}
.pg-rank .pg-mini::before {
	content: counter(rank);
	grid-row: span 2;
	font: 800 2.4rem/1 var(--f-serif);
	color: var(--ochre-ink);
	font-variant-numeric: lining-nums;
}
.pg-mini { display: grid; gap: 6px; }
.pg-mini-title { font-size: 1.05rem; font-weight: 650; line-height: 1.3; }

/* ==========================================================================
   Pradžia: rubrikų blokai
   ========================================================================== */
.pg-rubric { padding-block: 56px; }
.pg-rubric:not(.pg-rubric--flip) { background: var(--surface); }
.pg-rubric-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 40px;
	align-items: start;
}
.pg-rubric--flip .pg-rubric-grid > .pg-card { order: 2; }
.pg-rubric-list .pg-mini {
	padding-block: 18px;
	border-bottom: 1px solid var(--rule);
}
.pg-rubric-list .pg-mini:first-child { padding-top: 0; }
.pg-rubric-list .pg-mini-title { font-size: 1.2rem; }

.pg-more { padding-block: 56px; border-top: 1px solid var(--rule); }
.pg-more-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.pg-more-text { font: 600 clamp(1.2rem, 1rem + .8vw, 1.6rem)/1.3 var(--f-serif); color: var(--head); max-width: 36ch; }

/* ==========================================================================
   Kortelės ir tinklelis
   ========================================================================== */
.pg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 40px 28px;
}
.pg-card { display: grid; gap: 14px; align-content: start; }
.pg-card .pg-media { border-radius: var(--corner); }
.pg-card-body { display: grid; gap: 8px; align-content: start; }
.pg-card-title { font-size: 1.2rem; font-weight: 700; line-height: 1.27; }
.pg-card-excerpt { color: var(--muted); font-size: .975rem; line-height: 1.55; }
.pg-card--big .pg-card-title { font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem); line-height: 1.17; letter-spacing: -.01em; }
.pg-card--big .pg-card-excerpt { font-size: 1.0625rem; }
.pg-card--big .pg-media { border-top-right-radius: clamp(48px, 9vw, 120px); }

.pg-grid--featured .pg-card--big {
	grid-column: 1 / -1;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 32px;
	align-items: center;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--rule);
}

/* ==========================================================================
   Archyvai
   ========================================================================== */
.pg-archive { padding-block: 32px 72px; }
.pg-archive-head {
	display: grid;
	gap: 12px;
	margin-bottom: 40px;
	max-width: 820px;
}
.pg-archive-title {
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.08;
}
.pg-archive-desc { font-size: 1.125rem; line-height: 1.6; color: var(--muted); max-width: 64ch; }
.pg-archive-desc p + p { margin-top: .8em; }
.pg-archive-count { font-size: .9375rem; color: var(--muted); }
.pg-archive-search { margin-top: 8px; }

.pg-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .8125rem; color: var(--muted); }
.pg-crumbs li { display: inline-flex; align-items: center; }
.pg-crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--rule); }
.pg-crumbs a { text-decoration: none; }
.pg-crumbs a:hover { text-decoration: underline; }

.pg-pager { margin-top: 56px; }
.pg-pager ul { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-pager .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px; height: 44px;
	padding: 0 14px;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: var(--corner);
	text-decoration: none;
	font-weight: 600;
}
.pg-pager .page-numbers.current { background: var(--pine); border-color: var(--pine); color: #fff; }
.pg-pager .page-numbers.dots { background: transparent; border: 0; }
.pg-pager a.page-numbers:hover { border-color: var(--pine-3); color: var(--head); }

.pg-empty { display: grid; gap: 20px; padding: 32px; background: var(--surface); border-radius: var(--corner); }

.pg-404 { padding-block: 48px 80px; }
.pg-404-head { display: grid; gap: 18px; justify-items: start; max-width: 760px; margin-bottom: 64px; }
.pg-404-head > p { font-size: 1.125rem; color: var(--muted); max-width: 56ch; }
.pg-404-head .pg-searchform { width: 100%; }

/* ==========================================================================
   Straipsnis
   ========================================================================== */
.pg-progress {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	height: 4px;
	pointer-events: none;
}
.pg-progress span {
	display: block;
	height: 100%;
	background: var(--ochre);
	transform-origin: 0 50%;
	transform: scaleX(0);
}

.pg-article-head {
	display: grid;
	gap: 16px;
	justify-items: start;
	max-width: calc(940px + 2 * var(--gut));
	padding-top: 28px;
	padding-bottom: 28px;
}
.pg-article-title {
	font-size: clamp(2rem, 1.25rem + 2.9vw, 3.35rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.02em;
	max-width: 24ch;
}
.pg-dek {
	font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem);
	line-height: 1.5;
	color: var(--muted);
	max-width: 62ch;
}
.pg-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	padding-top: 14px;
	border-top: 1px solid var(--rule);
	font-size: .875rem;
	color: var(--muted);
	width: 100%;
}
.pg-byline-author { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.pg-byline-dates { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.pg-byline-rt { display: inline-flex; align-items: center; gap: 6px; }

.pg-article-figure { max-width: calc(1100px + 2 * var(--gut)); }
.pg-article-figure .pg-img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-top-right-radius: var(--facade);
	background: var(--soft);
}
.pg-article-figure figcaption { margin-top: 10px; font-size: .8125rem; color: var(--muted); }

.pg-article-grid {
	display: grid;
	grid-template-columns: 220px minmax(0, 720px);
	gap: 56px;
	max-width: calc(1100px + 2 * var(--gut));
	padding-top: 40px;
	padding-bottom: 56px;
}
.pg-rail-sticky {
	position: sticky;
	top: calc(var(--header-h) + 28px);
	display: grid;
	gap: 28px;
}
.pg-toc-title {
	font: 700 1rem/1.3 var(--f-serif);
	color: var(--head);
	margin-bottom: 10px;
}
.pg-toc-list { display: grid; gap: 2px; font-size: .875rem; line-height: 1.4; }
.pg-toc-list a {
	display: block;
	padding: 6px 0 6px 12px;
	border-left: 2px solid var(--rule);
	text-decoration: none;
	color: var(--muted);
}
.pg-toc-list a:hover { color: var(--head); }
.pg-toc-list a.is-active { border-left-color: var(--ochre); color: var(--head); font-weight: 600; }
.pg-toc-l3 a { padding-left: 24px; }

.pg-toc-mobile {
	display: none;
	margin-bottom: 28px;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: var(--corner);
}
.pg-toc-mobile summary {
	padding: 14px 18px;
	font: 700 1rem/1.3 var(--f-serif);
	color: var(--head);
	cursor: pointer;
}
.pg-toc-mobile summary span { color: var(--muted); font-weight: 400; }
.pg-toc-mobile .pg-toc-list { padding: 0 18px 16px; }

.pg-share { display: flex; align-items: center; gap: 8px; }
.pg-share-label { font-size: .8125rem; color: var(--muted); margin-right: 4px; }
.pg-share--rail { display: grid; grid-template-columns: repeat(5, 36px); gap: 6px; }
.pg-share--rail .pg-share-btn { width: 36px; height: 36px; }
.pg-share--rail .pg-share-label { grid-column: 1 / -1; }
.pg-share-btn {
	display: inline-grid;
	place-items: center;
	width: 40px; height: 40px;
	padding: 0;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: 50%;
	color: var(--head);
	text-decoration: none;
}
.pg-share-btn:hover { background: var(--pine); border-color: var(--pine); color: #fff; }
.pg-share-btn.is-copied { background: var(--ochre); border-color: var(--ochre); color: #0F3D3A; }

/* Straipsnio tekstas */
.pg-content {
	font: 400 1.15rem/1.75 var(--f-serif);
	color: var(--text);
	overflow-wrap: break-word;
}
.pg-content > * + * { margin-top: 1.25em; }
.pg-content > p:first-child,
.pg-toc-mobile + .pg-content > p:first-child { font-size: 1.3rem; line-height: 1.6; color: var(--head); }
.pg-content h2 {
	margin-top: 2em;
	font-size: clamp(1.45rem, 1.2rem + .9vw, 1.85rem);
	font-weight: 750;
	line-height: 1.22;
	letter-spacing: -.01em;
}
.pg-content h3 { margin-top: 1.7em; font-size: 1.35rem; font-weight: 700; }
.pg-content h4 { margin-top: 1.5em; font-size: 1.15rem; font-weight: 700; }
.pg-content h2 + *, .pg-content h3 + *, .pg-content h4 + * { margin-top: .6em; }
.pg-content a {
	color: var(--head);
	text-decoration-color: var(--ochre);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.pg-content a:hover { color: var(--ochre-ink); }
.pg-content strong { font-weight: 700; }
.pg-content ul, .pg-content ol { padding-left: 1.4em; }
.pg-content ul { list-style: none; }
.pg-content ul > li { position: relative; }
.pg-content ul > li::before {
	content: "";
	position: absolute;
	left: -1.1em; top: .68em;
	width: 7px; height: 7px;
	background: var(--ochre);
	border-radius: 1px 5px 1px 1px;
}
.pg-content ol { list-style: decimal; }
.pg-content ol > li::marker { font-weight: 700; color: var(--ochre-ink); }
.pg-content li + li { margin-top: .45em; }
.pg-content blockquote {
	margin: 1.8em 0;
	padding: 4px 0 4px 28px;
	border-left: 4px solid var(--ochre);
	font-style: italic;
	font-size: 1.3rem;
	line-height: 1.55;
	color: var(--head);
}
.pg-content blockquote cite { display: block; margin-top: 10px; font: normal .875rem/1.4 var(--f-sans); color: var(--muted); }
.pg-content img { height: auto; border-radius: var(--corner); }
.pg-content figure { margin-block: 1.8em; }
.pg-content figcaption,
.pg-content .wp-caption-text { margin-top: 8px; font: .8125rem/1.45 var(--f-sans); color: var(--muted); }
.pg-content hr { border: 0; height: 2px; background: var(--rule); margin-block: 2.4em; }
.pg-content table { width: 100%; border-collapse: collapse; font: .9375rem/1.5 var(--f-sans); }
.pg-content th, .pg-content td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.pg-content th { background: var(--soft); color: var(--head); }
.pg-content .wp-block-table { overflow-x: auto; }
.pg-content pre { overflow-x: auto; padding: 16px; background: var(--soft); border-radius: var(--corner); font-size: .875rem; }
.pg-content iframe, .pg-content video { max-width: 100%; }
.pg-content .alignwide, .pg-content .alignfull { margin-inline: 0; max-width: 100%; }
.pg-content .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.pg-content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.pg-content .aligncenter { margin-inline: auto; }
.pg-content::after { content: ""; display: table; clear: both; }
.pg-content .wp-caption { max-width: 100%; }

.pg-inline-rel {
	display: grid;
	gap: 6px;
	margin-block: 2em !important;
	padding: 18px 22px;
	background: var(--surface);
	border-top: 4px solid var(--ochre);
	border-radius: 0 0 var(--corner);
}
.pg-inline-rel-label { font: 600 .8125rem/1.3 var(--f-sans); color: var(--ochre-ink); }
.pg-content .pg-inline-rel a {
	font: 700 1.2rem/1.3 var(--f-serif);
	text-decoration: none;
	color: var(--head);
}
.pg-content .pg-inline-rel a:hover { text-decoration: underline; text-decoration-color: var(--ochre); }

.pg-pages { margin-top: 28px; display: flex; gap: 8px; font-weight: 600; }

.pg-article-foot {
	display: grid;
	gap: 28px;
	margin-top: 48px;
	padding-top: 28px;
	border-top: 2px solid var(--head);
}
.pg-share--row { flex-wrap: wrap; }
.pg-authorbox {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 16px;
	padding: 22px;
	background: var(--surface);
	border-radius: var(--corner);
}
.pg-authorbox-name { font: 700 1.1rem/1.3 var(--f-serif); color: var(--head); margin-bottom: 4px; }
.pg-authorbox-bio { color: var(--muted); font-size: .9375rem; }

.pg-related { background: var(--surface); padding-block: 56px; }
.pg-adjacent {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	padding-block: 40px 64px;
}
.pg-adjacent a {
	display: grid;
	gap: 6px;
	padding: 20px 22px;
	border: 1px solid var(--rule);
	border-radius: var(--corner);
	text-decoration: none;
}
.pg-adjacent a:hover { border-color: var(--pine-3); }
.pg-adjacent span { font-size: .8125rem; color: var(--muted); }
.pg-adjacent strong { font: 700 1.1rem/1.3 var(--f-serif); color: var(--head); }
.pg-adjacent-next { grid-column: 2; text-align: right; }

/* Kitas straipsnis */
.pg-nextup {
	position: fixed;
	left: 20px; bottom: 20px;
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 6px;
	width: min(380px, calc(100vw - 104px));
	padding: 10px;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: var(--corner);
	box-shadow: 0 18px 40px -18px rgba(15, 61, 58, .45);
	transform: translateY(140%);
	transition: transform .35s ease;
}
.pg-nextup.is-visible { transform: none; }
.pg-nextup .pg-nextup-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; }
.pg-nextup .pg-media { width: 72px; flex: none; aspect-ratio: 1; border-radius: var(--corner); }
.pg-nextup .pg-media--empty span { font-size: 2rem; }
.pg-nextup-text { display: grid; gap: 2px; min-width: 0; }
.pg-nextup-label { font-size: .75rem; color: var(--ochre-ink); font-weight: 600; }
.pg-nextup-title {
	font: 700 .975rem/1.3 var(--f-serif);
	color: var(--head);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pg-nextup-close {
	align-self: flex-start;
	display: grid; place-items: center;
	width: 32px; height: 32px; padding: 0;
	background: transparent; border: 0; border-radius: 50%;
	color: var(--muted);
}
.pg-nextup-close:hover { background: var(--soft); color: var(--head); }

/* Puslapis */
.pg-page-body { max-width: calc(760px + 2 * var(--gut)); padding-bottom: 72px; }

/* ==========================================================================
   Mygtukas „Į viršų“
   ========================================================================== */
.pg-totop {
	position: fixed;
	right: 20px; bottom: 20px;
	z-index: 60;
	display: grid;
	place-items: center;
	width: 56px; height: 56px;
	padding: 0;
	background: var(--pine);
	color: #fff;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 10px 28px -10px rgba(15, 61, 58, .6);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, background .2s;
}
.pg-totop.is-visible { opacity: 1; transform: none; }
.pg-totop:hover { background: var(--pine-2); }
.pg-totop > * { grid-area: 1 / 1; }
.pg-totop-ring { width: 56px; height: 56px; transform: rotate(-90deg); }
.pg-totop-ring circle {
	fill: none;
	stroke: var(--ochre);
	stroke-width: 3;
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	stroke-linecap: round;
}
.pg-totop-text {
	position: absolute;
	right: calc(100% + 10px);
	padding: 6px 10px;
	background: var(--pine);
	color: #fff;
	font-size: .8125rem;
	font-weight: 600;
	white-space: nowrap;
	border-radius: var(--corner);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s;
}
.pg-totop:hover .pg-totop-text,
.pg-totop:focus-visible .pg-totop-text { opacity: 1; }
[data-theme="dark"] .pg-totop { background: var(--ochre); color: #0F3D3A; }
[data-theme="dark"] .pg-totop-ring circle { stroke: #0F3D3A; }

/* ==========================================================================
   Poraštė
   ========================================================================== */
.pg-footer {
	background: var(--pine);
	color: #C8D8D3;
	padding-block: 64px 28px;
	font-size: .9375rem;
}
[data-theme="dark"] .pg-footer { background: #08120F; border-top: 1px solid var(--rule); }
.pg-footer a { color: #F1F3EF; text-decoration: none; }
.pg-footer a:hover { color: var(--ochre); text-decoration: underline; }
.pg-footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
}
.pg-footer-about { display: grid; gap: 18px; align-content: start; max-width: 42ch; }
.pg-footer-brand { display: inline-flex; align-items: center; gap: 12px; font: 700 1.35rem/1 var(--f-serif); }
.pg-footer .pg-mark .pg-mark-bg { fill: var(--ochre); }
.pg-footer .pg-mark .pg-mark-ck { stroke: #0F3D3A; }
.pg-footer-col h2 { font: 600 1rem/1.3 var(--f-sans); color: var(--ochre); margin-bottom: 14px; }
.pg-footer-col ul { display: grid; gap: 10px; }
.pg-contacts a { display: inline-flex; align-items: center; gap: 8px; }
.pg-social { display: flex; gap: 8px; }
.pg-social a {
	display: grid; place-items: center;
	width: 40px; height: 40px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 50%;
}
.pg-social a:hover { background: var(--ochre); border-color: var(--ochre); color: #0F3D3A; }
.pg-footer-bottom {
	margin-top: 48px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .14);
	font-size: .8125rem;
	color: #9DB8B1;
}

/* ==========================================================================
   Prisitaikymas
   ========================================================================== */
@media (max-width: 1080px) {
	.pg-hero-grid { grid-template-columns: 1fr; }
	.pg-hero-side { grid-template-columns: 1fr 1fr; column-gap: 28px; }
	.pg-side:first-child { padding-top: 20px; }
	.pg-side:nth-last-child(2) { border-bottom: 0; }
	.pg-split { grid-template-columns: 1fr; gap: 48px; }
	.pg-aside { position: static; grid-template-columns: 1fr 1fr; gap: 40px; }
	.pg-article-grid { grid-template-columns: minmax(0, 1fr); max-width: calc(760px + 2 * var(--gut)); }
	.pg-rail { display: none; }
	.pg-toc-mobile { display: block; }
	.pg-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
	.pg-hero { padding-top: 16px; }
	.pg-lead-body { margin: -40px 0 0 0; padding: 22px 20px 24px; }
	.pg-hero-side { grid-template-columns: 1fr; }
	.pg-side:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
	.pg-side { grid-template-columns: minmax(0, 1fr) 96px; }
	.pg-rows::before { left: 23px; }
	.pg-row { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
	.pg-row-day { font-size: 1.4rem; }
	.pg-row-body { grid-template-columns: 1fr; }
	.pg-row-media { order: -1; }
	.pg-aside { grid-template-columns: 1fr; }
	.pg-rubric { padding-block: 40px; }
	.pg-rubric-grid { grid-template-columns: 1fr; gap: 28px; }
	.pg-rubric--flip .pg-rubric-grid > .pg-card { order: 0; }
	.pg-grid--featured .pg-card--big { grid-template-columns: 1fr; gap: 16px; }
	.pg-adjacent { grid-template-columns: 1fr; }
	.pg-adjacent-next { grid-column: auto; text-align: left; }
	.pg-content { font-size: 1.0625rem; line-height: 1.72; }
	.pg-content > p:first-child { font-size: 1.2rem; }
	.pg-content .alignleft, .pg-content .alignright { float: none; margin: 1em 0; max-width: 100%; }
	.pg-footer-grid { grid-template-columns: 1fr; }
	.pg-nextup { left: 12px; bottom: 12px; width: calc(100vw - 92px); }
	.pg-totop { right: 12px; bottom: 12px; }
	.pg-searchform button { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
	.pg-ticker-track { animation: none; }
	.pg-ticker-viewport { overflow-x: auto; mask-image: none; }
	.pg-ticker-list[aria-hidden="true"] { display: none; }
}

@media print {
	.pg-topbar, .pg-header, .pg-footer, .pg-rail, .pg-share, .pg-related, .pg-adjacent,
	.pg-nextup, .pg-totop, .pg-progress, .pg-toc-mobile, .pg-inline-rel { display: none !important; }
	body { background: #fff; color: #000; }
	.pg-article-grid { display: block; padding: 0; }
	.pg-content a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
