/* ==========================================================================
   Kitespot Gūsis – temos stiliai
   Idėja: Baltijos jūra ir kaitų burės. Ledinis fonas, gilus jūros mėlis,
   kaito rombas ir „burės“ įstrižas kampas – vienintelis ryškus motyvas.
   ========================================================================== */

/* ---------- Žetonai ---------- */
:root {
	--ice: #EAF1F4;
	--surface: #FFFFFF;
	--ink: #0F2B3A;
	--ink-2: #3E5866;
	--rule: #C9D7DD;
	--rule-soft: #DCE6EA;
	--kite: #E5246F;
	--kite-ink: #C2185B;
	--buoy: #FFC83D;
	--lagoon: #1497A8;
	--link: #0B6B78;
	--deep: #0F2B3A;
	--deep-ink: #EAF1F4;
	--deep-ink-2: #A9C1CB;

	--sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--serif: 'Lora', Georgia, Cambria, 'Times New Roman', serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 8px;
	--sail: polygon(0 0, 100% 0, 100% 80%, 86% 100%, 0 100%);
	--header-h: 68px;

	color-scheme: light;
}

:root[data-mode="dark"] {
	--ice: #0A1C26;
	--surface: #102733;
	--ink: #E6EEF1;
	--ink-2: #A3B9C3;
	--rule: #274655;
	--rule-soft: #1A3542;
	--kite-ink: #FF6FA3;
	--link: #6DD3DF;
	--deep: #061219;
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-mode="light"]) {
		--ice: #0A1C26;
		--surface: #102733;
		--ink: #E6EEF1;
		--ink-2: #A3B9C3;
		--rule: #274655;
		--rule-soft: #1A3542;
		--kite-ink: #FF6FA3;
		--link: #6DD3DF;
		--deep: #061219;
		color-scheme: dark;
	}
}

/* ---------- Pagrindai ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-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(--ice);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.55;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--sans); margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--kite); outline-offset: 2px; border-radius: 2px; }
.site-main:focus { outline: none; }

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

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	top: 12px; left: 12px; z-index: 1000; padding: 12px 18px;
	background: var(--ink); color: var(--ice); font-weight: 700; text-decoration: none;
}

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Antraštė ---------- */
.masthead {
	position: sticky;
	top: -36px;
	z-index: 50;
	background: var(--ice);
	border-bottom: 1px solid var(--rule);
}
.admin-bar .masthead { top: -4px; }
@media (max-width: 782px) { .admin-bar .masthead { top: 10px; } }

.topline { background: var(--deep); color: var(--deep-ink); height: 36px; font-size: .8125rem; }
.topline__inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.topline__date { white-space: nowrap; color: var(--deep-ink-2); }

.ticker { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.ticker__label { color: var(--buoy); font-weight: 700; white-space: nowrap; }
.ticker__viewport {
	display: flex; overflow: hidden; min-width: 0; flex: 1;
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
}
.ticker__track { display: flex; list-style: none; flex: none; gap: 0; animation: ticker 70s linear infinite; }
.ticker__track li { white-space: nowrap; padding-right: 2.6em; position: relative; }
.ticker__track li::after {
	content: ""; position: absolute; right: 1.1em; top: 50%; width: 6px; height: 6px;
	background: var(--lagoon); transform: translateY(-50%) rotate(45deg);
}
.ticker__track a { text-decoration: none; color: var(--deep-ink); }
.ticker__track a:hover { text-decoration: underline; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.ticker__track { animation: none; }
	.ticker__track[aria-hidden] { display: none; }
	.ticker__viewport { overflow-x: auto; }
}
@media (max-width: 640px) { .topline__date { display: none; } }

.masthead__bar { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { margin: 0; flex: none; line-height: 0; }
.brand__link, .brand .custom-logo-link { display: block; color: var(--ink); }
.brand svg { width: auto; height: 40px; }
.brand img { width: auto; max-height: 44px; }

.nav { flex: 1; min-width: 0; }
.nav__list, .nav ul {
	display: flex; list-style: none; gap: 4px; overflow-x: auto; scrollbar-width: none;
	mask-image: linear-gradient(90deg, #000 90%, transparent);
	padding-right: 24px;
}
.nav__list::-webkit-scrollbar { display: none; }
.nav a {
	display: block; position: relative; padding: 10px 12px; white-space: nowrap;
	text-decoration: none; font-weight: 600; font-size: .975rem; color: var(--ink);
}
.nav a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px;
	background: var(--c, var(--kite)); transform: scaleX(0); transform-origin: left;
	transition: transform .2s ease;
}
.nav a:hover::after, .nav a[aria-current]::after, .nav .current-menu-item > a::after, .nav .current-cat > a::after { transform: scaleX(1); }

.mode-toggle {
	flex: none; width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid var(--rule); background: transparent; display: grid; place-items: center;
}
.mode-toggle:hover { border-color: var(--ink); }
.mode-toggle .icon--sun { display: none; }
:root[data-mode="dark"] .mode-toggle .icon--sun { display: block; }
:root[data-mode="dark"] .mode-toggle .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-mode="light"]) .mode-toggle .icon--sun { display: block; }
	:root:not([data-mode="light"]) .mode-toggle .icon--moon { display: none; }
}
@media (max-width: 720px) {
	.masthead__bar { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 0 12px; }
	.brand svg { height: 34px; }
	.mode-toggle { margin-left: auto; }
	.nav { order: 3; flex-basis: 100%; margin-inline: -12px; }
	:root { --header-h: 104px; }
}

/* ---------- Skaitymo progresas ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; pointer-events: none; }
.admin-bar .progress { top: 32px; }
.progress__bar { display: block; height: 100%; background: var(--kite); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- Rubrikos ženkliukas ---------- */
.chip {
	display: inline-flex; align-items: center; gap: .5em;
	position: relative; z-index: 2;
	font-size: .8125rem; font-weight: 650; line-height: 1.2;
	color: var(--ink); text-decoration: none;
}
.chip::before {
	content: ""; width: .62em; height: .62em; flex: none;
	background: var(--c, var(--kite)); transform: rotate(45deg);
}
a.chip:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Meta eilutė ---------- */
.meta { display: flex; flex-wrap: wrap; gap: .25em 1em; font-size: .8125rem; color: var(--ink-2); }
.meta__fresh { color: var(--kite-ink); font-weight: 700; }

/* ---------- Kortelės ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card__title { font-size: 1.15rem; font-weight: 720; line-height: 1.22; text-wrap: pretty; }
.card--lead .card__title, .card--tile .card__title { text-wrap: balance; }
.card__link { text-decoration: none; color: inherit; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--kite); }
.card__link:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--kite); outline-offset: 6px; border-radius: 4px; }
.card__excerpt { font-family: var(--serif); font-size: .98rem; line-height: 1.55; color: var(--ink-2); }

.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--rule-soft); aspect-ratio: 16 / 10; }
.media img, .media__img { width: 100%; height: 100%; object-fit: cover; }
.media__ph {
	position: absolute; inset: 0;
	background:
		linear-gradient(135deg, transparent 49.5%, rgba(255,255,255,.18) 50%, transparent 50.5%),
		linear-gradient(45deg, transparent 49.5%, rgba(255,255,255,.18) 50%, transparent 50.5%),
		linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 45%, #0F2B3A));
}

/* lead – „burė“ */
.card--lead { gap: 22px; }
.card--lead .media { aspect-ratio: 16 / 9; border-radius: 10px 10px 0 10px; clip-path: var(--sail); }
.card--lead .card__title { font-size: clamp(1.9rem, 1rem + 2.4vw, 2.9rem); font-weight: 780; line-height: 1.05; letter-spacing: -0.03em; }
.card--lead .card__dek { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.55; max-width: 62ch; }
.card--lead .card__body { gap: 12px; }

/* row – srautas */
.card--row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; padding-block: 18px; border-bottom: 1px solid var(--rule); }
.card--row .media { aspect-ratio: 4 / 3; border-radius: 6px; }
.card--row .card__title { font-size: 1.08rem; }
.card--row:first-child { padding-top: 6px; }

/* rank – populiariausi */
.card--rank { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.card__rank {
	font-size: 2.6rem; font-weight: 900; line-height: .9; letter-spacing: -0.04em;
	color: transparent; -webkit-text-stroke: 1.5px var(--kite);
}
.card--rank .card__title { font-size: 1.02rem; }

/* rail */
.card--rail .media { aspect-ratio: 3 / 2; }
.card--rail .card__title { font-size: 1.06rem; }

/* ---------- Pagrindinio viršus: „Vėjo žemėlapis“ ---------- */
.cover { position: relative; overflow: hidden; background: var(--deep); color: var(--deep-ink); padding-block: clamp(28px, 5vw, 56px); isolation: isolate; }
.cover__isobars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cover__isobars ellipse { fill: none; stroke: #5CC9D6; stroke-opacity: .16; stroke-width: 1.4; }
.cover__grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cover .chip, .cover .card__title { color: var(--deep-ink); }
.cover .meta { color: var(--deep-ink-2); }
.cover .meta__fresh { color: var(--buoy); }
.cover .card__dek { color: var(--deep-ink-2); }
.cover .card--lead .chip { font-size: .9rem; }
.cover__side { display: grid; gap: 28px; }
.cover__side .card { padding-top: 0; }
.cover__side .card + .card { border-top: 1px solid rgba(169,193,203,.28); padding-top: 28px; }
.cover .card:focus-within { outline-color: var(--buoy); }
@media (max-width: 900px) {
	.cover__grid { grid-template-columns: 1fr; }
	.cover__side { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
	.cover__side .card + .card { border-top: 0; padding-top: 0; }
}

/* ---------- Skilčių pavadinimai ---------- */
.section-title {
	display: flex; align-items: center; gap: 14px;
	font-size: 1.35rem; font-weight: 760; margin-bottom: 18px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

.text-link {
	display: inline-block; margin-top: 16px; font-weight: 650; font-size: .95rem;
	color: var(--link); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
}
.text-link:hover { color: var(--kite-ink); }

/* ---------- Srautas + populiariausi ---------- */
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(36px, 5vw, 64px); }
.popular__list { list-style: none; }
.popular { align-self: start; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .popular { position: static; } }

/* ---------- Rubrikų juostos ---------- */
.rail { padding-block: 28px 36px; border-top: 1px solid var(--rule); }
.rail__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.rail__head .text-link { margin-top: 0; white-space: nowrap; }
.rail__title { display: flex; align-items: center; gap: 12px; font-size: clamp(1.4rem, 1rem + 1.2vw, 1.9rem); font-weight: 780; }
.rail__title::before { content: ""; width: 16px; height: 16px; background: var(--c); transform: rotate(45deg); flex: none; }
.rail__title a { text-decoration: none; color: inherit; }
.rail__title a:hover { text-decoration: underline; text-decoration-color: var(--c); text-underline-offset: 5px; }
.rail__track {
	--edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
	display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 290px); gap: 24px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
	padding: 4px var(--edge) 16px; scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
}
.rail__track > * { scroll-snap-align: start; }

/* ---------- Lentynos (trumpi, archyvas, susiję) ---------- */
.shelf { padding-block: clamp(32px, 5vw, 56px); }
.shelf__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 28px; }

.widget-band { padding-block: 24px; }
.widget__title { font-size: 1rem; margin-bottom: 10px; }

/* ---------- Mygtukas „daugiau“ ---------- */
.more { display: flex; justify-content: center; padding-block: 24px 64px; }
.more__btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 6px;
	background: var(--ink); color: var(--ice); text-decoration: none; font-weight: 700; border: 0;
}
.more__btn:hover { background: var(--kite-ink); color: #fff; }
.more__btn[aria-busy="true"] { opacity: .7; }

.pager { margin-top: 8px; }
.js .pager { display: none; }
.pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding-bottom: 48px; }
.pager .page-numbers { padding: 8px 14px; border: 1px solid var(--rule); border-radius: 6px; text-decoration: none; font-weight: 600; }
.pager .current { background: var(--ink); color: var(--ice); border-color: var(--ink); }

/* ---------- Archyvo antraštė ---------- */
.arch-head { padding-block: 28px 36px; border-bottom: 1px solid var(--rule); margin-bottom: 36px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, var(--ice)), var(--ice)); }
.arch-head__title { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; margin-top: 14px; }
.arch-head__title::before { content: ""; width: .42em; height: .42em; background: var(--c); transform: rotate(45deg); flex: none; }
.arch-head__page { font-size: .45em; color: var(--ink-2); font-weight: 600; letter-spacing: 0; }
.arch-head__desc { font-family: var(--serif); font-size: 1.1rem; max-width: 68ch; margin-top: 12px; color: var(--ink-2); }
.arch-head__desc p + p { margin-top: .6em; }
.arch-head__count { margin-top: 12px; font-size: .9rem; color: var(--ink-2); }

.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px 28px; padding-bottom: 24px; }
@media (min-width: 760px) {
	.feed--first > .card:first-child { grid-column: span 2; }
	.feed--first > .card:first-child .card__title { font-size: clamp(1.5rem, 1rem + 1.2vw, 2rem); }
	.feed--first > .card:first-child .media { aspect-ratio: 16 / 9; clip-path: var(--sail); border-radius: 10px 10px 0 10px; }
}
.empty { padding: 48px 0 80px; display: grid; gap: 20px; justify-items: start; font-size: 1.1rem; }

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

/* ---------- Straipsnis ---------- */
.article__head { max-width: calc(1014px + 2 * var(--gutter)); padding-top: 24px; display: grid; gap: 16px; justify-items: start; }
.article__head .chip { font-size: .9rem; margin-top: 10px; }
.article__title { font-size: clamp(2rem, 1.1rem + 3.2vw, 3.5rem); font-weight: 790; line-height: 1.06; letter-spacing: -0.032em; text-wrap: balance; }
.article__dek { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); line-height: 1.5; color: var(--ink-2); max-width: 64ch; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: .9rem; color: var(--ink-2); padding-top: 6px; }
.byline a { color: var(--ink); font-weight: 650; text-decoration: none; }
.byline a:hover { text-decoration: underline; }
.byline__read { display: inline-flex; align-items: center; gap: 6px; }
.byline__read .icon { width: 16px; height: 16px; color: var(--c); }

.article__hero { max-width: 1120px; margin: 32px auto 0; padding-inline: var(--gutter); }
.article__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px 12px 0 12px; clip-path: var(--sail); background: var(--rule-soft); }
.article__hero figcaption { font-size: .85rem; color: var(--ink-2); margin-top: 10px; max-width: 70ch; }

.article__layout {
	display: grid; grid-template-columns: 230px minmax(0, 720px); justify-content: center;
	gap: clamp(32px, 5vw, 64px); padding-block: 40px 24px;
}
.article__sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
@media (max-width: 1000px) {
	.article__layout { grid-template-columns: minmax(0, 720px); }
	.article__aside .share { display: none; }
	.article__sticky { position: static; }
}

.toc { border-left: 3px solid var(--c, var(--kite)); padding-left: 16px; }
.toc__title { font-weight: 750; font-size: .95rem; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.toc__title::-webkit-details-marker { display: none; }
.toc__title::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.toc[open] .toc__title::after { transform: rotate(-135deg); }
.toc__list { list-style: none; margin-top: 12px; display: grid; gap: 2px; font-size: .9rem; counter-reset: toc; }
.toc__item a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc__item--h3 a { padding-left: 14px; font-size: .86rem; }
.toc__item a:hover { color: var(--ink); text-decoration: underline; }
.toc__item a.is-active { color: var(--ink); font-weight: 700; }

/* Tekstas */
.prose { font-family: var(--serif); font-size: 1.16rem; line-height: 1.78; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--sans); color: var(--ink); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.8rem); font-weight: 760; margin-top: 2.1em; line-height: 1.2; }
.prose h3 { font-size: 1.3rem; font-weight: 740; margin-top: 1.8em; }
.prose h4 { font-size: 1.1rem; font-weight: 740; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--kite-ink); }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--c, var(--kite)); }
.prose ol li::marker { font-family: var(--sans); font-weight: 700; color: var(--c, var(--kite)); }
.prose blockquote, .prose .wp-block-quote {
	margin-inline: 0; padding: 4px 0 4px 1.2em; border-left: 4px solid var(--c, var(--kite));
	font-style: italic; font-size: 1.25rem; line-height: 1.55;
}
.prose blockquote cite { display: block; margin-top: .6em; font-family: var(--sans); font-style: normal; font-size: .9rem; color: var(--ink-2); }
.prose img { border-radius: var(--radius); height: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-caption-text, .prose .wp-element-caption { font-family: var(--sans); font-size: .85rem; color: var(--ink-2); margin-top: 8px; }
.prose hr { border: 0; height: 12px; margin-block: 2.2em; background: radial-gradient(circle, var(--rule) 2px, transparent 2.5px) center / 22px 12px repeat-x; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose th { font-weight: 700; }
.prose .wp-block-table { overflow-x: auto; }
.prose pre, .prose code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }
.prose pre { background: var(--surface); padding: 16px; border-radius: var(--radius); overflow-x: auto; }
.prose .alignwide { margin-inline: calc(-1 * min(120px, 8vw)); max-width: none; }
.prose .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.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 iframe, .prose .wp-block-embed__wrapper iframe { max-width: 100%; }
.prose::after { content: ""; display: table; clear: both; }
.page-links { font-family: var(--sans); display: flex; gap: 8px; }

.article__foot { margin-top: 48px; display: grid; gap: 28px; font-family: var(--sans); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; font-size: .85rem; text-decoration: none; color: var(--ink); }
.tags a:hover { border-color: var(--ink); }
.article__share-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 20px 0; border-block: 1px solid var(--rule); font-size: .95rem; font-weight: 600; }

.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn {
	width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
	border: 1px solid var(--rule); background: transparent; color: var(--ink); text-decoration: none;
}
.share__btn:hover { background: var(--ink); color: var(--ice); border-color: var(--ink); }
.share__btn .icon { width: 18px; height: 18px; }
.share__btn.is-done { background: var(--lagoon); border-color: var(--lagoon); color: #fff; }

.author-box { display: flex; gap: 16px; align-items: flex-start; }
.author-box img { border-radius: 50%; }
.author-box__name { font-weight: 750; }
.author-box__name a { text-decoration: none; }
.author-box__bio { font-family: var(--serif); color: var(--ink-2); margin-top: 4px; }

.related { padding-block: 24px 48px; }

.neighbours { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding-bottom: 56px; }
.neighbours__link { display: grid; gap: 6px; padding: 20px 22px; background: var(--surface); border-radius: var(--radius); text-decoration: none; border: 1px solid var(--rule-soft); }
.neighbours__link--next { text-align: right; }
.neighbours__label { font-size: .8125rem; color: var(--ink-2); }
.neighbours__title { font-weight: 720; font-size: 1.05rem; line-height: 1.3; }
.neighbours__link:hover .neighbours__title { text-decoration: underline; text-decoration-color: var(--kite); text-underline-offset: 4px; }

/* „Siūlome perskaityti“ */
.next-read {
	position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(360px, calc(100vw - 104px));
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; padding: 14px 12px 14px 16px;
	background: var(--surface); color: var(--ink); border-radius: 10px; border-left: 4px solid var(--c, var(--kite));
	box-shadow: 0 18px 40px -12px rgba(6, 18, 25, .35);
	transform: translateY(calc(100% + 24px)); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.next-read.is-visible { transform: none; }
.next-read[hidden] { display: none; }
.next-read__label { grid-column: 1; font-size: .78rem; color: var(--ink-2); font-weight: 600; }
.next-read__link { grid-column: 1; display: flex; gap: 12px; align-items: center; text-decoration: none; }
.next-read__img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex: none; }
.next-read__title { font-weight: 720; line-height: 1.3; font-size: .98rem; }
.next-read__link:hover .next-read__title { text-decoration: underline; }
.next-read__close { grid-column: 2; grid-row: 1 / span 2; align-self: start; width: 32px; height: 32px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.next-read__close:hover { background: var(--rule-soft); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .next-read { transition: none; } }

/* ---------- Mygtukas į viršų (kaito rombas su progreso kontūru) ---------- */
.to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 61; width: 60px; height: 60px;
	display: grid; place-items: center; color: var(--ink); text-decoration: none;
	opacity: 0; transform: translateY(16px); pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.to-top__track { fill: var(--surface); stroke: var(--rule); stroke-width: 2; stroke-linejoin: round; }
.to-top__fill { fill: none; stroke: var(--kite); stroke-width: 3.5; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); }
.to-top .icon { position: relative; width: 22px; height: 22px; }
.to-top:hover .to-top__track { fill: var(--ink); stroke: var(--ink); }
.to-top:hover { color: var(--ice); }
.to-top:focus-visible { outline: none; }
.to-top:focus-visible .to-top__track { stroke: var(--kite); stroke-width: 4; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* ---------- 404 ---------- */
.lost { background: var(--deep); color: var(--deep-ink); padding-block: clamp(48px, 8vw, 96px); }
.lost__inner { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 40px; align-items: center; }
.lost__kite svg { width: 140px; height: auto; transform-origin: 50% 0; }
@media (prefers-reduced-motion: no-preference) { .lost__kite svg { animation: sway 4s ease-in-out infinite alternate; } }
@keyframes sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg) translateY(6px); } }
.lost__title { font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
.lost__text { font-family: var(--serif); font-size: 1.15rem; color: var(--deep-ink-2); margin-top: 12px; max-width: 58ch; }
.lost__cats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; }
.lost .chip { color: var(--deep-ink); font-size: .95rem; }
@media (max-width: 640px) { .lost__inner { grid-template-columns: 1fr; } .lost__kite svg { width: 90px; } }

/* ---------- Poraštė ---------- */
.footer { background: var(--deep); color: var(--deep-ink); margin-top: 24px; }
.footer a { color: var(--deep-ink); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-block: 56px 40px; }
.footer__logo { display: inline-block; line-height: 0; }
.footer__logo svg { height: 40px; width: auto; }
.footer__about p { margin-top: 16px; color: var(--deep-ink-2); max-width: 46ch; font-family: var(--serif); }
.footer__title { font-size: 1rem; font-weight: 750; margin-bottom: 14px; }
.footer__col ul, .footer__col .menu { list-style: none; display: grid; gap: 8px; }
.footer__col a[style]::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--c); transform: rotate(45deg); }
.footer__count { color: var(--deep-ink-2); font-size: .85rem; }
.footer__social { list-style: none; display: flex; gap: 10px; margin-top: 20px; }
.footer__social a { width: 40px; height: 40px; border: 1px solid rgba(169,193,203,.35); border-radius: 50%; display: grid; place-items: center; }
.footer__social a:hover { background: var(--deep-ink); color: var(--deep); text-decoration: none; }
.footer__base { border-top: 1px solid rgba(169,193,203,.22); padding-block: 20px 28px; font-size: .85rem; color: var(--deep-ink-2); }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Spausdinimas ---------- */
@media print {
	.masthead, .footer, .to-top, .next-read, .progress, .article__aside, .article__share-end, .related, .neighbours { display: none !important; }
	body { background: #fff; color: #000; }
	.article__img { clip-path: none; }
}
