/* ==========================================================================
   Horizontas – Rytų Lietuvos naujienos
   Paletė: ežero gelmė, rūkas, nendrių ir dangaus tonai, saulėtekio gintaras.
   ========================================================================== */

@font-face {
	font-family: "Bitter";
	src: url("../fonts/bitter-var.woff") format("woff");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Bitter";
	src: url("../fonts/bitter-italic-var.woff") format("woff");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dmsans-var.woff") format("woff");
	font-weight: 100 1000;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #f6f8f7;
	--surface: #ffffff;
	--mist: #e4ecea;
	--line: #d3dedb;
	--lake: #0f3d45;
	--lake-2: #15505a;
	--ink: #1a2c30;
	--muted: #56676b;
	--teal: #1f6f78;
	--wave: #8fc1c0;
	--sun: #e59a2f;
	--tone: var(--teal);

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

	--wrap: 1200px;
	--gut: clamp(16px, 4vw, 32px);
	--radius: 4px;
	--head-h: 72px;

	--wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8'%3E%3Cpath d='M0 4q6-4 12 0t12 0' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
}

.tone-0 { --tone: #1f6f78; }
.tone-1 { --tone: #5b6e1f; }
.tone-2 { --tone: #9a4f12; }
.tone-3 { --tone: #5e4790; }
.tone-4 { --tone: #2c5e47; }
.tone-5 { --tone: #2f5788; }

/* Bazė
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	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: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--lake); }

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

p { margin: 0; }

button { font: inherit; cursor: pointer; }

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

.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 {
	position: absolute; left: 12px; top: -60px; z-index: 200;
	background: var(--lake); color: #fff; padding: 10px 16px; border-radius: var(--radius);
	text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; color: #fff; }

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

.site-main { display: block; padding-bottom: 72px; }
.site-main:focus { outline: none; }

.ico { flex: none; }

/* Horizonto juosta
   ========================================================================== */

.horizon {
	--sky-text: var(--lake);
	--sky-soft: rgba(15, 61, 69, .28);
	background: linear-gradient(180deg, #d4e6e8 0%, #e8f1f0 100%);
	color: var(--sky-text);
	font-size: .8125rem;
	font-weight: 500;
	transition: background .8s ease, color .8s ease;
}
.horizon[data-phase="night"] {
	--sky-text: #cfe3e2;
	--sky-soft: rgba(207, 227, 226, .3);
	background: linear-gradient(180deg, #0a2a31 0%, #12404a 100%);
}
.horizon[data-phase="dawn"],
.horizon[data-phase="dusk"] {
	--sky-text: #10343b;
	--sky-soft: rgba(16, 52, 59, .3);
	background: linear-gradient(180deg, #9db7c2 0%, #e9c58f 100%);
}
.horizon__in {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	min-height: 52px;
}
.horizon__date { white-space: nowrap; }
.horizon__times { text-align: right; }
.horizon__sky { display: block; width: 240px; height: 48px; overflow: visible; margin-bottom: -4px; }
.horizon__arc { stroke: var(--sky-soft); stroke-width: 1.2; stroke-dasharray: 2 4; }
.horizon__water { stroke: var(--sky-text); stroke-width: 1.2; opacity: .55; }
.horizon__ripple { fill: none; stroke: var(--teal); stroke-width: 1.2; stroke-linecap: round; opacity: .5; }
.horizon[data-phase="night"] .horizon__ripple { stroke: var(--wave); }
.horizon__sun { fill: var(--sun); transition: opacity .6s ease; }
.horizon[data-phase="night"] .horizon__sun { opacity: 0; }

@media (max-width: 1280px) {
	.horizon__extra { display: none; }
}

@media (max-width: 720px) {
	.horizon__in { grid-template-columns: auto 1fr; gap: 8px 12px; padding-block: 6px; }
	.horizon__sky { display: none; }
	.horizon__date { font-weight: 600; }

}

/* Antraštė
   ========================================================================== */

.masthead {
	position: sticky; top: 0; z-index: 50;
	background: rgba(246, 248, 247, .94);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar .masthead { top: 0; } }

.masthead__in {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 28px;
	min-height: var(--head-h);
}

.brand { margin: 0; font-size: 1rem; line-height: 1; }
.brand a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--lake); }
.brand .mark { width: 44px; height: 44px; flex: none; }
.brand__name { display: flex; flex-direction: column; gap: 2px; }
.brand__l1 { font-family: var(--serif); font-weight: 750; font-size: 1.3rem; letter-spacing: -.005em; }
.brand__l2 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.1rem; color: var(--teal); }
.custom-logo-link img { max-height: 56px; width: auto; }

.nav { min-width: 0; }
.nav__list, .nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
	display: block; padding: 8px 0;
	color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
	background: linear-gradient(var(--sun), var(--sun)) left bottom / 0 2px no-repeat;
	transition: background-size .25s ease;
}
.nav a:hover, .nav [aria-current="page"], .nav .current-menu-item > a, .nav .current-menu-ancestor > a, .nav .current-post-ancestor > a {
	color: var(--lake); background-size: 100% 2px;
}

.search-toggle {
	display: grid; place-items: center; width: 44px; height: 44px;
	border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--lake);
}
.search-toggle:hover, .search-toggle[aria-expanded="true"] { background: var(--lake); color: #fff; border-color: var(--lake); }

.searchbar { border-top: 1px solid var(--line); background: var(--surface); padding-block: 16px; }

@media (max-width: 960px) {
	:root { --head-h: 100px; }
	.masthead__in { min-height: 0; }
	.masthead__in { grid-template-columns: 1fr auto; gap: 0 16px; }
	.nav { grid-column: 1 / -1; order: 3; margin-inline: calc(var(--gut) * -1); position: relative; }
	.nav::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 32px; background: linear-gradient(90deg, rgba(246,248,247,0), var(--bg)); pointer-events: none; }
	.nav__list, .nav ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-inline: var(--gut); gap: 20px; }
	.nav__list::-webkit-scrollbar { display: none; }
	.nav a { white-space: nowrap; padding: 6px 0 10px; }
	.masthead__in { padding-top: 10px; }
	.brand .mark { width: 38px; height: 38px; }
	.brand__l1 { font-size: 1.12rem; }
	.brand__l2 { font-size: .98rem; }
}

/* Paieška
   ========================================================================== */

.search { display: flex; gap: 8px; max-width: 640px; }
.search__input {
	flex: 1; min-width: 0; height: 48px; padding: 0 20px;
	border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface);
	font: inherit; color: var(--ink);
}
.search__input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(229, 154, 47, .45); }
.search__btn, .btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
	background: var(--lake); color: #fff; font-weight: 600; text-decoration: none; font-size: .975rem;
}
.search__btn:hover, .btn:hover { background: var(--lake-2); color: #fff; }

/* Sekcijų antraštės su bangos linija
   ========================================================================== */

.sec-head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	padding-bottom: 14px; margin-bottom: 8px; position: relative;
}
.sec-head::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
	background: var(--wave);
	-webkit-mask: var(--wave-mask) repeat-x left center / 24px 8px;
	mask: var(--wave-mask) repeat-x left center / 24px 8px;
}
.catblock .sec-head::after { background: var(--tone); opacity: .55; }
.sec-head__title { font-size: 1.5rem; font-weight: 750; }
.sec-head__title a { color: inherit; text-decoration: none; }
.sec-head__title a:hover { color: var(--tone); }
.sec-head__more { font-size: .9rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.sec-head__more:hover { text-decoration: underline; }

/* Kortelės
   ========================================================================== */

.card { position: relative; }
.card__title { font-weight: 700; }
.card__title a { color: var(--lake); text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }
.card__excerpt { color: var(--muted); margin-top: 8px; font-size: 1rem; line-height: 1.55; }
.card__media { display: block; }

.cat {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: .8125rem; font-weight: 600; color: var(--tone); text-decoration: none; margin-bottom: 8px;
}
.cat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.cat:hover { color: var(--tone); text-decoration: underline; }

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

.thumb {
	display: block; position: relative; overflow: hidden; border-radius: var(--radius);
	aspect-ratio: 16 / 10; background: var(--mist);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .thumb img { transform: scale(1.03); }
.thumb__ph {
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, transparent 0 62%, color-mix(in srgb, var(--tone) 78%, var(--lake)) 62% 100%),
		radial-gradient(circle at 50% 62%, #f0b55a 0 13%, transparent 13.4%),
		linear-gradient(180deg, color-mix(in srgb, var(--tone) 22%, #fff) 0%, color-mix(in srgb, var(--tone) 40%, #fff) 62%);
}
.thumb__ph::after {
	content: ""; position: absolute; left: 0; right: 0; top: 62%; bottom: 0;
	background: rgba(255, 255, 255, .28);
	-webkit-mask: var(--wave-mask) repeat left 4px / 24px 12px;
	mask: var(--wave-mask) repeat left 4px / 24px 12px;
}

/* Pagrindinis straipsnis ir šoninis stulpelis */
.lead-grid {
	display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: 44px; padding-top: 32px;
}
.card--lead .thumb { aspect-ratio: 16 / 9; margin-bottom: 18px; }
.card--lead .card__title { font-size: clamp(1.75rem, 1.15rem + 2.1vw, 2.75rem); line-height: 1.08; letter-spacing: -.012em; font-weight: 780; }
.card--lead .card__excerpt { font-size: 1.0625rem; max-width: 62ch; }

.lead-grid__side { display: flex; flex-direction: column; }
.card--side {
	display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; align-items: start;
	padding: 18px 0; border-bottom: 1px solid var(--line);
}
.card--side:first-child { padding-top: 0; }
.card--side:last-child { border-bottom: 0; }
.card--side .card__media { order: 2; }
.card--side .thumb { aspect-ratio: 1; }
.card--side .card__title { font-size: 1.125rem; line-height: 1.25; }
.card--side .cat { margin-bottom: 6px; }
.card--side .meta { margin-top: 6px; }

/* Stulpeliai: srautas + šoninė juosta */
.cols {
	display: grid; grid-template-columns: minmax(0, 1fr) 320px;
	gap: 56px; padding-top: 56px; align-items: start;
}

.card--row {
	display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px;
	padding: 24px 0; border-bottom: 1px solid var(--line);
}
.card--row .card__title { font-size: 1.375rem; line-height: 1.2; }
.card--row .card__excerpt { max-width: 60ch; }

.stream .card--lead { padding: 8px 0 28px; border-bottom: 1px solid var(--line); }

.more { margin-top: 28px; }

.card--tile .thumb { margin-bottom: 14px; }
.card--tile .card__title { font-size: 1.15rem; line-height: 1.25; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 20px; }

/* Rubrikų blokai */
.catblock { margin-top: 72px; }
.catblock__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 20px; }
.catblock__grid--2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.catblock__grid--3 { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); }
.catblock__grid .card:first-child .card__title { font-size: 1.5rem; line-height: 1.15; }
.catblock__grid .card:first-child .thumb { aspect-ratio: 4 / 3; }

/* Šoninė juosta */
.rail { display: flex; flex-direction: column; gap: 44px; position: sticky; top: calc(var(--head-h) + 24px); }
.rail__title { font-size: 1.2rem; font-weight: 750; padding-bottom: 12px; margin-bottom: 4px; position: relative; }
.rail__title::after {
	content: ""; position: absolute; left: 0; width: 72px; bottom: 0; height: 8px; background: var(--sun);
	-webkit-mask: var(--wave-mask) repeat-x left center / 24px 8px;
	mask: var(--wave-mask) repeat-x left center / 24px 8px;
}
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranked li {
	counter-increment: r; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px;
	padding: 14px 0; border-bottom: 1px solid var(--line);
}
.ranked li:last-child { border-bottom: 0; }
.ranked li::before {
	content: counter(r); font-family: var(--serif); font-weight: 300; font-size: 1.9rem; line-height: 1;
	color: var(--teal);
}
.ranked a { font-family: var(--serif); font-weight: 650; color: var(--lake); text-decoration: none; line-height: 1.3; }
.ranked a:hover { text-decoration: underline; text-decoration-color: var(--sun); }

.rail__block--archive { background: var(--mist); padding: 20px; border-radius: 8px; }
.rail__block--archive .rail__title::after { background: var(--teal); }

.tags { list-style: none; margin: 0; padding: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
	display: inline-block; padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px;
	background: var(--surface); color: var(--ink); font-size: .85rem; text-decoration: none;
}
.tags a:hover { border-color: var(--teal); color: var(--teal); }

/* Archyvai
   ========================================================================== */

.archive-head { padding: 28px 0 8px; }
.archive-head__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 780; letter-spacing: -.012em; margin-top: 8px; position: relative; padding-bottom: 18px; }
.archive-head__title::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 120px; height: 10px; background: var(--tone);
	-webkit-mask: var(--wave-mask) repeat-x left center / 30px 10px;
	mask: var(--wave-mask) repeat-x left center / 30px 10px;
}
.archive-head__desc { max-width: 68ch; color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.archive-head__desc p + p { margin-top: .8em; }
.archive-head__count { margin-top: 14px; color: var(--muted); font-size: .9rem; }
.archive-head__search { margin-top: 20px; }
.archive-head + .cols { padding-top: 24px; }

.page-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 780; padding-top: 32px; }

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

.pager { margin-top: 40px; }
.pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pager .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
	color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.pager .page-numbers.current { background: var(--lake); border-color: var(--lake); color: #fff; }
.pager a.page-numbers:hover { border-color: var(--teal); color: var(--teal); }
.pager .dots { border: 0; background: none; }

.empty { padding: 40px 0; color: var(--muted); }

/* Straipsnis
   ========================================================================== */

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

.article__head { max-width: calc(720px + var(--gut) * 2); padding-top: 28px; }
.article__head .cat { margin-top: 22px; margin-bottom: 12px; font-size: .875rem; }
.article__title {
	font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); line-height: 1.08; font-weight: 800;
	letter-spacing: -.015em;
}
.article__dek { margin-top: 18px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--muted); max-width: 60ch; }

.byline {
	display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; padding-top: 16px;
	border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted);
}
.byline a { color: var(--ink); font-weight: 600; text-decoration: none; }
.byline a:hover { text-decoration: underline; }
.byline__read { display: inline-flex; align-items: center; gap: 6px; }
.byline__read .ico { width: 16px; height: 16px; }

.article__hero { max-width: calc(1120px + var(--gut) * 2); margin: 32px auto 0; }
.article__hero img { width: 100%; border-radius: var(--radius); max-height: 680px; object-fit: cover; }
.article__hero figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); }

.article__grid {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr);
	column-gap: 48px; padding-top: 40px;
}
.article__body { grid-column: 2; min-width: 0; }
.article__aside { grid-column: 1; justify-self: end; width: 100%; max-width: 240px; }
.article__aside .toc { position: sticky; top: calc(var(--head-h) + 28px); }

.toc summary {
	font-size: .875rem; font-weight: 700; color: var(--lake); cursor: pointer; list-style: none;
	display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-weight: 400; font-size: 1.2rem; color: var(--teal); }
.toc[open] summary::after { content: "–"; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a {
	display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent;
	font-size: .875rem; line-height: 1.35; color: var(--muted); text-decoration: none;
}
.toc li.toc__l3 a { padding-left: 26px; font-size: .8125rem; }
.toc li a:hover { color: var(--lake); }
.toc li a.is-active { color: var(--lake); border-left-color: var(--sun); font-weight: 600; }

/* Straipsnio tekstas */
.entry { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.72; color: var(--ink); overflow-wrap: break-word; }
.entry > * + * { margin-top: 1.15em; }
.entry > *:first-child { margin-top: 0; }
.entry h2 { font-size: 1.65rem; font-weight: 750; margin-top: 2em; line-height: 1.2; }
.entry h3 { font-size: 1.3rem; font-weight: 700; margin-top: 1.7em; line-height: 1.25; }
.entry h4 { font-size: 1.1rem; font-weight: 700; margin-top: 1.5em; }
.entry h2 + *, .entry h3 + *, .entry h4 + * { margin-top: .6em; }
.entry a { color: var(--teal); text-decoration-thickness: 1px; }
.entry a:hover { text-decoration-thickness: 2px; text-decoration-color: var(--sun); }
.entry strong { font-weight: 700; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: .4em; }
.entry li::marker { color: var(--teal); }
.entry blockquote {
	margin-inline: 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--sun);
	font-style: italic; font-size: 1.25rem; color: var(--lake);
}
.entry blockquote cite { display: block; margin-top: .6em; font-style: normal; font-family: var(--sans); font-size: .9rem; color: var(--muted); }
.entry img { border-radius: var(--radius); }
.entry figure { margin-inline: 0; }
.entry figcaption, .entry .wp-caption-text, .entry .wp-element-caption {
	font-family: var(--sans); font-size: .85rem; line-height: 1.45; color: var(--muted); margin-top: 10px;
}
.entry hr { border: 0; height: 10px; background: var(--wave); width: 96px; margin: 2.5em auto;
	-webkit-mask: var(--wave-mask) repeat-x center / 24px 10px; mask: var(--wave-mask) repeat-x center / 24px 10px; }
.entry table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .95rem; line-height: 1.45; }
.entry th, .entry td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry th { background: var(--mist); color: var(--lake); }
.entry pre { overflow-x: auto; background: var(--mist); padding: 16px; border-radius: var(--radius); font-size: .9rem; }
.entry code { font-size: .9em; background: var(--mist); padding: .1em .3em; border-radius: 3px; }
.entry iframe { width: 100%; border: 0; }
.entry .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.entry .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.entry .aligncenter { margin-inline: auto; }
.entry .alignwide { margin-inline: min(-80px, calc((720px - 100vw) / 2 + var(--gut))); max-width: none; }
.entry .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.entry .alignfull img { border-radius: 0; }
.entry::after { content: ""; display: table; clear: both; }
.entry .wp-caption { max-width: 100%; }
.entry .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.entry .gallery-item { margin: 0; }

.page-links { margin-top: 32px; display: flex; gap: 8px; font-weight: 600; }

.tags--article { margin-top: 36px; }

.share { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.share__title { font-weight: 700; color: var(--lake); font-size: .95rem; margin-bottom: 12px; }
.share ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
	display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
	color: var(--ink); font-size: .875rem; font-weight: 600; text-decoration: none;
}
.pill .ico { width: 16px; height: 16px; }
.pill:hover { border-color: var(--teal); color: var(--teal); }
.pill.is-done { border-color: var(--teal); background: var(--teal); color: #fff; }

.related { margin-top: 72px; }
.latest-strip { margin-top: 64px; }

.postnav { margin-top: 56px; }
.postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.postnav .nav-next { text-align: right; grid-column: 2; }
.postnav a {
	display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; height: 100%;
	background: var(--mist); border-radius: 8px; text-decoration: none;
}
.postnav a:hover { background: #d9e5e2; }
.postnav__label { font-size: .8125rem; font-weight: 600; color: var(--teal); }
.postnav__title { font-family: var(--serif); font-weight: 700; color: var(--lake); font-size: 1.1rem; line-height: 1.3; }

/* „Skaitykite toliau“ pasiūlymas */
.next-up {
	position: fixed; right: 84px; bottom: 20px; z-index: 60; width: min(360px, calc(100vw - 108px));
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: start;
	padding: 14px 10px 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
	box-shadow: 0 18px 40px -12px rgba(15, 61, 69, .35);
	opacity: 0; transform: translateY(16px); pointer-events: none;
	transition: opacity .35s ease, transform .35s ease;
}
.next-up.is-in { opacity: 1; transform: none; pointer-events: auto; }
.next-up__label { grid-column: 1; font-size: .75rem; font-weight: 700; color: var(--teal); }
.next-up__link { grid-column: 1; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; }
.next-up__link .thumb { aspect-ratio: 1; }
.next-up__title { font-family: var(--serif); font-weight: 700; color: var(--lake); font-size: .98rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.next-up__link:hover .next-up__title { text-decoration: underline; text-decoration-color: var(--sun); }
.next-up__close { grid-column: 2; grid-row: 1 / span 2; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 50%; }
.next-up__close:hover { background: var(--mist); color: var(--lake); }

/* Mygtukas į viršų */
.totop {
	position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 52px; height: 52px;
	display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
	background: var(--lake); color: #fff; box-shadow: 0 10px 24px -8px rgba(15, 61, 69, .55);
	opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
	transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--lake-2); }
.totop .ico { width: 22px; height: 22px; position: relative; }
.totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.totop__ring circle { fill: none; stroke-width: 3; stroke: rgba(255, 255, 255, .16); }
.totop__ring .totop__fill { stroke: var(--sun); stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; }

/* 404 */
.notfound__head { max-width: 680px; padding: 48px 0 24px; display: flex; flex-direction: column; gap: 20px; }
.notfound__head .page-title { padding-top: 0; }
.notfound__art { width: 240px; height: 90px; }
.notfound__art .horizon__arc { stroke: var(--wave); stroke-width: 1.5; stroke-dasharray: 3 5; }
.notfound__art .horizon__water { stroke: var(--lake); stroke-width: 1.5; opacity: .5; }
.lede { font-size: 1.15rem; color: var(--muted); }
.notfound section { margin-top: 48px; }

/* Poraštė
   ========================================================================== */

.site-footer { color: #cfe3e2; margin-top: 24px; }
.site-footer__wave { display: block; width: 100%; height: 48px; fill: var(--lake); margin-bottom: -1px; }
.site-footer__body { background: var(--lake); padding: 32px 0 28px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.site-footer .brand a { color: #fff; }
.site-footer .brand__l2 { color: var(--wave); }
.site-footer__about p { margin-top: 18px; max-width: 46ch; line-height: 1.6; }
.site-footer__rss { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__h { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; line-height: 1.4; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer a:hover { color: var(--sun); text-decoration-color: var(--sun); }
.site-footer__base { margin-top: 40px; font-size: .85rem; color: #9fc0c1; }
.site-footer__base p { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }

/* Prisitaikymas
   ========================================================================== */

@media (max-width: 1100px) {
	.cols { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
	.card--row { grid-template-columns: 220px minmax(0, 1fr); }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.catblock__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.article__grid { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); column-gap: 40px; }
	.article__grid:not(.has-toc) { grid-template-columns: minmax(0, 1fr); max-width: calc(720px + var(--gut) * 2); }
	.article__grid:not(.has-toc) .article__body { grid-column: 1; }
	.article__grid.has-toc .article__body { grid-column: 2; }
	.entry .alignwide { margin-inline: 0; }
}

@media (max-width: 860px) {
	.lead-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; }
	.cols { grid-template-columns: 1fr; padding-top: 40px; }
	.rail { position: static; }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.article__grid, .article__grid.has-toc { grid-template-columns: minmax(0, 1fr); max-width: calc(720px + var(--gut) * 2); padding-top: 28px; }
	.article__grid .article__body, .article__grid.has-toc .article__body { grid-column: 1; }
	.article__aside { grid-column: 1; justify-self: stretch; max-width: none; margin-bottom: 28px; }
	.article__aside .toc { position: static; background: var(--mist); border-radius: 8px; padding: 14px 16px 10px; }
	.article__aside .toc summary { padding-bottom: 0; }
	.article__aside .toc[open] summary { padding-bottom: 10px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__about { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
	body { font-size: 1rem; }
	.card--row { grid-template-columns: minmax(0, 1fr) 104px; gap: 16px; padding: 18px 0; }
	.card--row .card__media { order: 2; }
	.card--row .thumb { aspect-ratio: 1; }
	.card--row .card__title { font-size: 1.125rem; }
	.card--row .card__excerpt { display: none; }
	.grid-3, .grid-4, .catblock__grid { grid-template-columns: 1fr; gap: 0; }
	.grid-3 .card--tile, .grid-4 .card--tile, .catblock__grid .card--tile {
		display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line);
	}
	.grid-3 .card--tile .card__media, .grid-4 .card--tile .card__media, .catblock__grid .card--tile .card__media { order: 2; }
	.grid-3 .card--tile .thumb, .grid-4 .card--tile .thumb, .catblock__grid .card--tile .thumb { aspect-ratio: 1; margin: 0; }
	.catblock__grid--2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.catblock__grid--3 { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); }
.catblock__grid .card:first-child .card__title { font-size: 1.15rem; }
	.catblock__grid .card:first-child .thumb { aspect-ratio: 1; }
	.catblock { margin-top: 52px; }
	.entry { font-size: 1.125rem; line-height: 1.7; }
	.entry .alignleft, .entry .alignright { float: none; margin: 1em 0; max-width: 100%; }
	.entry table { display: block; overflow-x: auto; }
	.postnav .nav-links { grid-template-columns: 1fr; }
	.postnav .nav-next { grid-column: 1; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.next-up { left: 12px; right: 76px; bottom: 14px; width: auto; }
	.totop { right: 12px; bottom: 14px; }
	.search__btn { padding: 0 18px; }
	.crumbs [aria-current] { max-width: 22ch; }
}

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

@media print {
	.horizon, .masthead, .site-footer, .rail, .share, .related, .latest-strip, .postnav, .totop, .next-up, .progress, .article__aside { display: none !important; }
	body { background: #fff; }
	.article__grid { display: block; }
	.entry a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
