/* ==========================================================================
   Gintaras – naujienų portalo tema
   Spalvos: Neris (ink) + gintaras (amber) + rūkas (fog)
   Šriftai: Bitter (antraštės ir tekstas), Fira Sans (sąsaja)
   ========================================================================== */

@font-face {
	font-family: "Bitter";
	src: url("../fonts/bitter.woff") format("woff");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Bitter";
	src: url("../fonts/bitter-italic.woff") format("woff");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Fira Sans";
	src: url("../fonts/fira-sans-400.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fira Sans";
	src: url("../fonts/fira-sans-600.woff") format("woff");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

:root {
	--paper: #FFFFFF;
	--fog: #E9EEF2;
	--ink: #16304A;
	--text: #1D3348;
	--muted: #56697B;
	--line: #D3DCE4;
	--amber: #F5A524;
	--amber-soft: #FCE7BF;
	--on-amber: #16304A;
	--focus: #16304A;
	--footer: #16304A;
	--footer-text: #D6E0EA;
	--shadow: 0 14px 36px rgba(22, 48, 74, .18);

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

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--head-h: 72px;
	--pebble: 30px 14px 36px 18px;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--paper: #0F1C28;
	--fog: #172838;
	--ink: #E7EDF2;
	--text: #D9E2EA;
	--muted: #9FB1C2;
	--line: #263B50;
	--amber-soft: #3A2E14;
	--focus: #F5A524;
	--footer: #0A141D;
	--footer-text: #B9C7D4;
	--shadow: 0 14px 36px rgba(0, 0, 0, .45);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #0F1C28;
		--fog: #172838;
		--ink: #E7EDF2;
		--text: #D9E2EA;
		--muted: #9FB1C2;
		--line: #263B50;
		--amber-soft: #3A2E14;
		--focus: #F5A524;
		--footer: #0A141D;
		--footer-text: #B9C7D4;
		--shadow: 0 14px 36px rgba(0, 0, 0, .45);
		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(--head-h) + 16px);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
	font-family: var(--serif);
	color: var(--ink);
	margin: 0;
	text-wrap: balance;
}

p { margin: 0; }

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

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

.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: 16px;
	top: -100px;
	z-index: 200;
	padding: 12px 18px;
	background: var(--amber);
	color: var(--on-amber);
	font-weight: 600;
	border-radius: 10px;
	text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

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

.icon {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}
.share__btn--facebook .icon,
.share__btn--x .icon,
.share__btn--linkedin .icon,
.footer__social .icon { fill: currentColor; stroke: none; }
.share__btn--whatsapp .icon { stroke-width: 1.6; }

/* ---------- Mygtukai ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px;
	border: 2px solid var(--ink);
	border-radius: 12px;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--sans);
	font-weight: 600;
	font-size: .9375rem;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }

/* ---------- Skaitymo progresas ---------- */

.progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 4px;
	z-index: 120;
	pointer-events: none;
}
.progress__bar {
	display: block;
	height: 100%;
	background: var(--amber);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

/* ---------- Antraštė ---------- */

.masthead {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.admin-bar .masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar .masthead { top: 0; } }

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

.brand { margin: 0; font-size: 1rem; line-height: 1; flex: none; }
.brand__link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--ink);
}
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__pebble { fill: var(--amber); }
.brand__pulse {
	fill: none;
	stroke: var(--on-amber);
	stroke-width: 5.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__main {
	font-family: var(--serif);
	font-weight: 800;
	font-size: 1.625rem;
	letter-spacing: -.01em;
	line-height: 1;
}
.brand__sub {
	font-family: var(--sans);
	font-size: .78rem;
	color: var(--muted);
	letter-spacing: .01em;
}
.brand__img { max-height: 52px; width: auto; }

.nav { flex: 1 1 auto; min-width: 0; }
.nav__list {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.nav__list::-webkit-scrollbar { display: none; }
.nav__list a {
	display: block;
	padding: 10px 12px;
	font-size: .96875rem;
	text-decoration: none;
	color: var(--ink);
	white-space: nowrap;
	border-radius: 10px;
}
.nav__list a:hover { background: var(--fog); }
.nav__list .current-menu-item > a,
.nav__list .current-category-ancestor > a,
.nav__list .current-post-ancestor > a,
.nav__list a[aria-current="page"] {
	font-weight: 600;
	box-shadow: inset 0 -3px 0 var(--amber);
	border-radius: 10px 10px 4px 4px;
}

.masthead__tools { display: flex; gap: 4px; margin-left: auto; flex: none; }
.iconbtn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--ink);
}
.iconbtn:hover { background: var(--fog); }
.iconbtn[aria-expanded="true"],
.iconbtn[aria-pressed="true"] { background: var(--amber); color: var(--on-amber); }
.iconbtn--menu { display: none; }

.search-panel {
	border-top: 1px solid var(--line);
	background: var(--fog);
	padding-block: 20px;
}

@media (max-width: 960px) {
	.masthead__bar { gap: 12px; }
	.iconbtn--menu { display: inline-grid; }
	.nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
		padding: 8px var(--gutter) 20px;
		max-height: calc(100vh - var(--head-h));
		overflow-y: auto;
	}
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; overflow: visible; }
	.nav__list a { padding: 14px 8px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav__list .current-menu-item > a,
	.nav__list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--amber); padding-left: 16px; border-radius: 0; }
}
@media (max-width: 420px) {
	.brand__sub { display: none; }
	.brand__mark { width: 38px; height: 38px; }
	.brand__main { font-size: 1.4rem; }
}

/* ---------- Paieška ---------- */

.searchform { display: flex; gap: 10px; max-width: 720px; }
.searchform__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 13px 16px;
	font: inherit;
	font-size: 1.0625rem;
	color: var(--ink);
	background: var(--paper);
	border: 2px solid var(--line);
	border-radius: 12px;
}
.searchform__input:focus { border-color: var(--ink); outline: none; }
.searchform__btn {
	padding: 0 22px;
	border: 0;
	border-radius: 12px;
	background: var(--ink);
	color: var(--paper);
	font-weight: 600;
}
.searchform__btn:hover { background: var(--amber); color: var(--on-amber); }

/* ---------- Sekcijos ---------- */

.section { padding-block: clamp(36px, 5vw, 64px); }
.section + .section { padding-top: 0; }

.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.section__title {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.15;
}
.section__title a { text-decoration: none; }
.section__title a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.section__more {
	font-size: .9375rem;
	font-weight: 600;
	color: var(--muted);
	text-decoration: underline;
	text-decoration-color: var(--line);
	text-underline-offset: 4px;
}
.section__more:hover { color: var(--ink); text-decoration-color: var(--amber); }

/* ---------- Kortelės ---------- */

.card { position: relative; display: flex; flex-direction: column; min-width: 0; }

.card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 10px;
	background: var(--fog);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__body { padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }

.card__cat {
	align-self: flex-start;
	font-size: .84375rem;
	font-weight: 600;
	color: var(--muted);
	text-decoration: none;
}
.card__cat:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }

.card__title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.003em;
}
.card__title a {
	text-decoration: none;
	background-image: linear-gradient(var(--amber), var(--amber));
	background-size: 0 3px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size .2s ease;
}
.card__title a:hover { background-size: 100% 3px; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card__cat { position: relative; z-index: 1; }

.card__excerpt { font-size: 1rem; line-height: 1.55; color: var(--muted); }

.card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	font-size: .84375rem;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.card__meta > * + *::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: .9em;
	margin-right: 12px;
	vertical-align: -1px;
	background: var(--line);
}

.card__new {
	display: inline-flex;
	align-items: center;
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--amber);
	color: var(--on-amber);
	font-size: .75rem;
	font-weight: 600;
	align-self: flex-start;
}

/* Pagrindinis straipsnis */
.card--lead .card__media { aspect-ratio: 16 / 9.5; border-radius: 14px; }
.card--lead .card__body { padding-top: 20px; gap: 12px; }
.card--lead .card__title {
	font-size: clamp(1.875rem, 1.1rem + 2.6vw, 3.125rem);
	font-weight: 800;
	line-height: 1.07;
	letter-spacing: -.018em;
	max-width: 24ch;
}
.card--lead .card__title a { background-size: 0 5px; }
.card--lead .card__title a:hover { background-size: 100% 5px; }
.card--lead .card__excerpt { font-size: 1.125rem; max-width: 62ch; }

/* Kategorijų skilties pagrindinis */
.card--feature .card__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.875rem); font-weight: 800; line-height: 1.15; }

/* Eilutė (paveikslėlis kairėje) */
.card--row {
	display: grid;
	grid-template-columns: 128px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}
.card--row .card__media { aspect-ratio: 4 / 3; border-radius: 8px; }
.card--row .card__body { padding-top: 0; gap: 6px; }
.card--row .card__title { font-size: 1.0625rem; line-height: 1.3; }

/* Nėra paveikslėlio */
.ph {
	display: grid;
	place-items: center;
	align-content: center;
	gap: 10px;
	width: 100%;
	height: 100%;
	min-height: 100%;
	background: var(--fog);
	padding: 12px;
	text-align: center;
}
.ph__mark { width: clamp(36px, 22%, 88px); height: auto; }
.ph__mark path { fill: var(--amber); }
.ph__mark polyline { fill: none; stroke: var(--on-amber); stroke-width: 5.2; stroke-linecap: round; stroke-linejoin: round; }
.ph__label { font-family: var(--serif); font-weight: 700; font-size: .95rem; color: var(--muted); }
.card--row .ph__label,
.nextup .ph__label { display: none; }

/* ---------- Pagrindinis: herojus ---------- */

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 36px 48px;
	padding-block: clamp(24px, 4vw, 44px) clamp(36px, 5vw, 64px);
}
.hero__lead { min-width: 0; }
.hero__row {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

/* Gintaro blokas – vienintelis „garsus“ elementas */
.pulse {
	align-self: start;
	background: var(--amber);
	color: var(--on-amber);
	border-radius: var(--pebble);
	padding: 28px 28px 24px;
}
.pulse__title {
	color: var(--on-amber);
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -.01em;
	margin-bottom: 18px;
}
.pulse__list { list-style: none; margin: 0 0 18px; padding: 0; }
.pulse__item {
	position: relative;
	padding: 0 0 18px 22px;
	border-left: 2px solid rgba(22, 48, 74, .32);
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.pulse__item:last-child { padding-bottom: 2px; }
.pulse__item::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 3px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--amber);
	border: 2px solid #16304A;
}
.pulse__item.is-new::before { background: #16304A; }
.pulse__item time {
	font-size: .8125rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	opacity: .82;
}
.pulse__item a {
	font-family: var(--serif);
	font-weight: 600;
	font-size: 1.0625rem;
	line-height: 1.3;
	color: var(--on-amber);
	text-decoration: none;
}
.pulse__item a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pulse__item a:focus-visible,
.pulse__all:focus-visible { outline-color: #16304A; }
.pulse__all {
	display: inline-block;
	font-weight: 600;
	font-size: .9375rem;
	color: var(--on-amber);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

/* ---------- Skaitomiausi ---------- */

.band { background: var(--fog); padding-block: clamp(36px, 5vw, 56px); }
.band .section__title { margin-bottom: 24px; }
.ranked {
	counter-reset: rank;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 28px;
}
.ranked__item {
	counter-increment: rank;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ranked__item::before {
	content: counter(rank);
	font-family: var(--serif);
	font-weight: 800;
	font-size: 3.5rem;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--ink);
	margin-bottom: 4px;
}
.ranked__item:first-child::before { color: var(--amber); -webkit-text-stroke: 1.5px var(--amber); }
.ranked__link {
	font-family: var(--serif);
	font-weight: 700;
	font-size: 1.0625rem;
	line-height: 1.3;
	color: var(--ink);
	text-decoration: none;
}
.ranked__link:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.ranked__meta { font-size: .84375rem; color: var(--muted); }

/* ---------- Kategorijų skiltys ---------- */

.rail__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	grid-template-rows: auto auto 1fr;
	gap: 24px 48px;
	align-items: start;
}
.rail__grid .card--feature { grid-row: 1 / span 3; }
.rail__grid .card--row + .card--row { padding-top: 24px; border-top: 1px solid var(--line); }
.rail--flip .rail__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.rail--flip .rail__grid .card--feature { grid-column: 2; }
.rail--flip .rail__grid .card--row { grid-column: 1; }

/* ---------- Sąrašas ---------- */

.feed {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 40px 32px;
}
.feed__more {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 44px;
}
.feed.is-loading { opacity: .6; }

.pager { margin-top: 36px; }
.pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: 12px;
	font-weight: 600;
	text-decoration: none;
	color: var(--ink);
	background: var(--fog);
}
.pager .page-numbers.current { background: var(--ink); color: var(--paper); }
.pager a.page-numbers:hover { background: var(--amber); color: var(--on-amber); }
.pager .dots { background: none; }
.js .pager.is-replaced { display: none; }

.archive-head { padding-block: 8px 32px; max-width: 760px; }
.archive-head__title {
	font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem);
	font-weight: 800;
	letter-spacing: -.015em;
	line-height: 1.1;
}
.archive-head__page { font-weight: 400; color: var(--muted); }
.archive-head__desc { margin-top: 12px; font-family: var(--serif); font-size: 1.125rem; line-height: 1.6; color: var(--muted); }
.archive-head__desc p + p { margin-top: .8em; }
.archive-head__count { margin-top: 10px; font-size: .9375rem; color: var(--muted); }
.archive-head__search { margin-top: 20px; }

.empty { padding: 40px; background: var(--fog); border-radius: var(--pebble); display: grid; gap: 16px; justify-items: start; }
.empty h2 { font-size: 1.5rem; }

/* ---------- Naršymo kelias ---------- */

.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	font-size: .875rem;
	color: var(--muted);
}
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] {
	display: inline-block;
	max-width: 32ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

/* ---------- Straipsnis ---------- */

.article__head { padding-top: clamp(24px, 4vw, 44px); max-width: calc(900px + 2 * var(--gutter)); }
.article__cat {
	display: inline-block;
	margin-bottom: 14px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--amber-soft);
	color: var(--ink);
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
}
.article__cat:hover { background: var(--amber); color: var(--on-amber); }
.article__title {
	font-size: clamp(2rem, 1.25rem + 2.7vw, 3.375rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.02em;
	max-width: 26ch;
}
.article__dek {
	margin-top: 18px;
	font-family: var(--serif);
	font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem);
	line-height: 1.55;
	color: var(--muted);
	max-width: 60ch;
}
.article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-top: 22px;
	font-size: .9375rem;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.article__author { color: var(--ink); font-weight: 600; }

.article__media { margin: clamp(24px, 3vw, 36px) auto 0; }
.article__media img { width: 100%; border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; }
.article__media figcaption { margin-top: 10px; font-size: .875rem; color: var(--muted); }

.article__layout {
	display: grid;
	grid-template-columns: minmax(0, 720px) 300px;
	justify-content: space-between;
	gap: 64px;
	padding-top: clamp(28px, 4vw, 44px);
	max-width: calc(1120px + 2 * var(--gutter));
}
.article__layout--single { grid-template-columns: minmax(0, 720px); justify-content: start; }
.article--page .article__head { max-width: calc(1120px + 2 * var(--gutter)); }

.aside__sticky { position: sticky; top: calc(var(--head-h) + 24px); display: grid; gap: 28px; }
.admin-bar .aside__sticky { top: calc(var(--head-h) + 56px); }

.mini__title { font-size: 1.125rem; font-weight: 800; margin-bottom: 12px; }
.mini__list { counter-reset: mini; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mini__list li { counter-increment: mini; display: grid; grid-template-columns: 26px 1fr; gap: 6px; }
.mini__list li::before {
	content: counter(mini);
	font-family: var(--serif);
	font-weight: 800;
	font-size: 1.125rem;
	line-height: 1.3;
	color: var(--amber);
}
.mini__list a {
	font-family: var(--serif);
	font-weight: 600;
	font-size: .98rem;
	line-height: 1.35;
	color: var(--ink);
	text-decoration: none;
}
.mini__list a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }

.widget__title { font-size: 1.125rem; font-weight: 800; margin-bottom: 12px; }
.widget ul { margin: 0; padding-left: 1.1em; }

/* Straipsnio tekstas */
.prose {
	font-family: var(--serif);
	font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
	line-height: 1.75;
	color: var(--text);
	overflow-wrap: break-word;
}
.prose > * + * { margin-top: 1.15em; }
.prose h2,
.prose h3,
.prose h4 { scroll-margin-top: calc(var(--head-h) + 20px); line-height: 1.2; }
.prose h2 { font-size: 1.75em; font-weight: 800; margin-top: 1.9em; letter-spacing: -.012em; }
.prose h3 { font-size: 1.3em; font-weight: 700; margin-top: 1.6em; }
.prose h4 { font-size: 1.1em; font-weight: 700; margin-top: 1.4em; }
.prose h2 + *,
.prose h3 + *,
.prose h4 + * { margin-top: .6em; }
.prose a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--amber);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--ink); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--muted); font-weight: 600; }
.prose blockquote {
	margin-inline: 0;
	padding: .2em 0 .2em 1.1em;
	border-left: 4px solid var(--amber);
	font-style: italic;
	font-size: 1.15em;
	line-height: 1.6;
	color: var(--ink);
}
.prose blockquote cite { display: block; margin-top: .6em; font-family: var(--sans); font-style: normal; font-size: .8em; color: var(--muted); }
.prose img { border-radius: 10px; }
.prose figure { margin-inline: 0; }
.prose figcaption,
.prose .wp-caption-text,
.prose .wp-element-caption { margin-top: 8px; font-family: var(--sans); font-size: .82em; line-height: 1.45; color: var(--muted); }
.prose .wp-caption { max-width: 100%; }
.prose hr { border: 0; height: 2px; width: 96px; margin: 2.4em auto; background: var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .875em; line-height: 1.45; display: block; overflow-x: auto; }
.prose th,
.prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--fog); color: var(--ink); font-weight: 600; }
.prose code,
.prose pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
.prose pre { padding: 16px; background: var(--fog); border-radius: 10px; overflow-x: auto; }
.prose iframe { width: 100%; border: 0; border-radius: 10px; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignwide,
.prose .alignfull { max-width: none; }
.prose::after { content: ""; display: table; clear: both; }

/* Turinio planas */
.toc {
	background: var(--fog);
	border-radius: 16px;
	padding: 18px 22px;
	font-family: var(--sans);
}
.toc__title {
	cursor: pointer;
	font-weight: 600;
	font-size: 1rem;
	color: var(--ink);
	list-style-position: outside;
}
.toc__list { margin: 12px 0 0; padding-left: 1.4em; display: grid; gap: 6px; font-size: .96875rem; line-height: 1.4; }
.toc__item--h3 { margin-left: 1em; list-style-type: circle; font-size: .9375rem; }
.toc__list a { color: var(--ink); text-decoration: none; }
.toc__list a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.toc__list a.is-active { font-weight: 600; box-shadow: inset 0 -3px 0 var(--amber); }

/* Intarpas „Taip pat skaitykite“ */
.inline-read {
	padding: 18px 22px;
	border-radius: var(--pebble);
	background: var(--amber-soft);
}
.inline-read__title { font-family: var(--sans); font-size: .875rem; font-weight: 600; color: var(--muted); }
.inline-read ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.inline-read li + li { margin-top: 0; }
.inline-read a { font-weight: 700; font-size: 1.0625rem; line-height: 1.35; text-decoration: none; }
.inline-read a:hover { text-decoration: underline; text-decoration-color: var(--ink); }

.page-links { margin-top: 2em; font-family: var(--sans); }

.article__foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 24px; }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--fog);
	color: var(--ink);
	font-size: .875rem;
	text-decoration: none;
}
.tags a:hover { background: var(--amber); color: var(--on-amber); }

/* Dalijimasis */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__label { font-size: .875rem; font-weight: 600; color: var(--muted); margin-right: 4px; }
.share__btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1.5px solid var(--line);
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink);
	text-decoration: none;
}
.share__btn:hover { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.share__btn[hidden] { display: none; }
.share__ok {
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	padding: 4px 10px;
	border-radius: 8px;
	background: var(--ink);
	color: var(--paper);
	font-size: .8125rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s;
}
.share__ok.is-visible { opacity: 1; }
.share--aside .share__label { width: 100%; }

.related { border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px); }

/* Kitas straipsnis */
.nextup {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 8px;
	width: min(400px, calc(100vw - 104px));
	padding: 10px 8px 10px 10px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: var(--shadow);
	transform: translateY(calc(100% + 40px));
	transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.nextup.is-visible { transform: none; }
.nextup[hidden] { display: none; }
.nextup__link { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; text-decoration: none; color: var(--ink); }
.nextup__media { flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--fog); }
.nextup__media img { width: 100%; height: 100%; object-fit: cover; }
.nextup__text { display: grid; gap: 2px; min-width: 0; }
.nextup__label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.nextup__title {
	font-family: var(--serif);
	font-weight: 700;
	font-size: .98rem;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nextup__link:hover .nextup__title { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.nextup__close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); }
.nextup__close:hover { background: var(--fog); color: var(--ink); }

/* ---------- Į viršų ---------- */

.totop {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 95;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ink);
	color: var(--paper);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s, transform .25s, visibility .25s;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--amber); color: var(--on-amber); }
.totop .icon { position: relative; width: 22px; height: 22px; stroke-width: 2.2; }
.totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.totop__track,
.totop__value { fill: none; stroke-width: 3; }
.totop__track { stroke: rgba(127, 145, 163, .35); }
.totop__value { stroke: var(--amber); stroke-linecap: round; stroke-dasharray: 131.95; stroke-dashoffset: 131.95; }
.totop:hover .totop__value { stroke: var(--on-amber); }

/* ---------- 404 ---------- */

.notfound__head { max-width: 720px; padding-bottom: 48px; display: grid; gap: 14px; }
.notfound__code {
	font-family: var(--serif);
	font-weight: 800;
	font-size: clamp(5rem, 14vw, 9rem);
	line-height: .9;
	color: var(--amber);
	letter-spacing: -.03em;
}
.notfound__text { font-family: var(--serif); font-size: 1.125rem; line-height: 1.6; color: var(--muted); }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.notfound .section__title { margin-bottom: 24px; }

/* ---------- Poraštė ---------- */

.footer { margin-top: clamp(48px, 6vw, 88px); background: var(--footer); color: var(--footer-text); }
.footer a { color: #FFFFFF; }
.footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr);
	gap: 40px;
	padding-block: 56px 40px;
}
.footer__brand { font-family: var(--serif); font-weight: 800; font-size: 1.375rem; line-height: 1.2; }
.footer__brand a { text-decoration: none; }
.footer__text { margin: 12px 0 20px; max-width: 46ch; line-height: 1.6; }
.footer .btn--ghost { border-color: rgba(255, 255, 255, .5); color: #FFFFFF; }
.footer .btn--ghost:hover { border-color: var(--amber); background: var(--amber); color: #16304A; }
.footer__title { color: #FFFFFF; font-size: 1.125rem; font-weight: 800; margin-bottom: 14px; }
.footer__cats ul,
.footer__menu { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.footer__cats li,
.footer__menu li { break-inside: avoid; padding: 4px 0; }
.footer__cats a,
.footer__menu a { text-decoration: none; }
.footer__cats a:hover,
.footer__menu a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.footer__social { list-style: none; display: flex; gap: 8px; margin: 20px 0 0; padding: 0; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.footer__social a:hover { background: var(--amber); color: #16304A; }
.footer .widget__title { color: #FFFFFF; }
.footer__base { padding-block: 18px 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .875rem; }
.footer :focus-visible { outline-color: var(--amber); }

/* ---------- Prisitaikymas ---------- */

@media (max-width: 1100px) {
	.hero { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
	.ranked { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.article__layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
}

@media (max-width: 900px) {
	.hero { grid-template-columns: minmax(0, 1fr); }
	.hero__row { padding-top: 28px; }
	.rail__grid,
	.rail--flip .rail__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
	.rail__grid .card--feature,
	.rail--flip .rail__grid .card--feature,
	.rail--flip .rail__grid .card--row { grid-row: auto; grid-column: auto; }
	.rail__grid .card--feature { margin-bottom: 8px; }
	.rail__grid .card--row:first-of-type,
	.rail__grid .card--feature + .card--row { padding-top: 24px; border-top: 1px solid var(--line); }
	.article__layout { grid-template-columns: minmax(0, 1fr); }
	.aside__sticky { position: static; }
	.share--aside { display: none; }
	.footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.footer__about { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
	.hero__row {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 78%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
		scroll-padding-inline: var(--gutter);
		gap: 20px;
		border-top: 0;
		padding-top: 4px;
		scrollbar-width: thin;
	}
	.hero__row .card { scroll-snap-align: start; }
	.pulse { padding: 24px 22px 20px; }
	.ranked { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.ranked__item {
		display: grid;
		grid-template-columns: 56px minmax(0, 1fr);
		column-gap: 8px;
		padding: 14px 0;
		border-top: 1px solid var(--line);
	}
	.ranked__item::before { grid-row: span 2; font-size: 2.5rem; margin: 0; }
	.card--row { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
	.feed { gap: 32px; }
	.footer__grid { grid-template-columns: minmax(0, 1fr); }
	.totop { right: 14px; bottom: 14px; width: 50px; height: 50px; }
	.nextup { left: 12px; bottom: 12px; width: calc(100vw - 84px); }
	.searchform__btn { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
	.masthead,
	.footer,
	.totop,
	.nextup,
	.progress,
	.article__aside,
	.share,
	.related,
	.inline-read { display: none !important; }
	.article__layout { display: block; }
	.prose { font-size: 12pt; }
}
