/*
Theme Name: Sostinė
Theme URI: https://www.vuhackathon.lt/
Author: Vilnius – Lietuvos sostinė
Description: Išskirtinė, greita ir SEO optimizuota naujienų portalo tema Vilniui. Veikia be papildomų įskiepių: įtaisyti meta aprašymai, Open Graph, schema.org (NewsArticle, BreadcrumbList), turinys (TOC), skaitymo progresas, „Skaityti vėliau“ sąrašas, tamsus režimas, mygtukas „į viršų“, populiariausių straipsnių skaitiklis. Be jokių formų.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sostine
Tags: news, blog, two-columns, custom-menu, featured-images, translation-ready, accessibility-ready, dark-mode
*/

/* ==========================================================================
   1. Šriftai (savo serveryje, be Google Fonts – greičiau ir atitinka BDAR)
   ========================================================================== */
@font-face {
	font-family: "Sostine Display";
	src: url("assets/fonts/bitter-var.woff") format("woff");
	font-weight: 500 850;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Sostine Sans";
	src: url("assets/fonts/dmsans-var.woff") format("woff");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   2. Kintamieji
   ========================================================================== */
:root {
	--paper: #F4EFE7;
	--surface: #FFFCF7;
	--surface-2: #EDE6DA;
	--ink: #15171E;
	--ink-2: #33353D;
	--muted: #67645E;
	--line: #DFD6C8;
	--terra: #C8472B;
	--accent-ink: #A93A20;
	--amber: #E9A23B;
	--teal: #0F5B68;
	--night: #111318;
	--night-ink: #EEE8DE;
	--night-muted: #A9A398;

	--display: "Sostine Display", "Iowan Old Style", "Charter", Cambria, Georgia, serif;
	--sans: "Sostine Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;

	--wrap: 1240px;
	--gutter: clamp(16px, 3.2vw, 32px);
	--r: 22px;
	--r-sm: 14px;
	--shape: 4px var(--r) var(--r) var(--r);
	--shape-sm: 3px var(--r-sm) var(--r-sm) var(--r-sm);
	--shadow: 0 1px 0 rgba(21, 23, 30, .05), 0 18px 40px -20px rgba(21, 23, 30, .35);
	--head-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--c: var(--terra);
	color-scheme: light;
}

[data-theme="dark"] {
	--paper: #0F1116;
	--surface: #171A21;
	--surface-2: #1E222B;
	--ink: #EEE8DE;
	--ink-2: #D3CDC2;
	--muted: #A29C91;
	--line: #2A2F39;
	--terra: #F0704F;
	--accent-ink: #F38D70;
	--amber: #F2B544;
	--teal: #59B8C6;
	--night: #08090C;
	--shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .8);
	color-scheme: dark;
}

/* ==========================================================================
   3. Pagrindai
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "kern", "liga";
}

.site-main { display: block; overflow-x: clip; outline: none; }

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

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }

p { margin: 0; }

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

::selection { background: var(--amber); color: #15171E; }

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

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

.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: 12px; top: -60px; z-index: 300;
	background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--shape-sm);
	font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

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

.btn {
	display: inline-flex; align-items: center; gap: 10px;
	background: var(--ink); color: var(--paper);
	padding: 13px 22px; border-radius: var(--shape-sm);
	font-weight: 700; text-decoration: none;
	transition: transform .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--terra); color: #fff; }

.only-dark { display: none; }
[data-theme="dark"] .only-dark { display: inline-flex; }
[data-theme="dark"] .only-light { display: none; }

/* ==========================================================================
   4. Viršutinė juosta
   ========================================================================== */
.topbar {
	background: var(--night);
	color: var(--night-muted);
	font-family: var(--mono);
	font-size: .72rem;
	letter-spacing: .04em;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.topbar p { display: flex; align-items: center; gap: 10px; }
.topbar__pulse {
	width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
	box-shadow: 0 0 0 0 rgba(233, 162, 59, .6); animation: pulse 2.4s infinite;
}
.topbar__sep { opacity: .4; }
[data-today] { color: var(--night-ink); }
.topbar__social { display: inline-flex; color: var(--night-muted); transition: color .2s; }
.topbar__social:hover { color: var(--amber); }
.topbar__social .icon { width: 15px; height: 15px; }

@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(233, 162, 59, .55); }
	70% { box-shadow: 0 0 0 8px rgba(233, 162, 59, 0); }
	100% { box-shadow: 0 0 0 0 rgba(233, 162, 59, 0); }
}

/* ==========================================================================
   5. Antraštė (masthead)
   ========================================================================== */
.masthead {
	position: sticky; top: 0; z-index: 80;
	background: color-mix(in srgb, var(--paper) 86%, transparent);
	-webkit-backdrop-filter: saturate(1.5) blur(14px);
	backdrop-filter: saturate(1.5) blur(14px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .3s;
}
.masthead.is-scrolled { box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .35); }
.admin-bar .masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar .masthead { top: 0; } }

.masthead__inner {
	display: flex; align-items: center; gap: clamp(12px, 2vw, 28px);
	height: var(--head-h);
	transition: height .3s var(--ease);
}
.masthead.is-scrolled .masthead__inner { height: 62px; }

/* Logotipas */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: 44px; height: 44px; overflow: visible; }
.brand__v { stroke: var(--paper); }
.brand__ropes { stroke: var(--ink); }
.brand__basket { fill: var(--ink); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.62rem; letter-spacing: -.03em; }
.brand__sub {
	font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .24em;
	text-transform: uppercase; color: var(--accent-ink); margin-top: 5px;
}
.brand:hover .brand__mark { animation: float 2.6s var(--ease) infinite; }
@keyframes float {
	0%, 100% { transform: translateY(0) rotate(0); }
	50% { transform: translateY(-4px) rotate(-3deg); }
}

/* Pagrindinis meniu */
.primary-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.primary-nav .menu { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.primary-nav a {
	display: block; padding: 8px 13px; border-radius: 999px;
	font-weight: 600; font-size: .94rem; text-decoration: none; white-space: nowrap;
	transition: background .2s, color .2s;
}
.primary-nav a:hover { background: color-mix(in srgb, var(--c, var(--ink)) 12%, transparent); }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current-post-ancestor > a { background: var(--ink); color: var(--paper); }

.masthead__actions { display: flex; gap: 8px; margin-left: auto; flex: none; }
.icon-btn {
	position: relative; display: inline-grid; place-items: center;
	width: 42px; height: 42px; border-radius: 50%;
	border: 1px solid var(--line); background: var(--surface); color: var(--ink);
	transition: border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.icon-btn__badge {
	position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px;
	border-radius: 999px; background: var(--amber); color: #15171E;
	font: 700 .64rem/19px var(--mono); text-align: center;
}
.icon-btn--menu { display: none; }

@media (max-width: 1080px) {
	.primary-nav { display: none; }
	.icon-btn--menu { display: inline-grid; }
}

/* Mobilusis meniu */
.nav-panel {
	position: fixed; inset: var(--head-h) 0 0; z-index: 79;
	background: var(--paper); overflow-y: auto;
	padding-block: 24px 48px;
	animation: panel-in .3s var(--ease);
}
.nav-panel[hidden] { display: none; }
.nav-panel__menu { list-style: none; margin: 0; padding: 0; }
.nav-panel__menu a {
	display: block; padding: 12px 0; border-bottom: 1px solid var(--line);
	font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 7vw, 2.4rem);
	text-decoration: none; letter-spacing: -.02em;
}
.nav-panel__label {
	margin: 32px 0 14px; font-family: var(--mono); font-size: .72rem;
	letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
@keyframes panel-in { from { opacity: 0; transform: translateY(-8px); } }

/* ==========================================================================
   6. Naujienų juosta (ticker)
   ========================================================================== */
.ticker { border-bottom: 1px solid var(--line); background: var(--surface); }
.ticker__inner { display: flex; align-items: center; gap: 16px; height: 46px; }
.ticker__label {
	display: inline-flex; align-items: center; gap: 8px; flex: none;
	background: var(--terra); color: #fff; padding: 5px 12px; border-radius: 3px 12px 12px 12px;
	font: 700 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.ticker__dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ticker__viewport {
	flex: 1; overflow: hidden; min-width: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; gap: 40px; margin: 0; padding: 0 40px 0 0; list-style: none; }
.ticker__list a { display: inline-flex; gap: 10px; align-items: baseline; text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.ticker__list a:hover { color: var(--accent-ink); }
.ticker__list time { font-family: var(--mono); font-size: .72rem; color: var(--accent-ink); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   7. Kortelės
   ========================================================================== */
.card { position: relative; display: grid; align-content: start; gap: 14px; min-width: 0; }
.card__body { display: grid; gap: 8px; align-content: start; min-width: 0; }

.media {
	position: relative; overflow: hidden; border-radius: var(--shape);
	background: var(--surface-2); isolation: isolate;
}
.card__media { aspect-ratio: 3 / 2; }
.card__media img, .card__media .ph {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .6s var(--ease), filter .4s;
}
.card:hover .card__media img { transform: scale(1.045); }

/* Vieta be nuotraukos */
.ph {
	display: grid; place-items: center; align-content: center; gap: 10px;
	background:
		radial-gradient(circle at 75% 20%, rgba(255, 255, 255, .18), transparent 45%),
		linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 55%, #000));
	color: #fff;
}
.ph .brand__mark { width: 28%; max-width: 90px; height: auto; }
.ph .brand__v { stroke: color-mix(in srgb, var(--c) 70%, #000); }
.ph .brand__ropes { stroke: #fff; }
.ph .brand__basket { fill: #fff; }
.ph__label { font: 600 .68rem var(--mono); letter-spacing: .18em; text-transform: uppercase; opacity: .85; padding-inline: 12px; text-align: center; }

.stretched { text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title { font-size: 1.2rem; font-weight: 750; letter-spacing: -.012em; }
.card__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease); }
.card:hover .card__title a { background-size: 100% 1.5px; }

.kicker {
	position: relative; z-index: 2; justify-self: start;
	display: inline-block; padding: 3px 9px;
	background: var(--c); color: #fff; border-radius: 3px 10px 10px 10px;
	font: 700 .66rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase;
	text-decoration: none; transition: filter .2s;
}
.kicker:hover { filter: brightness(1.12); }

.card__excerpt {
	color: var(--muted); font-size: .95rem; line-height: 1.55;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font: .72rem/1.4 var(--mono); letter-spacing: .02em; }
.meta__dot { opacity: .6; }

.new-badge {
	position: relative; z-index: 2; justify-self: start;
	display: inline-flex; align-items: center; gap: 6px;
	font: 700 .62rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
}
.new-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: blink 1.6s infinite; }

/* Išsaugojimo mygtukas */
.save-btn {
	display: inline-flex; align-items: center; gap: 8px; z-index: 3;
	border: 1px solid var(--line); background: var(--surface); color: var(--ink);
	transition: transform .2s var(--ease), background .2s, color .2s;
}
.save-btn .icon { width: 18px; height: 18px; }
.save-btn[aria-pressed="true"] .icon path { fill: currentColor; }
.save-btn--card {
	position: absolute; top: 10px; right: 10px;
	width: 38px; height: 38px; justify-content: center; border-radius: 50%;
	border: 0; background: color-mix(in srgb, var(--surface) 88%, transparent);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	opacity: 0; transform: translateY(-4px);
}
.save-btn--card .save-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.card:hover .save-btn--card, .save-btn--card:focus-visible, .save-btn--card[aria-pressed="true"] { opacity: 1; transform: none; }
.save-btn--card[aria-pressed="true"] { background: var(--amber); color: #15171E; }
@media (hover: none) { .save-btn--card { opacity: 1; transform: none; } }
.save-btn--pill { padding: 8px 14px; border-radius: 999px; font: 600 .8rem var(--sans); }
.save-btn--pill:hover { border-color: var(--ink); }
.save-btn--pill[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #15171E; }

/* Variantas: pagrindinis (lead) */
.card--lead { gap: 0; }
.card--lead .card__media { aspect-ratio: 16 / 10; border-radius: 4px 28px 28px 28px; }
.card--lead .card__body {
	position: relative; z-index: 2;
	margin: -96px 0 0 clamp(14px, 4vw, 48px);
	padding: clamp(18px, 2.6vw, 32px);
	background: var(--surface); border-radius: var(--shape);
	border-top: 4px solid var(--c); box-shadow: var(--shadow);
	gap: 12px;
}
.card--lead .card__title { font-size: clamp(1.55rem, 2.6vw, 2.35rem); line-height: 1.08; letter-spacing: -.025em; }
.card--lead .card__excerpt { font-size: 1.04rem; -webkit-line-clamp: 3; color: var(--ink-2); }

/* Variantas: numeruotas sąrašas */
.card--list { grid-template-columns: 1fr; }
.card--list .card__body { grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 6px; }
.card--list .card__num { grid-row: 1 / span 3; }
.card--list .kicker, .card--list .card__title, .card--list .meta { grid-column: 2; }
.card--list .new-badge { grid-column: 2; }
.card--list .card__title { font-size: 1.1rem; line-height: 1.25; }
.card__num {
	font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: .9;
	color: color-mix(in srgb, var(--c) 78%, var(--paper));
	font-variant-numeric: lining-nums tabular-nums;
}

/* Variantas: išskirtinė (feature) */
.card--feature .card__media { aspect-ratio: 16 / 10; }
.card--feature .card__title { font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.1; }
.card--feature .card__excerpt { -webkit-line-clamp: 3; }

/* Variantas: eilutė (row) */
.card--row { grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 16px; }
.card--row .card__media { aspect-ratio: 1; border-radius: var(--shape-sm); }
.card--row .card__title { font-size: 1.02rem; line-height: 1.28; }
.card--row .kicker { font-size: .6rem; }

/* Variantas: tamsus (populiariausi) */
.card--dark .card__num { font-size: 3.4rem; color: var(--amber); margin-bottom: 4px; }
.card--dark .card__title { font-size: 1.12rem; color: var(--night-ink); line-height: 1.25; }
.card--dark .meta { color: var(--night-muted); }

/* ==========================================================================
   8. Sekcijos
   ========================================================================== */
.hero, .topics, .cat-block, .feed, .listing { margin-block: clamp(36px, 6vw, 76px); }

.sec-head {
	display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 16px;
	border-top: 2px solid var(--ink); padding-top: 14px; margin-bottom: clamp(20px, 3vw, 32px);
	position: relative;
}
.sec-head::before { content: ""; position: absolute; top: -2px; left: 0; width: 64px; height: 6px; background: var(--c, var(--terra)); border-radius: 0 0 6px 0; }
.sec-head__num { font: 700 .78rem var(--mono); color: var(--accent-ink); letter-spacing: .08em; padding-top: 6px; }
.sec-head__title { font-size: clamp(1.55rem, 2.8vw, 2.35rem); letter-spacing: -.025em; }
.sec-head__more {
	display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
	font: 600 .78rem var(--mono); text-decoration: none; color: var(--ink);
	padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
	transition: border-color .2s, gap .2s;
}
.sec-head__more:hover { border-color: var(--ink); gap: 10px; }
.sec-head__more .icon { width: 16px; height: 16px; }

/* Pagrindinė sekcija */
.hero { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(24px, 4vw, 44px); }
.hero__label {
	display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
	font: 700 .74rem var(--mono); letter-spacing: .14em; text-transform: uppercase;
	padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.hero__label-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--terra); }
.hero__items { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.hero__items > li { padding-block: 16px; border-bottom: 1px solid var(--line); }
.hero__items > li:last-child { border-bottom: 0; }

/* Temos */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
	background: var(--surface); font-weight: 600; font-size: .9rem; text-decoration: none;
	transition: border-color .2s, transform .2s var(--ease), background .2s;
}
.chip:hover { border-color: var(--c); transform: translateY(-2px); }
.chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.chip__count { font: .7rem var(--mono); color: var(--muted); }
.chip.is-current { background: var(--c); border-color: var(--c); color: #fff; }
.chip.is-current .chip__dot { background: #fff; }
.chip.is-current .chip__count { color: rgba(255, 255, 255, .8); }

/* Temų blokai */
.cat-block__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 3.6vw, 48px); }
.cat-block--flip .cat-block__feature { order: 2; }
.cat-block__stack { display: grid; gap: 0; align-content: start; }
.cat-block__stack > .card { padding-block: 18px; border-bottom: 1px solid var(--line); }
.cat-block__stack > .card:first-child { padding-top: 0; }
.cat-block__stack > .card:last-child { border-bottom: 0; }

/* Juostos */
.band { padding-block: clamp(44px, 7vw, 88px); margin-block: clamp(36px, 6vw, 76px); }
.band--dark { background: var(--night); color: var(--night-ink); }
.band--dark .sec-head { border-top-color: rgba(238, 232, 222, .85); }
.band--dark .sec-head__num { color: var(--amber); }
.band--dark .sec-head::before { background: var(--amber); }
.band--tint { background: color-mix(in srgb, var(--teal) 8%, var(--paper)); }
.band__lead { margin: -12px 0 28px; color: var(--muted); max-width: 60ch; }
.feed + .band, .band + .band { margin-top: 0; }
.site-main > section.band:last-of-type { margin-bottom: 0; }

.popular { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; }
.popular > li { padding: 4px 22px 4px 22px; border-left: 1px solid rgba(238, 232, 222, .14); }
.popular > li:first-child { padding-left: 0; border-left: 0; }

/* Tinklelis */
.grid { display: grid; gap: clamp(28px, 3.4vw, 44px) clamp(18px, 2.4vw, 30px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.band--tint .card--row { background: var(--surface); padding: 14px; border-radius: var(--shape); }

/* Puslapiavimas */
.pager { margin-top: clamp(36px, 5vw, 56px); }
.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pager .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 46px; height: 46px; padding: 0 14px; border-radius: 3px 14px 14px 14px;
	border: 1px solid var(--line); background: var(--surface);
	font: 600 .9rem var(--mono); text-decoration: none; transition: border-color .2s;
}
.pager a.page-numbers:hover { border-color: var(--ink); }
.pager .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager .dots { border: 0; background: none; }
.pager .icon { width: 16px; height: 16px; }

/* ==========================================================================
   9. Archyvai
   ========================================================================== */
.archive-head {
	padding-block: clamp(28px, 5vw, 56px) clamp(20px, 3vw, 32px);
	background:
		radial-gradient(1200px 300px at 90% -10%, color-mix(in srgb, var(--c, var(--terra)) 16%, transparent), transparent 70%);
	border-bottom: 1px solid var(--line);
}
.archive-head__label { margin-top: 18px; font: 700 .74rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--c, var(--accent-ink)); }
[data-theme="dark"] .archive-head__label { color: var(--amber); }
.archive-head__title { font-size: clamp(2.2rem, 5.4vw, 4.3rem); letter-spacing: -.035em; line-height: 1.02; margin-top: 8px; }
.archive-head__page { display: block; font: 600 .9rem var(--mono); color: var(--muted); letter-spacing: 0; margin-top: 10px; }
.archive-head__desc { margin-top: 14px; max-width: 66ch; color: var(--ink-2); font-size: 1.08rem; }
.archive-head__desc p + p { margin-top: .8em; }
.archive-head__count { margin-top: 14px; font: .78rem var(--mono); color: var(--muted); }
.archive-topics { margin-top: 20px; }
.archive-topics .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
.archive-topics .chips::-webkit-scrollbar { display: none; }
.archive-topics .chip { white-space: nowrap; }
.listing { margin-top: clamp(24px, 4vw, 40px); }
.listing__lead { margin-bottom: clamp(36px, 5vw, 56px); }
.listing__lead .card--lead { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 48px); }
.listing__lead .card--lead .card__body { margin: 0; box-shadow: none; background: transparent; padding: 0; border-top: 0; }
.empty { padding: 32px 0; }
.empty__title { font-family: var(--display); font-weight: 800; font-size: 1.6rem; margin-bottom: 6px; }

/* Naršymo kelias */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font: .74rem var(--mono); color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   10. Straipsnis
   ========================================================================== */
.progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 120; pointer-events: none; }
.admin-bar .progress { top: 32px; }
.progress__bar {
	display: block; height: 100%; width: 100%;
	background: linear-gradient(90deg, var(--amber), var(--terra));
	transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

.article-head { padding-top: clamp(22px, 4vw, 44px); }
.article-head__inner { display: grid; gap: 16px; justify-items: start; max-width: 1040px; }
.article-head .kicker { font-size: .72rem; padding: 4px 11px; margin-top: 4px; }
.article-title { font-size: clamp(2.05rem, 4.8vw, 3.7rem); line-height: 1.05; letter-spacing: -.03em; max-width: 24ch; }
.article-dek {
	font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.5; color: var(--ink-2);
	max-width: 62ch; padding-left: 18px; border-left: 4px solid var(--c);
}
.article-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; width: 100%;
	padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line);
	font: .78rem var(--mono); color: var(--muted);
}
.article-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.article-meta__item .icon { width: 16px; height: 16px; }
.article-meta__actions { margin-left: auto; }
.byline { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.byline__avatar {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50% 50% 50% 4px;
	background: var(--c); color: #fff; font: 800 .82rem var(--sans); letter-spacing: .02em;
}
.byline:hover .byline__name { text-decoration: underline; }

.article-hero { margin-top: clamp(22px, 3.5vw, 36px); margin-bottom: 0; }
.article-hero__media { border-radius: 4px 28px 28px 28px; }
.article-hero__media img { width: 100%; max-height: 680px; object-fit: cover; view-transition-name: hero-img; }
.article-hero figcaption { padding-top: 10px; font: .74rem var(--mono); color: var(--muted); }

.article-layout {
	display: grid; grid-template-columns: 220px minmax(0, 720px); justify-content: center;
	gap: clamp(32px, 5vw, 80px); margin-top: clamp(28px, 4vw, 52px); margin-bottom: clamp(40px, 6vw, 72px);
}
.article-aside__sticky { position: sticky; top: calc(var(--head-h) + 28px); display: grid; gap: 28px; }
.admin-bar .article-aside__sticky { top: calc(var(--head-h) + 60px); }

/* Turinys (TOC) */
.toc__title, .toc-mobile summary { font: 700 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.toc__title { margin-bottom: 12px; }
.toc__list { list-style: none; margin: 0; padding: 0; max-height: 58vh; overflow-y: auto; scrollbar-width: thin; }
.toc__item a {
	display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line);
	color: var(--muted); font-size: .88rem; line-height: 1.35; text-decoration: none;
	transition: color .2s, border-color .2s;
}
.toc__item--h3 a { padding-left: 28px; font-size: .82rem; }
.toc__item a:hover { color: var(--ink); }
.toc__item a.is-active { color: var(--ink); border-left-color: var(--c); font-weight: 600; }
.toc-mobile { display: none; margin-bottom: 28px; border: 1px solid var(--line); border-radius: var(--shape); background: var(--surface); }
.toc-mobile summary { padding: 14px 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.toc-mobile[open] summary::after { content: "–"; }
.toc-mobile .toc__list { padding: 0 18px 14px; max-height: none; }

/* Dalijimasis */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__label { font: 700 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-right: 6px; }
.share__btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
	font-size: .84rem; font-weight: 600; text-decoration: none; color: var(--ink);
	transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.share__btn .icon { width: 17px; height: 17px; }
.share__btn:hover { transform: translateY(-2px); border-color: currentColor; }
.share__btn--facebook:hover { color: #1877F2; }
.share__btn--linkedin:hover { color: #0A66C2; }
.share--rail { display: grid; grid-template-columns: repeat(4, 40px); gap: 8px; }
.share--rail .share__btn { width: 40px; height: 40px; padding: 0; justify-content: center; }
.share--rail .share__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.share--bar { margin-top: 32px; padding-block: 18px; border-block: 1px solid var(--line); }

/* Straipsnio tekstas */
.entry-content { font-size: clamp(1.06rem, 1rem + .28vw, 1.17rem); line-height: 1.78; color: var(--ink); overflow-wrap: break-word; }
.entry-content > * + * { margin-top: 1.3em; }
.entry-content > *:first-child { margin-top: 0; }
.article:not(.article--page) .entry-content > p:first-of-type::first-letter {
	float: left; font-family: var(--display); font-weight: 800; font-size: 4.3em; line-height: .8;
	padding: .07em .1em 0 0; color: var(--c);
}
.entry-content h2, .entry-content h3, .entry-content h4 { scroll-margin-top: calc(var(--head-h) + 24px); }
.entry-content h2 { position: relative; font-size: clamp(1.5rem, 2.4vw, 1.95rem); margin-top: 2.1em; padding-top: .7em; letter-spacing: -.02em; }
.entry-content h2::before { content: ""; position: absolute; top: 0; left: 0; width: 42px; height: 4px; border-radius: 4px; background: var(--c); }
.entry-content h3 { font-size: clamp(1.25rem, 1.8vw, 1.45rem); margin-top: 1.8em; }
.entry-content h4 { font-size: 1.12rem; margin-top: 1.6em; }
.entry-content h2 + *, .entry-content h3 + *, .entry-content h4 + * { margin-top: .7em; }
.entry-content a { color: var(--accent-ink); text-decoration-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content strong { font-weight: 700; color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 1.35em; }
.entry-content li + li { margin-top: .45em; }
.entry-content ul li::marker { color: var(--c); }
.entry-content ol li::marker { color: var(--c); font-family: var(--mono); font-weight: 700; font-size: .9em; }
.entry-content blockquote {
	position: relative; margin-inline: 0; padding: 1.3em 1.5em 1.3em 3.4em;
	background: var(--surface); border-radius: var(--shape);
	font-family: var(--display); font-size: 1.18em; line-height: 1.5; font-weight: 600;
}
.entry-content blockquote::before {
	content: "„"; position: absolute; left: .45em; top: -.05em;
	font-size: 3.6em; line-height: 1; color: var(--amber); font-weight: 800;
}
.entry-content blockquote cite { display: block; margin-top: .6em; font: normal .74rem var(--mono); color: var(--muted); }
.entry-content img { border-radius: var(--shape-sm); height: auto; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .wp-caption-text { margin-top: 8px; font: .74rem/1.5 var(--mono); color: var(--muted); }
.entry-content hr { border: 0; height: auto; margin-block: 2.6em; text-align: center; }
.entry-content hr::before { content: "✦ ✦ ✦"; color: var(--c); letter-spacing: .6em; font-size: .8rem; }
.entry-content code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: .12em .4em; border-radius: 6px; }
.entry-content pre { background: var(--night); color: var(--night-ink); padding: 1.2em 1.4em; border-radius: var(--shape-sm); overflow-x: auto; font-size: .88rem; line-height: 1.6; }
.entry-content pre code { background: none; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .94em; }
.entry-content th, .entry-content td { padding: .7em .9em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--surface-2); font-weight: 700; }
.table-scroll, .wp-block-table { overflow-x: auto; }
.entry-content iframe, .entry-content video { width: 100%; border-radius: var(--shape-sm); }
.entry-content .alignwide { margin-inline: calc(-1 * min(110px, 6vw)); max-width: none; }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.entry-content .alignfull img { border-radius: 0; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.entry-content::after { content: ""; display: table; clear: both; }

/* „Taip pat skaitykite“ */
.entry-content .inline-read {
	margin-block: 2em; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--c);
	border-radius: var(--shape-sm); background: var(--surface);
}
.inline-read__label { display: block; margin-bottom: 8px; font: 700 .68rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.entry-content .inline-read__link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.inline-read__link img { width: 72px; height: 72px; object-fit: cover; border-radius: 3px 12px 12px 12px; flex: none; }
.inline-read__title { font-family: var(--display); font-weight: 750; font-size: 1.06rem; line-height: 1.3; }
.inline-read__link:hover .inline-read__title { text-decoration: underline; text-decoration-color: var(--c); }

/* Žymos ir navigacija */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 36px 0 0; padding: 0; }
.tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font: 600 .78rem var(--mono); text-decoration: none; transition: background .2s, color .2s; }
.tags a:hover { background: var(--c); color: #fff; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.post-nav__link {
	display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--shape);
	text-decoration: none; background: var(--surface); transition: border-color .2s, transform .2s var(--ease);
}
.post-nav__link:hover { border-color: var(--c); transform: translateY(-2px); }
.post-nav__link--next { text-align: right; grid-column: 2; }
.post-nav__dir { display: inline-flex; align-items: center; gap: 6px; font: 600 .72rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.post-nav__link--next .post-nav__dir { justify-content: flex-end; }
.post-nav__dir .icon { width: 15px; height: 15px; }
.post-nav__title { font-family: var(--display); font-weight: 750; line-height: 1.3; }
.page-links { margin-top: 24px; font-family: var(--mono); }

.related { margin-top: 0; }

/* „Skaitykite toliau“ iššokantis pasiūlymas */
.next-up {
	position: fixed; left: 20px; bottom: 20px; z-index: 90;
	width: min(460px, calc(100% - 100px));
	background: var(--night); color: var(--night-ink);
	border-radius: var(--shape); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6);
	transform: translateY(150%); opacity: 0;
	transition: transform .5s var(--ease), opacity .3s;
}
.next-up.is-visible { transform: none; opacity: 1; }
.next-up__link { display: grid; gap: 4px; padding: 16px 52px 16px 18px; text-decoration: none; border-left: 4px solid var(--amber); border-radius: inherit; }
.next-up__label { font: 700 .66rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.next-up__title { font-family: var(--display); font-weight: 750; line-height: 1.3; }
.next-up__link:hover .next-up__title { text-decoration: underline; }
.next-up__close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--night-ink); }
.next-up__close .icon { width: 16px; height: 16px; }

/* ==========================================================================
   11. 404
   ========================================================================== */
.lost { text-align: center; padding-block: clamp(40px, 8vw, 96px) clamp(20px, 4vw, 40px); display: grid; justify-items: center; gap: 18px; }
.lost__art { display: flex; align-items: center; gap: clamp(6px, 2vw, 18px); }
.lost__num { font-family: var(--display); font-weight: 800; font-size: clamp(6rem, 20vw, 12rem); line-height: .85; color: var(--ink); }
.lost__balloon .brand__mark { width: clamp(90px, 16vw, 170px); height: auto; animation: float 3.4s var(--ease) infinite; }
.lost__title { font-size: clamp(1.6rem, 3.4vw, 2.6rem); max-width: 22ch; letter-spacing: -.025em; }
.lost__text { color: var(--muted); max-width: 54ch; }
.lost .chips { justify-content: center; margin-top: 18px; max-width: 900px; }

/* ==========================================================================
   12. Poraštė
   ========================================================================== */
.site-footer { background: var(--night); color: var(--night-muted); padding-top: clamp(48px, 7vw, 80px); overflow: hidden; }
.site-footer a { color: var(--night-ink); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.5fr 1fr; gap: clamp(28px, 4vw, 56px); }
.site-footer .brand { color: var(--night-ink); }
.site-footer .brand__v { stroke: var(--night); }
.site-footer .brand__ropes { stroke: var(--night-ink); }
.site-footer .brand__basket { fill: var(--night-ink); }
.site-footer .brand__sub { color: var(--amber); }
.site-footer__about { margin-top: 18px; font-size: .94rem; max-width: 40ch; }
.site-footer__title { font: 700 .72rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .94rem; }
.site-footer__col--wide a { display: block; line-height: 1.4; }
.site-footer__col a[style]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 10px; vertical-align: middle; filter: brightness(1.4); }
.social { display: flex; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(238, 232, 222, .18); }
.social a:hover { border-color: var(--amber); }
.social .icon { width: 18px; height: 18px; }
.site-footer__giant {
	margin: clamp(36px, 6vw, 64px) 0 0; text-align: center; white-space: nowrap;
	font-family: var(--display); font-weight: 800; letter-spacing: -.05em; line-height: .78;
	font-size: clamp(5rem, 21vw, 18rem);
	color: transparent;
	background: linear-gradient(180deg, rgba(233, 162, 59, .22), rgba(238, 232, 222, .03) 80%);
	-webkit-background-clip: text; background-clip: text;
	user-select: none;
}
.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
	padding-block: 20px 28px; border-top: 1px solid rgba(238, 232, 222, .12);
	font: .74rem var(--mono);
}

/* ==========================================================================
   13. Plaukiojantys elementai: į viršų, sąrašas, pranešimai
   ========================================================================== */
.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 95;
	display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
	border: 1px solid var(--line); background: var(--surface); color: var(--ink);
	box-shadow: var(--shadow);
	opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
	transition: opacity .3s, transform .35s var(--ease), background .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--paper); }
.to-top:hover .icon { transform: translateY(-3px); }
.to-top .icon { transition: transform .25s var(--ease); }
.to-top__ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); pointer-events: none; }
.to-top__ring circle { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); transition: stroke-dashoffset .1s linear; }

.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(8, 9, 12, .5); animation: fade .25s; }
.drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(430px, 92vw);
	background: var(--paper); padding: 24px; overflow-y: auto;
	box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .5);
	animation: slide-in .35s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer__head h2 { font-size: 1.7rem; }
.drawer__note { margin: 10px 0 20px; font: .74rem/1.5 var(--mono); color: var(--muted); }
.drawer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.drawer__item { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 12px; padding: 10px; background: var(--surface); border-radius: var(--shape-sm); border: 1px solid var(--line); }
.drawer__item img, .drawer__thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 3px 12px 12px 12px; background: linear-gradient(140deg, var(--amber), var(--terra)); }
.drawer__item a { font-family: var(--display); font-weight: 750; line-height: 1.3; text-decoration: none; font-size: .98rem; }
.drawer__item a:hover { text-decoration: underline; }
.drawer__remove { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.drawer__remove:hover { background: var(--surface-2); color: var(--ink); }
.drawer__remove .icon { width: 16px; height: 16px; }
.drawer__empty { padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--shape); }

.toast {
	position: fixed; left: 50%; bottom: 92px; z-index: 250;
	transform: translate(-50%, 10px); opacity: 0;
	background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px;
	font: 600 .8rem var(--mono); box-shadow: var(--shadow);
	transition: opacity .25s, transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   14. Prisitaikymas
   ========================================================================== */
@media (max-width: 1100px) {
	.popular { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(230px, 42%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
	.popular > li { scroll-snap-align: start; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
	.article-layout { grid-template-columns: minmax(0, 720px); }
	.article-aside { display: none; }
	.toc-mobile { display: block; }
}

@media (max-width: 960px) {
	.hero { grid-template-columns: 1fr; }
	.cat-block__grid { grid-template-columns: 1fr; }
	.cat-block--flip .cat-block__feature { order: 0; }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.listing__lead .card--lead { grid-template-columns: 1fr; }
	.topbar .topbar__meta { display: none; }
}

@media (max-width: 640px) {
	:root { --head-h: 64px; --r: 18px; }
	.brand__name { font-size: 1.38rem; }
	.brand__mark { width: 38px; height: 38px; }
	.brand__sub { font-size: .52rem; letter-spacing: .2em; }
	.masthead__actions { gap: 6px; }
	.icon-btn { width: 40px; height: 40px; }

	.card--lead .card__body { margin: -56px 10px 0; }

	/* Tankesnis sąrašas mobiliuosiuose: mažiau slinkimo, daugiau antraščių. */
	.grid--3 { grid-template-columns: 1fr; gap: 0; }
	.grid--3 > .card--grid { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
	.grid--3 > .card--grid:first-child { padding-top: 0; }
	.grid--3 > .card--grid .card__media { aspect-ratio: 1; border-radius: var(--shape-sm); }
	.grid--3 > .card--grid .card__excerpt { display: none; }
	.grid--3 > .card--grid .card__title { font-size: 1.02rem; line-height: 1.28; }
	.grid--3 > .card--grid .save-btn--card { display: none; }
	.band--tint .grid--3 { gap: 12px; }
	.band--tint .grid--3 > .card { border-bottom: 0; padding: 12px; }

	.card--row { grid-template-columns: 96px minmax(0, 1fr); }
	.popular { grid-auto-columns: 78%; }
	.sec-head { grid-template-columns: auto 1fr; }
	.sec-head__more { grid-column: 1 / -1; justify-self: start; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__link--next { grid-column: auto; }
	.article-meta__actions { margin-left: 0; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.next-up { left: 12px; right: 78px; width: auto; bottom: 14px; }
	.to-top { right: 12px; bottom: 14px; }
	.alignleft, .alignright { float: none; margin: 1em 0; max-width: 100%; }
	.topbar__inner { justify-content: center; }
	.topbar .topbar__coords, .topbar .topbar__sep { display: none; }
}

/* ==========================================================================
   15. Puslapių perėjimai, judesys, spausdinimas
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
	::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
	::view-transition-group(hero-img) { animation-duration: .45s; animation-timing-function: var(--ease); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.ticker__viewport { overflow-x: auto; }
	.ticker__track { animation: none; }
	.ticker__list[aria-hidden] { display: none; }
}

@media print {
	.topbar, .masthead, .ticker, .article-aside, .share, .post-nav, .related, .next-up, .to-top, .site-footer, .progress, .save-btn, .toc-mobile, .inline-read { display: none !important; }
	body { background: #fff; color: #000; }
	.article-layout { display: block; }
	.entry-content a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
