/* ==========================================================================
   Siūlė – „Madingi straipsniai“ tema
   Dizaino kalba: džinsinis audinys – indigo, vario spalvos siūlės, kniedės,
   odinės etiketės. Šriftai: Lora (antraštės, tekstas), DM Sans (sąsaja),
   Anton (dideli skaičiai). Visi šriftai talpinami temoje (be Google užklausų).
   ========================================================================== */

/* ---------- Šriftai ---------- */
@font-face {
	font-family: "Lora";
	src: url("../fonts/lora.woff") format("woff");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Lora";
	src: url("../fonts/lora-italic.woff") format("woff");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dmsans.woff") format("woff");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Anton";
	src: url("../fonts/anton-digits.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0020-0039, U+0025, U+0023;
}

/* ---------- Spalvos ir kintamieji ---------- */
:root {
	--paper: #f6f3ec;
	--paper-2: #ece6d8;
	--paper-3: #e2dac8;
	--card: #fffdf8;
	--ink: #14182b;
	--ink-2: #353b52;
	--muted: #5a6074;
	--indigo: #1b2a4e;
	--indigo-2: #22335d;
	--denim: #2e4a86;
	--denim-soft: #dde4f1;
	--copper: #e39a5b;
	--copper-ink: #a24a12;
	--tan: #dca878;
	--tan-ink: #3a240f;
	--line: rgba(20, 24, 43, 0.14);
	--line-strong: rgba(20, 24, 43, 0.28);
	--shadow: 0 1px 0 rgba(20, 24, 43, 0.05), 0 14px 30px -18px rgba(20, 24, 43, 0.45);
	--twill: rgba(27, 42, 78, 0.028);

	--serif: "Lora", Georgia, "Times New Roman", serif;
	--sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--num: "Anton", Impact, "Arial Narrow Bold", sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 14px;
	--radius-lg: 20px;
	--head-h: 72px;
	--fs-article: 1.15rem;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--paper: #0f1424;
	--paper-2: #161d33;
	--paper-3: #1d2640;
	--card: #141b2f;
	--ink: #ede9e0;
	--ink-2: #cfd2dc;
	--muted: #a2a8ba;
	--indigo: #24366a;
	--indigo-2: #2b3f78;
	--denim-soft: #1a2341;
	--copper-ink: #f0a76d;
	--line: rgba(237, 233, 224, 0.13);
	--line-strong: rgba(237, 233, 224, 0.26);
	--shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 14px 30px -18px rgba(0, 0, 0, 0.8);
	--twill: rgba(255, 255, 255, 0.018);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #0f1424;
		--paper-2: #161d33;
		--paper-3: #1d2640;
		--card: #141b2f;
		--ink: #ede9e0;
		--ink-2: #cfd2dc;
		--muted: #a2a8ba;
		--indigo: #24366a;
		--indigo-2: #2b3f78;
		--denim-soft: #1a2341;
		--copper-ink: #f0a76d;
		--line: rgba(237, 233, 224, 0.13);
		--line-strong: rgba(237, 233, 224, 0.26);
		--shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 14px 30px -18px rgba(0, 0, 0, 0.8);
		--twill: rgba(255, 255, 255, 0.018);
		color-scheme: dark;
	}
}

/* ---------- 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-color: var(--paper);
	background-image: repeating-linear-gradient(135deg, var(--twill) 0 2px, transparent 2px 6px);
	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;
}

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

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

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

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

p {
	margin: 0;
}

:where(ul[class], ol[class]) {
	list-style: none;
	margin: 0;
	padding: 0;
}

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

::selection {
	background: var(--copper);
	color: #1a0d03;
}

.sr-only {
	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: 1000;
	background: var(--ink);
	color: var(--paper);
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	transition: top 0.2s;
}

.skip-link:focus {
	top: 12px;
}

.anchor-top {
	position: absolute;
	top: 0;
}

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

.wrap--wide {
	max-width: calc(var(--wrap) + 80px);
}

.site-main {
	display: block;
	min-height: 50vh;
}

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

.icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
}

/* ---------- Siūlė ir kniedė (pagrindiniai motyvai) ---------- */
.seam {
	height: 9px;
	background:
		repeating-linear-gradient(90deg, var(--copper) 0 11px, transparent 11px 18px) center / 100% 2px no-repeat,
		var(--indigo);
}

.seam--light {
	background:
		repeating-linear-gradient(90deg, var(--copper) 0 11px, transparent 11px 18px) center / 100% 2px no-repeat,
		transparent;
	opacity: 0.8;
}

.rivet {
	display: inline-block;
	width: 0.62em;
	height: 0.62em;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #ffd9b5 0 18%, var(--copper) 30%, #b0662c 100%);
	box-shadow: 0 0 0 2px rgba(227, 154, 91, 0.25);
	vertical-align: 0.08em;
	margin-right: 0.5em;
	flex: none;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	font-family: var(--sans);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--copper-ink);
	margin-bottom: 0.6rem;
}

.kicker {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: var(--sans);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--copper-ink);
	text-decoration: none;
	margin-bottom: 0.45rem;
}

.kicker::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--copper);
	box-shadow: 0 0 0 2px rgba(227, 154, 91, 0.25);
}

.kicker:hover {
	text-decoration: underline;
}

/* Odinė etiketė */
.kicker--patch {
	background: var(--tan);
	color: var(--tan-ink);
	padding: 0.55em 1em 0.5em;
	border-radius: 7px;
	outline: 1.5px dashed rgba(58, 36, 15, 0.55);
	outline-offset: -5px;
	box-shadow: inset 0 -2px 0 rgba(58, 36, 15, 0.15);
}

.kicker--patch::before {
	background: var(--tan-ink);
	box-shadow: none;
}

/* ---------- Mygtukai, žymos ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-height: 48px;
	padding: 0.7em 1.5em;
	border-radius: 999px;
	border: 0;
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	transition: transform 0.15s ease, background-color 0.2s, box-shadow 0.2s;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn--seam {
	background: var(--indigo);
	color: #f6f3ec;
	outline: 1.5px dashed var(--copper);
	outline-offset: -6px;
	box-shadow: var(--shadow);
}

.btn--seam:hover {
	background: var(--indigo-2);
}

.btn--light {
	background: #f6f3ec;
	color: #14182b;
}

.btn--ghost {
	background: transparent;
	color: var(--ink);
	box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.btn--small {
	min-height: 40px;
	padding: 0.5em 1.1em;
	font-size: 0.85rem;
	margin-top: 1rem;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	padding: 0.42em 0.95em;
	border-radius: 999px;
	background: var(--card);
	box-shadow: inset 0 0 0 1px var(--line);
	font-family: var(--sans);
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.chip:hover,
.chip.is-active {
	background: var(--indigo);
	color: #f6f3ec;
	box-shadow: none;
}

.chip__count {
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.1em 0.5em;
	border-radius: 999px;
	background: var(--paper-2);
	color: var(--muted);
}

.chip:hover .chip__count,
.chip.is-active .chip__count {
	background: rgba(255, 255, 255, 0.16);
	color: #f6f3ec;
}

/* ---------- Viršutinė juosta ---------- */
.topbar {
	background: #10162a;
	color: #d9dbe4;
	font-size: 0.8rem;
}

.topbar__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 38px;
}

.topbar__date {
	white-space: nowrap;
	font-weight: 600;
	color: #f6f3ec;
}

.ticker {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.ticker__label {
	flex: none;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #1a0d03;
	background: var(--copper);
	padding: 0.25em 0.7em;
	border-radius: 4px;
}

.ticker__viewport {
	overflow: hidden;
	flex: 1;
	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 60s linear infinite;
}

.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track {
	animation-play-state: paused;
}

.ticker__list {
	display: flex;
	flex: none;
}

.ticker__list li {
	padding-right: 2.2em;
	white-space: nowrap;
}

.ticker__list li::before {
	content: "✦";
	color: var(--copper);
	margin-right: 0.8em;
	font-size: 0.75em;
}

.ticker__list a {
	text-decoration: none;
}

.ticker__list a:hover {
	text-decoration: underline;
	color: #fff;
}

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

.theme-toggle {
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.08);
	color: #f6f3ec;
	margin-left: auto;
}

.theme-toggle:hover {
	background: rgba(255, 255, 255, 0.16);
}

.theme-toggle .icon {
	width: 16px;
	height: 16px;
}

.theme-toggle .icon--sun,
:root[data-theme="dark"] .theme-toggle .icon--moon {
	display: none;
}

:root[data-theme="dark"] .theme-toggle .icon--sun {
	display: block;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .icon--moon {
		display: none;
	}
	:root:not([data-theme="light"]) .theme-toggle .icon--sun {
		display: block;
	}
}

/* ---------- Galvutė ---------- */
.masthead {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--paper) 92%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
}

.admin-bar .masthead {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .masthead {
		top: 0;
	}
}

.masthead__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: var(--head-h);
	transition: min-height 0.25s ease;
}

.masthead.is-stuck .masthead__inner {
	min-height: 60px;
}

.brand {
	flex: none;
	line-height: 0;
}

.brand__link,
.brand .custom-logo-link {
	display: inline-block;
	color: var(--ink);
}

.brand__svg {
	width: auto;
	height: 50px;
	transition: height 0.25s ease;
}

.masthead.is-stuck .brand__svg {
	height: 42px;
}

.brand .custom-logo {
	max-height: 56px;
	width: auto;
}

.brand__seam {
	color: var(--copper-ink);
}

.nav {
	flex: 1;
	min-width: 0;
}

.nav__list,
.nav .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav li {
	position: relative;
}

.nav a {
	display: block;
	padding: 0.5em 0.75em;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border-radius: 8px;
	background-image: repeating-linear-gradient(90deg, var(--copper) 0 7px, transparent 7px 11px);
	background-repeat: no-repeat;
	background-size: 0 2px;
	background-position: 0.75em calc(100% - 4px);
	transition: background-size 0.3s ease, color 0.2s;
}

.nav a:hover,
.nav .current-menu-item > a,
.nav .current-cat > a,
.nav .current-menu-ancestor > a {
	background-size: calc(100% - 1.5em) 2px;
	color: var(--copper-ink);
}

.nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	list-style: none;
	margin: 0;
	padding: 8px;
	background: var(--card);
	border-radius: 12px;
	box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: 0.2s ease;
	z-index: 5;
}

.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.masthead__tools {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.tool {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	height: 44px;
	min-width: 44px;
	justify-content: center;
	padding: 0 0.8em;
	border-radius: 999px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font-weight: 700;
	font-size: 0.88rem;
	text-decoration: none;
	transition: background-color 0.2s;
}

.tool:hover,
.tool[aria-expanded="true"] {
	background: var(--paper-2);
}

.tool--dice {
	box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.tool--dice:hover .icon {
	transform: rotate(90deg);
}

.tool--dice .icon {
	transition: transform 0.35s ease;
}

.tool--menu {
	display: none;
}

.tool--menu .icon--close,
.tool--menu[aria-expanded="true"] .icon--menu {
	display: none;
}

.tool--menu[aria-expanded="true"] .icon--close {
	display: block;
}

/* Paieškos skydelis */
.search-panel {
	background: var(--paper-2);
	border-bottom: 1px solid var(--line);
}

.search-panel__inner {
	padding-block: 22px;
	display: grid;
	gap: 14px;
}

.search-panel__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.search-panel__hint {
	font-size: 0.85rem;
	color: var(--muted);
	margin-right: 4px;
}

.searchform {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--card);
	border-radius: 999px;
	padding: 6px 6px 6px 18px;
	box-shadow: inset 0 0 0 1.5px var(--line-strong);
	max-width: 720px;
}

.searchform:focus-within {
	box-shadow: inset 0 0 0 2px var(--copper);
}

.searchform > .icon {
	color: var(--muted);
}

.searchform__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 1.05rem;
	color: var(--ink);
	padding: 0.55em 0.2em;
	outline: none;
}

.searchform__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.searchform__btn {
	border: 0;
	border-radius: 999px;
	background: var(--indigo);
	color: #f6f3ec;
	font-weight: 700;
	padding: 0.7em 1.3em;
}

.searchform__btn:hover {
	background: var(--indigo-2);
}

/* ---------- Temų juosta ---------- */
.rail {
	border-bottom: 1px solid var(--line);
}

.rail__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-block: 12px;
}

.rail__label {
	flex: none;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.rail__list {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 2px;
	-webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
	mask-image: linear-gradient(90deg, #000 92%, transparent);
}

.rail__list::-webkit-scrollbar {
	display: none;
}

/* ---------- Kortelės ---------- */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--paper-3);
	isolation: isolate;
}

.card__media img,
.card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Siūlė, „prisiuvama“ užvedus pelę */
.card__media::after {
	content: "";
	position: absolute;
	inset: 9px;
	border: 1.5px dashed rgba(255, 246, 232, 0.85);
	border-radius: calc(var(--radius) - 6px);
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 0.3s, transform 0.4s ease;
	pointer-events: none;
	z-index: 1;
}

.card:hover .card__media::after,
.card:focus-within .card__media::after {
	opacity: 1;
	transform: none;
}

.card:hover .card__img,
.card:focus-within .card__img {
	transform: scale(1.045);
}

.card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.card__title {
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: -0.005em;
}

.card__link {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size 0.35s ease;
}

.card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.card:hover .card__link {
	background-size: 100% 1px;
}

.card__link:focus-visible {
	outline: none;
}

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

.card__excerpt {
	margin-top: 0.55rem;
	color: var(--ink-2);
	font-size: 0.97rem;
	line-height: 1.55;
}

.card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin-top: 0.7rem;
	font-size: 0.8rem;
	color: var(--muted);
}

.card__rt {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
}

.card__rt .icon {
	width: 14px;
	height: 14px;
}

.card__num {
	font-family: var(--num);
	font-size: 2.4rem;
	line-height: 1;
	color: var(--copper);
	margin-bottom: 0.3rem;
}

/* Pakaitalas be paveikslėlio: džinso tekstūra + raidė */
.ph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 3px, transparent 3px 7px),
		linear-gradient(140deg, hsl(var(--ph-h) 45% 32%), hsl(calc(var(--ph-h) + 30) 50% 18%));
}

.ph::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1.5px dashed rgba(227, 154, 91, 0.75);
	border-radius: 10px;
}

.ph__letter {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 700;
	font-size: clamp(2.4rem, 7vw, 4.5rem);
	color: rgba(246, 243, 236, 0.92);
}

/* Variantai */
.card--lead .card__media {
	aspect-ratio: 16 / 10;
	border-radius: var(--radius-lg);
}

.card--lead .card__body {
	position: relative;
	z-index: 2;
	margin: -78px 22px 0;
	padding: 22px 24px 20px;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.card--lead .card__body::before {
	content: "";
	position: absolute;
	inset: 6px;
	border: 1.5px dashed color-mix(in srgb, var(--copper) 70%, transparent);
	border-radius: calc(var(--radius) - 5px);
	pointer-events: none;
}

.card--lead .card__title {
	font-size: clamp(1.55rem, 2.6vw, 2.35rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.015em;
}

.card--lead .card__excerpt {
	font-size: 1.04rem;
}

.card--side .card__media {
	aspect-ratio: 16 / 10;
}

.card--side .card__title {
	font-size: 1.12rem;
}

.card--mini {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
}

.card--mini .card__media {
	aspect-ratio: 1;
	border-radius: 12px;
}

.card--mini .card__media::after {
	inset: 6px;
}

.card--mini .card__title {
	font-size: 1.02rem;
}

.card--mini .card__meta {
	margin-top: 0.4rem;
}

.card--strip {
	flex: 0 0 min(290px, 78vw);
	scroll-snap-align: start;
}

.card--strip .card__media {
	aspect-ratio: 4 / 5;
}

.card--strip .card__title {
	font-size: 1.08rem;
}

.card--wide {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	gap: 26px;
	align-items: center;
	padding-block: 22px;
	border-top: 1px solid var(--line);
}

.card--wide .card__title {
	font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.card--tall .card__media {
	aspect-ratio: 1;
}

.card--tall .card__title {
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	font-weight: 700;
}

.card--list .card__title {
	font-size: 1.05rem;
}

/* ---------- Sekcijų antraštės ---------- */
.section-head {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 20px;
	padding-top: 22px;
	margin-bottom: 26px;
}

.section-head::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	background: repeating-linear-gradient(90deg, var(--ink) 0 12px, transparent 12px 19px);
	opacity: 0.85;
}

.section-head__title {
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	display: flex;
	align-items: center;
}

.section-head__title::before {
	content: "";
	width: 0.42em;
	height: 0.42em;
	border-radius: 50%;
	margin-right: 0.45em;
	background: radial-gradient(circle at 35% 35%, #ffd9b5 0 18%, var(--copper) 30%, #b0662c 100%);
	box-shadow: 0 0 0 3px rgba(227, 154, 91, 0.22);
	flex: none;
}

.section-head__title a {
	text-decoration: none;
}

.section-head__title a:hover {
	color: var(--copper-ink);
}

.section-head__desc {
	color: var(--muted);
	font-size: 0.95rem;
	flex: 1 1 280px;
}

.section-head__more {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	color: var(--copper-ink);
	white-space: nowrap;
}

.section-head__more .icon {
	transition: transform 0.2s;
}

.section-head__more:hover .icon {
	transform: translateX(4px);
}

/* ---------- Tinkleliai ---------- */
.grid {
	display: grid;
	gap: 36px 28px;
}

.grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- Pirmasis puslapis ---------- */
.front {
	display: grid;
	grid-template-columns: minmax(0, 6.2fr) minmax(0, 3fr) minmax(0, 2.8fr);
	gap: 30px;
	padding-block: 30px 56px;
	align-items: start;
}

.front__second {
	display: grid;
	gap: 28px;
}

.stream {
	position: relative;
	padding: 20px 20px 18px;
	background: var(--card);
	border-radius: var(--radius-lg);
	box-shadow: inset 0 0 0 1px var(--line);
}

.stream__title {
	display: flex;
	align-items: center;
	font-family: var(--sans);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.stream__list {
	position: relative;
	padding-left: 20px;
}

.stream__list::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: repeating-linear-gradient(180deg, var(--copper) 0 7px, transparent 7px 12px);
}

.stream__item {
	position: relative;
	padding-block: 10px;
	border-bottom: 1px solid var(--line);
}

.stream__item:last-child {
	border-bottom: 0;
}

.stream__item::before {
	content: "";
	position: absolute;
	left: -20px;
	top: 16px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--card);
	box-shadow: inset 0 0 0 2.5px var(--indigo);
}

:root[data-theme="dark"] .stream__item::before {
	box-shadow: inset 0 0 0 2.5px var(--copper);
}

.stream__item:first-child::before {
	background: var(--copper);
	box-shadow: 0 0 0 4px rgba(227, 154, 91, 0.25);
}

.stream__time {
	display: block;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--copper-ink);
	margin-bottom: 2px;
}

.stream__link {
	font-family: var(--serif);
	font-weight: 600;
	font-size: 0.98rem;
	line-height: 1.3;
	text-decoration: none;
	display: block;
}

.stream__link:hover {
	text-decoration: underline;
}

.stream__more {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	margin-top: 12px;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--copper-ink);
}

/* ---------- Kiek turite laiko? ---------- */
.timebox {
	position: relative;
	padding-block: 56px 64px;
	margin-bottom: 64px;
	background:
		repeating-linear-gradient(135deg, rgba(46, 74, 134, 0.06) 0 2px, transparent 2px 6px),
		var(--denim-soft);
}

.timebox::before,
.timebox::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: repeating-linear-gradient(90deg, var(--copper) 0 11px, transparent 11px 18px);
}

.timebox::before {
	top: 10px;
}

.timebox::after {
	bottom: 10px;
}

.timebox__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 6px 32px;
	margin-bottom: 30px;
}

.timebox__head .eyebrow {
	grid-column: 1 / -1;
	margin: 0;
}

.timebox__title {
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	font-style: italic;
}

.timebox__tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.timebox__tab {
	display: grid;
	text-align: left;
	gap: 1px;
	padding: 0.65em 1.2em;
	border: 0;
	border-radius: 14px;
	background: var(--card);
	box-shadow: inset 0 0 0 1px var(--line);
	transition: background-color 0.2s, color 0.2s;
}

.timebox__tab strong {
	font-family: var(--serif);
	font-size: 1.1rem;
}

.timebox__tab span {
	font-size: 0.78rem;
	color: var(--muted);
}

.timebox__tab[aria-selected="true"] {
	background: var(--indigo);
	color: #f6f3ec;
	outline: 1.5px dashed var(--copper);
	outline-offset: -5px;
	box-shadow: var(--shadow);
}

.timebox__tab[aria-selected="true"] span {
	color: #c9d3ea;
}

.timebox__nojs {
	font-family: var(--serif);
	font-weight: 700;
	font-size: 1.3rem;
	margin: 26px 0 14px;
}

.js .timebox__nojs {
	display: none;
}

.js .timebox__panel:not(.is-active) {
	display: none;
}

.timebox__panel.is-active .card {
	animation: rise 0.45s ease both;
}

.timebox__panel.is-active .card:nth-child(2) {
	animation-delay: 0.05s;
}

.timebox__panel.is-active .card:nth-child(3) {
	animation-delay: 0.1s;
}

.timebox__panel.is-active .card:nth-child(4) {
	animation-delay: 0.15s;
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

/* ---------- Kategorijų blokai ---------- */
.catblock {
	margin-bottom: 72px;
}

.catblock__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}

.catblock__list {
	display: grid;
	gap: 0;
}

.catblock__list .card {
	padding-block: 16px;
	border-bottom: 1px dashed var(--line-strong);
}

.catblock__list .card:first-child {
	padding-top: 0;
}

.catblock__list .card:last-child {
	border-bottom: 0;
}

.strip {
	position: relative;
}

.strip__track {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 2px;
	padding-bottom: 14px;
	scrollbar-width: thin;
	scrollbar-color: var(--copper) transparent;
}

.strip__nav {
	position: absolute;
	top: 38%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 0;
	background: var(--indigo);
	color: #f6f3ec;
	box-shadow: var(--shadow);
	outline: 1.5px dashed var(--copper);
	outline-offset: -5px;
	transition: opacity 0.2s, transform 0.2s;
}

.strip__nav:hover {
	transform: scale(1.06);
}

.strip__nav[disabled] {
	opacity: 0;
	pointer-events: none;
}

.strip__nav--prev {
	left: -14px;
}

.strip__nav--prev .icon {
	transform: rotate(180deg);
}

.strip__nav--next {
	right: -14px;
}

html:not(.js) .strip__nav {
	display: none;
}

.mosaic {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px 26px;
}

.mosaic > .card:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

/* ---------- Indigo juosta: populiariausi + archyvas ---------- */
.band {
	position: relative;
	margin-bottom: 72px;
	color: #f1eee6;
	background:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 6px),
		linear-gradient(160deg, #1b2a4e, #111a33 70%);
}

.band::before,
.band::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: repeating-linear-gradient(90deg, var(--copper) 0 11px, transparent 11px 18px);
	opacity: 0.85;
}

.band::before {
	top: 12px;
}

.band::after {
	bottom: 12px;
}

.band__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
	gap: 56px;
	padding-block: 64px;
}

.band__title {
	display: flex;
	align-items: center;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	font-weight: 700;
	margin-bottom: 22px;
	color: #fff;
}

.toplist {
	counter-reset: top;
}

.toplist__item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding-block: 14px;
	border-bottom: 1px dashed rgba(241, 238, 230, 0.2);
}

.toplist__item:last-child {
	border-bottom: 0;
}

.toplist__num {
	font-family: var(--num);
	font-size: 3.2rem;
	line-height: 0.9;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--copper);
	text-align: center;
}

.toplist__item:first-child .toplist__num {
	color: var(--copper);
}

.toplist__link {
	display: block;
	font-family: var(--serif);
	font-weight: 600;
	font-size: 1.1rem;
	line-height: 1.3;
	text-decoration: none;
	color: #fff;
}

.toplist__link:hover {
	text-decoration: underline;
	text-decoration-color: var(--copper);
}

.toplist__meta {
	display: block;
	margin-top: 4px;
	font-size: 0.78rem;
	color: #aeb8d3;
}

.band__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-bottom: 28px;
}

.band .card__title,
.band .card__link {
	color: #fff;
}

.band .kicker {
	color: var(--copper);
}

.band .card__meta {
	color: #aeb8d3;
}

/* ---------- Temų žemėlapis ---------- */
.topics {
	margin-bottom: 72px;
}

.topics__list {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 26px;
}

.topics__list a {
	font-family: var(--serif);
	font-weight: 600;
	font-size: calc(1.05rem + var(--w, 0.5) * 1.75rem);
	line-height: 1.25;
	text-decoration: none;
	letter-spacing: -0.01em;
	transition: color 0.2s;
}

.topics__list li:nth-child(3n + 2) a {
	font-style: italic;
}

.topics__list a:hover {
	color: var(--copper-ink);
	text-decoration: underline;
	text-decoration-style: dashed;
	text-decoration-thickness: 2px;
}

.topics__list sup {
	font-family: var(--sans);
	font-style: normal;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--copper-ink);
	margin-left: 2px;
}

/* ---------- Srautas / sąrašai ---------- */
.feed-section {
	margin-bottom: 72px;
}

.feed {
	display: grid;
	border-bottom: 1px solid var(--line);
}

.feed:empty {
	border: 0;
}

.loadmore {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}

.loadmore .btn.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.pager {
	margin-top: 26px;
}

.js .loadmore + .pager {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.pager .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.pager .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.8em;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	box-shadow: inset 0 0 0 1px var(--line);
}

.pager .page-numbers.current {
	background: var(--indigo);
	color: #f6f3ec;
	box-shadow: none;
}

.listing {
	padding-block: 26px 80px;
}

.listing__head {
	max-width: 860px;
	margin-bottom: 36px;
}

.listing__title {
	font-size: clamp(2.2rem, 5.5vw, 3.8rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.05;
}

.listing__desc {
	margin-top: 14px;
	font-family: var(--serif);
	font-size: 1.15rem;
	color: var(--ink-2);
	max-width: 70ch;
}

.listing__count {
	margin-top: 12px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--muted);
}

.listing__search {
	margin-top: 22px;
}

.listing__lead {
	max-width: 900px;
	margin-bottom: 56px;
}

.empty__text {
	font-family: var(--serif);
	font-size: 1.2rem;
	margin-bottom: 30px;
	max-width: 60ch;
}

mark.hl {
	background: color-mix(in srgb, var(--copper) 45%, transparent);
	color: inherit;
	border-radius: 3px;
	padding: 0 0.1em;
}

/* ---------- Naršymo kelias ---------- */
.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	font-size: 0.82rem;
	color: var(--muted);
}

.crumbs li + li::before {
	content: "›";
	margin-right: 4px;
	color: var(--copper-ink);
}

.crumbs a {
	text-decoration: none;
}

.crumbs a:hover {
	text-decoration: underline;
	color: var(--ink);
}

/* ---------- Straipsnis ---------- */
.readbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	z-index: 100;
	pointer-events: none;
}

.admin-bar .readbar {
	top: 32px;
}

.readbar__thread {
	display: block;
	height: 100%;
	transform: scaleX(var(--p, 0));
	transform-origin: 0 50%;
	background: repeating-linear-gradient(90deg, var(--copper) 0 12px, #b4622a 12px 14px, var(--copper) 14px 26px, transparent 26px 30px);
	box-shadow: 0 0 10px rgba(227, 154, 91, 0.6);
}

.article__head {
	max-width: 900px;
	padding-top: 26px;
	margin-bottom: 30px;
}

.article__head .kicker--patch {
	margin-bottom: 18px;
}

.article__title {
	font-size: clamp(2.05rem, 5vw, 3.55rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.022em;
}

.article__standfirst {
	margin-top: 18px;
	font-family: var(--serif);
	font-style: italic;
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	line-height: 1.5;
	color: var(--ink-2);
}

.article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 0.88rem;
	color: var(--muted);
}

.byline {
	display: flex;
	align-items: center;
	gap: 12px;
}

.byline__patch {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: var(--indigo);
	color: #f6f3ec;
	font-family: var(--serif);
	font-style: italic;
	font-weight: 700;
	font-size: 1.15rem;
	outline: 1.5px dashed var(--copper);
	outline-offset: -5px;
}

.byline__text {
	display: grid;
	line-height: 1.35;
}

.byline__name {
	font-weight: 700;
	color: var(--ink);
}

.article__rt {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-weight: 600;
}

.textsize {
	display: inline-flex;
	gap: 4px;
	margin-left: auto;
}

.textsize__btn {
	min-width: 40px;
	height: 36px;
	border: 0;
	border-radius: 8px;
	background: var(--paper-2);
	font-weight: 700;
	font-size: 0.85rem;
}

.textsize__btn:hover {
	background: var(--paper-3);
}

html:not(.js) .textsize {
	display: none;
}

.article__hero {
	margin: 0 auto 44px;
}

.article__img {
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 620px;
	object-fit: cover;
	border-radius: var(--radius-lg);
}

.article__hero figcaption {
	margin-top: 10px;
	font-size: 0.82rem;
	color: var(--muted);
	padding-inline: 4px;
}

.article__layout {
	display: grid;
	grid-template-columns: minmax(0, 720px);
	justify-content: center;
	column-gap: 56px;
	margin-bottom: 64px;
}

.article__layout.has-toc {
	grid-template-columns: 250px minmax(0, 720px);
}

.toc {
	position: relative;
}

.toc__box {
	position: sticky;
	top: calc(var(--head-h) + 24px);
	padding: 18px 18px 16px;
	border-radius: var(--radius);
	background: var(--card);
	box-shadow: inset 0 0 0 1px var(--line);
}

.admin-bar .toc__box {
	top: calc(var(--head-h) + 56px);
}

.toc__title {
	list-style: none;
	cursor: pointer;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--copper-ink);
	padding-bottom: 10px;
	margin-bottom: 8px;
	border-bottom: 1.5px dashed var(--line-strong);
}

.toc__title::-webkit-details-marker {
	display: none;
}

.toc__list {
	display: grid;
	gap: 2px;
	max-height: calc(100vh - 260px);
	overflow-y: auto;
	scrollbar-width: thin;
}

.toc__item a {
	position: relative;
	display: block;
	padding: 6px 8px 6px 14px;
	font-size: 0.88rem;
	line-height: 1.35;
	text-decoration: none;
	color: var(--ink-2);
	border-radius: 6px;
	transition: background-color 0.2s, color 0.2s;
}

.toc__item--h3 a {
	padding-left: 26px;
	font-size: 0.82rem;
}

.toc__item a::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 8px;
	bottom: 8px;
	width: 3px;
	border-radius: 3px;
	background: transparent;
	transition: background-color 0.2s;
}

.toc__item a:hover {
	background: var(--paper-2);
	color: var(--ink);
}

.toc__item a.is-active {
	color: var(--ink);
	font-weight: 700;
}

.toc__item a.is-active::before {
	background: var(--copper);
}

.toc__left {
	margin-top: 12px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--muted);
}

.toc__left:empty {
	display: none;
}

/* Straipsnio tekstas */
.entry-content {
	font-family: var(--serif);
	font-size: var(--fs-article);
	line-height: 1.78;
	color: var(--ink);
	overflow-wrap: break-word;
}

:root[data-fs="-1"] {
	--fs-article: 1.04rem;
}

:root[data-fs="1"] {
	--fs-article: 1.27rem;
}

:root[data-fs="2"] {
	--fs-article: 1.4rem;
}

.entry-content > * {
	margin-block: 0 1.3em;
}

.entry-content > p:first-of-type::first-letter {
	float: left;
	font-size: 3.6em;
	line-height: 0.85;
	font-weight: 700;
	padding: 0.06em 0.12em 0 0;
	color: var(--indigo);
}

:root[data-theme="dark"] .entry-content > p:first-of-type::first-letter {
	color: var(--copper);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.9em;
	margin-bottom: 0.6em;
	letter-spacing: -0.012em;
	scroll-margin-top: calc(var(--head-h) + 24px);
}

.entry-content h2 {
	font-size: 1.72em;
	font-weight: 700;
	padding-top: 0.55em;
	background: repeating-linear-gradient(90deg, var(--copper) 0 10px, transparent 10px 16px) 0 0 / 72px 2px no-repeat;
}

.entry-content h3 {
	font-size: 1.3em;
	font-weight: 700;
}

.entry-content h4 {
	font-size: 1.1em;
}

.entry-content a {
	color: var(--copper-ink);
	text-decoration-thickness: 1.5px;
}

.entry-content a:hover {
	text-decoration-style: dashed;
}

.entry-content strong {
	font-weight: 700;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content li {
	margin-bottom: 0.45em;
}

.entry-content ul li::marker {
	color: var(--copper);
	content: "● ";
	font-size: 0.8em;
}

.entry-content ol li::marker {
	color: var(--copper-ink);
	font-family: var(--sans);
	font-weight: 700;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
	position: relative;
	margin-inline: 0;
	padding: 0.6em 0 0.6em 1.4em;
	border-left: 3px dashed var(--copper);
	font-style: italic;
	font-size: 1.12em;
	color: var(--ink-2);
}

.entry-content .wp-block-pullquote {
	border-block: 2px dashed var(--copper);
	padding: 1.2em 0;
	text-align: center;
	font-size: 1.25em;
}

.entry-content cite {
	display: block;
	margin-top: 0.4em;
	font-family: var(--sans);
	font-style: normal;
	font-size: 0.75em;
	color: var(--muted);
}

.entry-content img {
	border-radius: 12px;
}

.entry-content figure {
	margin-inline: 0;
}

.entry-content figcaption,
.entry-content .wp-element-caption {
	margin-top: 0.6em;
	font-family: var(--sans);
	font-size: 0.8rem;
	color: var(--muted);
	text-align: left;
}

.entry-content .alignwide {
	margin-inline: min(-8vw, -90px);
	max-width: none;
}

.entry-content .alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.entry-content .alignleft {
	float: left;
	margin: 0.3em 1.4em 1em 0;
	max-width: 50%;
}

.entry-content .alignright {
	float: right;
	margin: 0.3em 0 1em 1.4em;
	max-width: 50%;
}

.entry-content .aligncenter {
	margin-inline: auto;
}

.entry-content hr,
.entry-content .wp-block-separator {
	border: 0;
	height: 2px;
	background: repeating-linear-gradient(90deg, var(--copper) 0 10px, transparent 10px 17px);
	margin-block: 2.4em;
	opacity: 0.85;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--sans);
	font-size: 0.88em;
}

.entry-content th,
.entry-content td {
	padding: 0.65em 0.8em;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	background: var(--paper-2);
	font-weight: 700;
}

.table-scroll,
.entry-content .wp-block-table {
	overflow-x: auto;
}

.entry-content pre,
.entry-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.85em;
	background: var(--paper-2);
	border-radius: 6px;
}

.entry-content code {
	padding: 0.1em 0.35em;
}

.entry-content pre {
	padding: 1em 1.2em;
	overflow-x: auto;
}

.entry-content .wp-block-button__link {
	border-radius: 999px;
	background: var(--indigo);
	color: #f6f3ec;
	font-family: var(--sans);
	font-weight: 700;
	text-decoration: none;
	outline: 1.5px dashed var(--copper);
	outline-offset: -6px;
	padding: 0.85em 1.6em;
}

.entry-content iframe {
	max-width: 100%;
	border-radius: 12px;
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

/* „Taip pat skaitykite“ */
.inline-read {
	position: relative;
	margin-block: 2em !important;
	padding: 18px;
	border-radius: var(--radius);
	background: var(--card);
	box-shadow: inset 0 0 0 1px var(--line);
	font-family: var(--sans);
}

.inline-read::before {
	content: "";
	position: absolute;
	inset: 6px;
	border: 1.5px dashed color-mix(in srgb, var(--copper) 60%, transparent);
	border-radius: calc(var(--radius) - 5px);
	pointer-events: none;
}

.inline-read__label {
	position: absolute;
	top: -12px;
	left: 22px;
	background: var(--tan);
	color: var(--tan-ink);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.35em 0.8em;
	border-radius: 5px;
}

.entry-content .inline-read__link {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 16px;
	align-items: center;
	text-decoration: none;
	color: var(--ink);
}

.inline-read__media {
	grid-row: span 2;
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 10px;
	background: var(--paper-3);
}

.inline-read .ph__letter,
.card--mini .ph__letter,
.upnext .ph__letter,
.card--wide .ph__letter {
	font-size: 2rem;
}

.inline-read .ph::before,
.card--mini .ph::before,
.upnext .ph::before {
	inset: 5px;
	border-radius: 7px;
}

.inline-read__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.inline-read__title {
	align-self: end;
	font-family: var(--serif);
	font-weight: 700;
	font-size: 1.08rem;
	line-height: 1.3;
}

.inline-read__link:hover .inline-read__title {
	text-decoration: underline;
}

.inline-read__meta {
	align-self: start;
	margin-top: 4px;
	font-size: 0.78rem;
	color: var(--muted);
}

.page-links {
	font-family: var(--sans);
	font-weight: 700;
}

/* Straipsnio pabaiga */
.article__foot {
	margin-top: 36px;
}

.article__layout.has-toc .article__foot {
	grid-column: 2;
}

.article__layout.has-toc .toc {
	grid-row: span 2;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 26px;
}

.article__share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px;
	border-radius: var(--radius);
	background: var(--denim-soft);
}

.article__share-q {
	font-family: var(--serif);
	font-weight: 600;
	font-size: 1.1rem;
}

.share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.share__label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin-right: 4px;
}

.share__btn {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 0;
	background: var(--card);
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--line);
	transition: background-color 0.2s, color 0.2s, transform 0.15s;
}

.share__btn:hover {
	background: var(--indigo);
	color: #f6f3ec;
	transform: translateY(-2px);
}

.share__btn .icon {
	width: 18px;
	height: 18px;
}

.next-reads {
	margin-bottom: 64px;
}

.postnav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 72px;
}

.postnav__item {
	display: grid;
	gap: 8px;
	padding: 24px 26px;
	border-radius: var(--radius);
	background: var(--card);
	box-shadow: inset 0 0 0 1px var(--line);
	text-decoration: none;
	transition: box-shadow 0.2s, transform 0.2s;
}

.postnav__item:hover {
	box-shadow: inset 0 0 0 2px var(--copper);
	transform: translateY(-2px);
}

.postnav__item--next {
	text-align: right;
	grid-column: 2;
}

.postnav__dir {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--copper-ink);
}

.postnav__title {
	font-family: var(--serif);
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.3;
}

/* „Kitas straipsnis“ kortelė */
.upnext {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 60;
	width: min(380px, calc(100vw - 110px));
	border-radius: var(--radius);
	background: var(--card);
	box-shadow: 0 20px 50px -20px rgba(10, 14, 30, 0.6), inset 0 0 0 1px var(--line);
	transform: translateY(140%);
	transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.upnext.is-visible {
	transform: none;
}

.upnext__link {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 12px 40px 12px 12px;
	text-decoration: none;
}

.upnext__media {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 10px;
	background: var(--paper-3);
}

.upnext__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.upnext__label {
	display: block;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--copper-ink);
}

.upnext__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-family: var(--serif);
	font-weight: 700;
	font-size: 0.98rem;
	line-height: 1.3;
}

.upnext__close {
	position: absolute;
	top: 6px;
	right: 6px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
}

.upnext__close:hover {
	background: var(--paper-2);
	color: var(--ink);
}

.upnext__close .icon {
	width: 16px;
	height: 16px;
}

/* ---------- 404 ---------- */
.notfound {
	padding-block: 40px 80px;
}

.notfound__hero {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 72px;
}

.notfound__code {
	display: inline-flex;
	align-items: center;
	gap: 0.08em;
	font-family: var(--num);
	font-size: clamp(6rem, 22vw, 12rem);
	line-height: 1;
	color: var(--indigo);
}

:root[data-theme="dark"] .notfound__code {
	color: var(--copper);
}

.notfound__rivet {
	display: inline-block;
	width: 0.62em;
	height: 0.62em;
	border-radius: 50%;
	border: 0.07em dashed var(--copper);
	background: radial-gradient(circle at 35% 35%, #ffd9b5 0 10%, var(--copper) 22%, #b0662c 52%, transparent 54%);
}

.notfound__title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	margin-top: 10px;
	font-style: italic;
}

.notfound__text {
	margin-top: 12px;
	font-size: 1.08rem;
	color: var(--ink-2);
}

.notfound__search {
	margin: 26px auto 18px;
	max-width: 560px;
}

.notfound__search .searchform {
	margin-inline: auto;
}

.notfound__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.notfound__popular .section-head__title {
	margin-bottom: 26px;
}

/* ---------- Poraštė ---------- */
.site-footer {
	position: relative;
	margin-top: 40px;
	color: #c9ccd8;
	background:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 6px),
		#0e1426;
	padding-top: 14px;
}

.footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
	padding-block: 56px 40px;
}

.footer__brand {
	display: inline-block;
	color: #f6f3ec;
	margin-bottom: 16px;
}

.footer__brand .brand__svg {
	height: 52px;
}

.footer__brand .brand__seam {
	color: var(--copper);
}

.footer__about p {
	font-size: 0.93rem;
	max-width: 38ch;
}

.footer__title {
	font-family: var(--sans);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--copper);
	margin-bottom: 14px;
}

.footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
	font-size: 0.93rem;
}

.footer__list a {
	text-decoration: none;
	color: #e6e7ee;
}

.footer__list a:hover {
	color: var(--copper);
	text-decoration: underline;
}

.footer__list--posts a {
	font-family: var(--serif);
	line-height: 1.35;
}

.social {
	display: flex;
	gap: 8px;
	margin-top: 18px;
}

.social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #f6f3ec;
}

.social a:hover {
	background: var(--copper);
	color: #1a0d03;
}

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	padding-block: 22px 30px;
	border-top: 1px dashed rgba(255, 255, 255, 0.15);
	font-size: 0.8rem;
	color: #9ba2b8;
}

.footer__made {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.footer__made .rivet {
	margin: 0;
}

/* ---------- Mygtukas „Į viršų“ ---------- */
.to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 70;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--indigo);
	color: #f6f3ec;
	text-decoration: none;
	box-shadow: 0 14px 30px -12px rgba(10, 14, 30, 0.7);
	transition: opacity 0.3s, transform 0.3s, background-color 0.2s;
}

html.js .to-top:not(.is-visible) {
	opacity: 0;
	transform: translateY(16px) scale(0.9);
	pointer-events: none;
}

.to-top:hover {
	background: var(--indigo-2);
}

.to-top > .icon {
	position: relative;
	width: 22px;
	height: 22px;
	transition: transform 0.2s;
}

.to-top:hover > .icon {
	transform: translateY(-3px);
}

.to-top__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.to-top__ring circle {
	fill: none;
	stroke-width: 2.5;
}

.to-top__track {
	stroke: rgba(246, 243, 236, 0.22);
	stroke-dasharray: 3 3.6;
}

.to-top__progress {
	stroke: var(--copper);
	stroke-linecap: round;
	stroke-dasharray: 100;
	stroke-dashoffset: calc(100 - var(--p, 0) * 100);
	transition: stroke-dashoffset 0.1s linear;
}

.to-top__label {
	position: absolute;
	right: calc(100% + 10px);
	white-space: nowrap;
	background: var(--ink);
	color: var(--paper);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.35em 0.7em;
	border-radius: 6px;
	opacity: 0;
	transform: translateX(6px);
	transition: 0.2s;
	pointer-events: none;
}

.to-top:hover .to-top__label,
.to-top:focus-visible .to-top__label {
	opacity: 1;
	transform: none;
}

/* ---------- Pranešimas ---------- */
.toast {
	position: fixed;
	left: 50%;
	bottom: 26px;
	z-index: 120;
	transform: translateX(-50%);
	background: var(--ink);
	color: var(--paper);
	padding: 0.7em 1.2em;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.9rem;
	box-shadow: var(--shadow);
}

/* ---------- Prisitaikymas ---------- */
@media (max-width: 1180px) {
	.front {
		grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	}
	.stream {
		grid-column: 1 / -1;
	}
	.stream__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 40px;
	}
	.stream__list::before {
		display: none;
	}
	.grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.band__inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.article__layout.has-toc {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 36px;
	}
	.entry-content .alignwide {
		margin-inline: 0;
	}
}

@media (max-width: 960px) {
	:root {
		--head-h: 64px;
	}
	.tool--menu {
		display: inline-flex;
	}
	.tool__label {
		display: none;
	}
	.nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
		padding: 10px var(--gutter) 22px;
		display: none;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
	}
	.nav.is-open {
		display: block;
	}
	.nav__list,
	.nav .menu {
		flex-direction: column;
	}
	.nav a {
		font-family: var(--serif);
		font-size: 1.3rem;
		padding: 0.55em 0.2em;
		border-bottom: 1px dashed var(--line);
		border-radius: 0;
		background-image: none;
	}
	.nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: transparent;
		padding: 0 0 0 16px;
	}
	.brand__svg {
		height: 42px;
	}
	.front {
		grid-template-columns: 1fr;
	}
	.front__second {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.catblock__grid {
		grid-template-columns: 1fr;
	}
	.mosaic {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.timebox__head {
		grid-template-columns: 1fr;
	}
	.article__layout.has-toc {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}
	.article__layout.has-toc .article__foot {
		grid-column: auto;
	}
	.article__layout.has-toc .toc {
		grid-row: auto;
	}
	.toc {
		margin-bottom: 28px;
	}
	.toc__box {
		position: static;
	}
	.toc__list {
		max-height: none;
	}
	.toc__title {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 0;
		border-bottom: 0;
		padding-bottom: 0;
	}
	.toc__title::after {
		content: "+";
		font-size: 1.3rem;
		line-height: 1;
	}
	.toc__box[open] .toc__title {
		border-bottom: 1.5px dashed var(--line-strong);
		padding-bottom: 10px;
		margin-bottom: 8px;
	}
	.toc__box[open] .toc__title::after {
		content: "−";
	}
	.strip__nav {
		display: none;
	}
}

@media (max-width: 700px) {
	.topbar__date {
		display: none;
	}
	.tool--dice {
		box-shadow: none;
	}
	.front__second,
	.grid--3,
	.grid--4,
	.band__cards {
		grid-template-columns: 1fr;
	}
	.front__second .card,
	.band__cards .card {
		display: grid;
		grid-template-columns: 116px minmax(0, 1fr);
		gap: 14px;
		align-items: center;
	}
	.front__second .card__media,
	.band__cards .card__media {
		aspect-ratio: 1;
	}
	.card--lead .card__body {
		margin: -48px 12px 0;
		padding: 18px 18px 16px;
	}
	.card--wide {
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 16px;
		align-items: start;
	}
	.card--wide .card__media {
		aspect-ratio: 1;
		border-radius: 12px;
	}
	.card--wide .card__excerpt {
		display: none;
	}
	.mosaic {
		grid-template-columns: 1fr;
	}
	.mosaic > .card:first-child {
		grid-column: auto;
		grid-row: auto;
	}
	.stream__list {
		grid-template-columns: 1fr;
	}
	.postnav {
		grid-template-columns: 1fr;
	}
	.postnav__item--next {
		grid-column: auto;
	}
	.footer__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.textsize {
		margin-left: 0;
	}
	.article__share {
		padding: 18px;
	}
	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		margin: 0 0 1.3em;
		max-width: 100%;
	}
	.to-top {
		width: 52px;
		height: 52px;
		right: 14px;
		bottom: 14px;
	}
	.upnext {
		left: 12px;
		bottom: 12px;
		width: calc(100vw - 90px);
	}
	.timebox__tab {
		flex: 1 1 30%;
		padding: 0.6em 0.8em;
	}
	.timebox__tab span {
		display: none;
	}
}

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

@media print {
	.topbar,
	.masthead,
	.rail,
	.toc,
	.share,
	.article__share,
	.next-reads,
	.postnav,
	.catblock,
	.site-footer,
	.to-top,
	.upnext,
	.readbar,
	.inline-read,
	.textsize {
		display: none !important;
	}
	body {
		background: #fff;
		color: #000;
	}
	.article__layout {
		display: block;
	}
}
