/*
Theme Name: Festivalis
Theme URI: https://europeade.lt/
Author: Naujienų festivalis
Description: Unikali, greita ir SEO optimizuota naujienų portalo tema „Naujienų festivaliui“. Lietuviškos juostos ornamentas, „scenų“ struktūra, populiariausių įrašų skaitiklis, susiję straipsniai, turinio navigacija, skaitymo progresas, tamsus režimas ir mygtukas „Į viršų“. Veikia be papildomų įskiepių.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.2
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: festivalis
Tags: news, blog, two-columns, custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. Šriftai (talpinami temoje — jokių užklausų į Google)
   ========================================================================== */
@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
	font-weight: 400 600;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Instrument Sans";
	src: url("assets/fonts/instrument-sans.woff2") format("woff2");
	font-weight: 400 700;
	font-stretch: 75% 100%;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   2. Spalvos ir kintamieji
   ========================================================================== */
:root {
	--paper: #F6F1E7;
	--paper-2: #EDE5D5;
	--card: #FFFCF5;
	--ink: #1E1B33;
	--ink-2: #4A4660;
	--ink-3: #5A5570;
	--line: rgba(30, 27, 51, .14);
	--line-strong: rgba(30, 27, 51, .85);
	--amber: #F0A830;
	--red: #D2452F;
	--red-text: #B23A2B;
	--panel: #1E1B33;
	--on-panel: #F6F1E7;
	--on-panel-2: #C9C3D8;
	--shadow: 5px 5px 0 var(--ink);
	--shadow-sm: 3px 3px 0 var(--ink);

	--t0: #B23A2B; --t1: #2D6A4F; --t2: #3549A6; --t3: #8B3A72; --t4: #1D6E74; --t5: #8F5B00;

	--serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 16px;
	--radius-sm: 10px;
	--header-h: 68px;
	--ease: cubic-bezier(.2, .7, .2, 1);

	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--sash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10' viewBox='0 0 20 10'%3E%3Crect width='20' height='10' fill='%231E1B33'/%3E%3Cpath d='M10 0 15 5 10 10 5 5z' fill='%23D2452F'/%3E%3Cpath d='M10 3.2 11.8 5 10 6.8 8.2 5z' fill='%23F6F1E7'/%3E%3Cpath d='M0 2.5 2.5 5 0 7.5zM20 2.5 17.5 5 20 7.5z' fill='%23F0A830'/%3E%3C/svg%3E");

	color-scheme: light;
}

:root[data-theme="dark"] {
	--paper: #14121F;
	--paper-2: #1A1828;
	--card: #1E1B2E;
	--ink: #F2ECE0;
	--ink-2: #C3BDD2;
	--ink-3: #A9A3BA;
	--line: rgba(242, 236, 224, .14);
	--line-strong: rgba(242, 236, 224, .8);
	--red-text: #FF8A73;
	--panel: #0D0C16;
	--on-panel: #F2ECE0;
	--on-panel-2: #B8B2C8;
	--shadow: 5px 5px 0 #000;
	--shadow-sm: 3px 3px 0 #000;
	--t0: #FF8A73; --t1: #7FD1A8; --t2: #9DB0FF; --t3: #F09BD8; --t4: #7FD6DC; --t5: #F6C26B;
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #14121F;
		--paper-2: #1A1828;
		--card: #1E1B2E;
		--ink: #F2ECE0;
		--ink-2: #C3BDD2;
		--ink-3: #A9A3BA;
		--line: rgba(242, 236, 224, .14);
		--line-strong: rgba(242, 236, 224, .8);
		--red-text: #FF8A73;
		--panel: #0D0C16;
		--on-panel: #F2ECE0;
		--on-panel-2: #B8B2C8;
		--shadow: 5px 5px 0 #000;
		--shadow-sm: 3px 3px 0 #000;
		--t0: #FF8A73; --t1: #7FD1A8; --t2: #9DB0FF; --t3: #F09BD8; --t4: #7FD6DC; --t5: #F6C26B;
		color-scheme: dark;
	}
}

.tone-0 { --tone: var(--t0); } .tone-1 { --tone: var(--t1); } .tone-2 { --tone: var(--t2); }
.tone-3 { --tone: var(--t3); } .tone-4 { --tone: var(--t4); } .tone-5 { --tone: var(--t5); }

/* ==========================================================================
   3. Pagrindai
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	background: var(--paper) var(--grain);
	scroll-padding-top: calc(var(--header-h) + 24px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var(--ink);
	background: transparent;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--red-text); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 650; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--amber); color: #1E1B33; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: var(--radius-sm); text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--paper); }
.site-main { display: block; min-height: 60vh; }
.site-main:focus { outline: none; }

.icon { flex: none; }
.eyebrow { display: inline-block; font: 700 .75rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red-text); font-stretch: 85%; }

/* Juostos ornamentas */
.sash { position: relative; height: 12px; background: var(--sash) repeat-x left center / 24px 12px; z-index: 60; }
.sash__progress { display: none; }
.is-article .sash:not(.sash--static) { position: sticky; top: 0; background-color: var(--paper-2); background-image: none; }
.is-article .sash:not(.sash--static)::before { content: ""; position: absolute; inset: 0; background: var(--sash) repeat-x left center / 24px 12px; opacity: .22; }
.is-article .sash__progress {
	display: block; position: absolute; inset: 0;
	background: var(--sash) repeat-x left center / 24px 12px;
	clip-path: inset(0 calc(100% - var(--p, 0) * 100%) 0 0);
}

/* Mygtukai, žymos */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .8em 1.3em; border: 0; border-radius: 12px;
	background: var(--ink); color: var(--paper);
	font: 650 .95rem/1 var(--sans); text-decoration: none;
	box-shadow: 4px 4px 0 var(--amber);
	transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { color: var(--paper); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--amber); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--amber); }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--ghost:hover { color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.btn--small { padding: .6em 1em; font-size: .85rem; }
.btn--big { padding: 1em 1.8em; font-size: 1.05rem; }
.btn .icon { width: 18px; height: 18px; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px;
	border: 1.5px solid var(--line); border-radius: 12px; background: var(--card);
	transition: border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); transform: rotate(-4deg); }

.kicker {
	position: relative; z-index: 2;
	display: inline-flex; align-items: center; gap: .5em;
	font: 700 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; font-stretch: 85%;
	color: var(--tone, var(--red-text)); text-decoration: none; margin-bottom: .55em;
}
.kicker::before { content: ""; width: .62em; height: .62em; background: currentColor; transform: rotate(45deg); }
a.kicker:hover { color: var(--ink); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; gap: .45em; padding: .45em .9em;
	border: 1.5px solid color-mix(in srgb, var(--tone, var(--ink)) 45%, transparent);
	background: color-mix(in srgb, var(--tone, var(--ink)) 9%, var(--card));
	color: var(--tone, var(--ink)); border-radius: 999px; text-decoration: none;
	font: 600 .9rem/1.1 var(--sans); white-space: nowrap;
	transition: background .2s, color .2s, transform .2s var(--ease);
}
.chip:hover { background: var(--tone, var(--ink)); color: var(--paper); transform: translateY(-2px); }
.chip .count { font-size: .75em; opacity: .75; font-variant-numeric: tabular-nums; }

/* Rombas */
.rhombus { width: 1em; height: 1em; fill: var(--amber); }
.rhombus__in { fill: var(--red); }

/* ==========================================================================
   4. Antraštė
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--line);
}
.is-article .site-header { top: 12px; }
.header-bar { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { margin: 0; font-size: 1rem; line-height: 1; }
.brand__link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__link:hover { color: var(--ink); }
.brand__mark { width: 42px; height: 42px; flex: none; transition: transform .5s var(--ease); }
.brand__link:hover .brand__mark { transform: rotate(90deg); }
.brand__text { display: flex; flex-direction: column; }
.brand__kicker { font: 700 .66rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--red-text); font-stretch: 85%; margin-bottom: 3px; }
.brand__name { font: 750 1.6rem/.95 var(--serif); letter-spacing: -.02em; }
.custom-logo { max-height: 52px; width: auto; }

.site-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.nav-list a {
	position: relative; display: block; padding: 8px 12px; border-radius: 10px;
	font: 600 .95rem/1.2 var(--sans); text-decoration: none; color: var(--ink);
}
.nav-list a::after {
	content: ""; position: absolute; left: 50%; bottom: 0; width: 7px; height: 7px;
	background: var(--tone, var(--red)); transform: translate(-50%, 4px) rotate(45deg) scale(0);
	transition: transform .25s var(--ease);
}
.nav-list a:hover::after, .nav-list [aria-current="page"]::after, .nav-list .current-menu-item > a::after { transform: translate(-50%, 4px) rotate(45deg) scale(1); }
.nav-list a:hover { color: var(--ink); background: color-mix(in srgb, var(--tone, var(--ink)) 8%, transparent); }
.nav-list .sub-menu { list-style: none; margin: 0; padding: 0; }
.header-tools { display: flex; gap: 8px; }
.menu-toggle { display: none; }
.theme-toggle .icon--sun, .menu-toggle .icon--close, .menu-toggle[aria-expanded="true"] .icon--menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }
:root[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .icon--sun { display: block; }
	:root:not([data-theme="light"]) .theme-toggle .icon--moon { display: none; }
}

@media (max-width: 1020px) {
	.site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
	body.nav-open .site-header { z-index: 90; }
	.menu-toggle { display: inline-grid; position: relative; z-index: 85; }
	.header-bar { gap: 12px; }
	.brand { margin-right: auto; }
	.brand__name { font-size: 1.35rem; }
	.brand__mark { width: 36px; height: 36px; }
	.site-nav {
		position: fixed; inset: 0 auto 0 0; z-index: 80; width: min(86vw, 380px);
		padding: 88px 24px 24px; margin: 0; overflow-y: auto;
		background: var(--paper); border-right: 2px solid var(--ink); box-shadow: 12px 0 0 rgba(0,0,0,.08);
		transform: translateX(-105%); visibility: hidden;
		transition: transform .35s var(--ease), visibility 0s .35s;
	}
	.site-nav.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
	.nav-list { flex-direction: column; gap: 2px; }
	.nav-list a { font: 650 1.45rem/1.2 var(--serif); padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav-list a::after { left: auto; right: 10px; bottom: 50%; transform: translate(0, 50%) rotate(45deg) scale(1); width: 9px; height: 9px; }
	.nav-list a:hover::after { transform: translate(0, 50%) rotate(45deg) scale(1.3); }
	.nav-list .sub-menu a { font-size: 1.1rem; padding-left: 24px; }
	body.nav-open::before { content: ""; position: fixed; inset: 0; z-index: 70; background: rgba(20, 18, 31, .5); }
}

/* Naujienų juosta */
.ticker { background: var(--panel); color: var(--on-panel); font-size: .88rem; }
.ticker__inner { display: flex; align-items: center; gap: 14px; height: 38px; overflow: hidden; }
.ticker__today { flex: none; font: 600 .78rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); font-stretch: 85%; }
.ticker__today:empty { display: none; }
.ticker__label { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; background: var(--red); color: #fff; font: 700 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.ticker__label .rhombus { width: .9em; height: .9em; fill: #fff; }
.ticker__label .rhombus__in { fill: var(--red); }
.ticker__track { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); }
.ticker__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; width: max-content; }
.ticker__list li { display: flex; align-items: center; white-space: nowrap; }
.ticker__list li::after { content: ""; width: 6px; height: 6px; margin: 0 22px; background: var(--amber); transform: rotate(45deg); }
.ticker__list a { color: var(--on-panel); text-decoration: none; }
.ticker__list a:hover { color: var(--amber); text-decoration: underline; }
.ticker__track.is-running .ticker__list { animation: fest-ticker var(--dur, 60s) linear infinite; }
.ticker__track.is-running:hover .ticker__list, .ticker__track.is-running:focus-within .ticker__list { animation-play-state: paused; }
@keyframes fest-ticker { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .ticker__today { display: none; } }

/* Paieška */
.search-dialog { width: min(760px, calc(100vw - 24px)); max-width: none; margin: 10vh auto auto; padding: 0; border: 2px solid var(--ink); border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 10px 10px 0 var(--amber); }
.search-dialog::backdrop { background: rgba(20, 18, 31, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.search-dialog[open] { animation: fest-pop .3s var(--ease); }
@keyframes fest-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.search-dialog__inner { position: relative; padding: clamp(22px, 4vw, 40px); }
.search-dialog__close { position: absolute; right: 16px; top: 16px; }
.search-dialog__title { font: 700 clamp(1.6rem, 4vw, 2.3rem)/1.1 var(--serif); margin: 0 0 18px; }
.search-dialog__hint { margin: 22px 0 10px; color: var(--ink-2); font-size: .92rem; }
.search-form { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); }
.search-form .icon { color: var(--ink-3); }
.search-form__input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 1.15rem/1.3 var(--sans); padding: 8px 0; }
.search-form__input:focus { outline: none; }
.search-form:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 45%, transparent); }
.search-form__btn { box-shadow: none; }
.search-form__btn:hover { box-shadow: none; transform: none; background: var(--red); }

/* ==========================================================================
   5. Paveikslėliai ir pakaitalai
   ========================================================================== */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); isolation: isolate; }
.media img, .media .media__ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.media__ph {
	display: grid; place-items: center;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.22' stroke-width='1.5'%3E%3Cpath d='M24 4 44 24 24 44 4 24z'/%3E%3Cpath d='M24 14 34 24 24 34 14 24z'/%3E%3C/g%3E%3Cpath d='M24 21 27 24 24 27 21 24z' fill='%23fff' fill-opacity='.35'/%3E%3C/svg%3E") center / 48px 48px,
		linear-gradient(135deg, var(--tone, var(--t0)), color-mix(in srgb, var(--tone, var(--t0)) 55%, #1E1B33));
}
.media__ph-letter { font: 800 clamp(3rem, 9vw, 6rem)/1 var(--serif); color: rgba(255, 255, 255, .92); text-shadow: 4px 4px 0 rgba(0, 0, 0, .18); }

/* ==========================================================================
   6. Kortelės
   ========================================================================== */
.card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.card__media { aspect-ratio: 16 / 10; }
.card__title { font-size: clamp(1.18rem, 1.6vw, 1.38rem); font-weight: 650; margin: 0 0 .35em; }
.card__link { text-decoration: none; color: var(--ink); background: linear-gradient(var(--tone, var(--red)), var(--tone, var(--red))) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__link, .hero:hover .card__link, .row-card:hover .card__link, .long-card:hover .card__link { background-size: 100% 2px; color: var(--ink); }
.card:hover .media img, .card:hover .media__ph, .hero:hover .media img, .long-card:hover .media img, .row-card:hover .media img { transform: scale(1.045); }
.card__excerpt { color: var(--ink-2); font-size: .97rem; margin: 0 0 .7em; }
.meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-3); font-size: .82rem; font-variant-numeric: tabular-nums; }
.meta__dot { width: 4px; height: 4px; background: currentColor; transform: rotate(45deg); opacity: .6; }
.card .kicker, .hero .kicker { align-self: flex-start; }

.card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding-bottom: 32px; border-bottom: 2px solid var(--line-strong); }
.card--wide .card__title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.card--wide .card__excerpt { font-size: 1.08rem; }
@media (max-width: 760px) { .card--wide { grid-template-columns: 1fr; } }

/* Didžioji naujiena */
.hero { position: relative; display: grid; }
.hero__media { aspect-ratio: 16 / 10; border-radius: 22px; }
.hero__body {
	position: relative; z-index: 2;
	margin: -90px 0 0 clamp(14px, 3vw, 32px); width: min(88%, 640px);
	padding: clamp(18px, 2.6vw, 30px);
	background: var(--card); border: 2px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow);
}
.hero__title { font-size: clamp(1.75rem, 3.6vw, 2.9rem); font-weight: 700; margin: 0 0 .35em; letter-spacing: -.02em; }
.hero__excerpt { color: var(--ink-2); font-size: 1.05rem; margin-bottom: .8em; }
.hero .card__link::after { border-radius: 22px; }
@media (max-width: 640px) {
	.hero__body { margin: -48px 10px 0; width: auto; }
}

/* Eilutės kortelė */
.row-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row-card:last-child { border-bottom: 0; }
.row-card__body { grid-column: 2; min-width: 0; }
.row-card:not(:has(.row-card__num)) .row-card__body { grid-column: 1 / 3; }
.row-card__title { font-size: 1.12rem; font-weight: 620; margin: 0 0 .35em; }
.row-card__media { grid-column: 3; width: 92px; aspect-ratio: 1; border-radius: 12px; }
.row-card__media .media__ph-letter { font-size: 2.4rem; }
.row-card__num { grid-column: 1; font: 800 2.6rem/.9 var(--serif); color: var(--amber); min-width: 1.1em; font-variant-numeric: lining-nums; }
.row-card .kicker { margin-bottom: .35em; }

/* Ilgiems skaitiniams */
.long-list { display: grid; gap: 22px; }
.long-card { position: relative; display: grid; grid-template-columns: minmax(140px, 240px) 1fr; gap: 20px; align-items: center; }
.long-card__media { aspect-ratio: 4 / 3; }
.long-card__rt { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; margin-bottom: 10px; border-radius: 999px; background: var(--amber); color: #1E1B33; font: 700 .78rem/1 var(--sans); }
.long-card__rt .icon { width: 14px; height: 14px; }
.long-card__title { font-size: clamp(1.15rem, 1.8vw, 1.45rem); margin: 0 0 .35em; }
@media (max-width: 520px) { .long-card { grid-template-columns: 110px 1fr; gap: 14px; } .long-card .card__excerpt { display: none; } }

/* ==========================================================================
   7. Pradžios puslapio sekcijos
   ========================================================================== */
.lead { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); padding-block: clamp(24px, 4vw, 44px); }
.lead__side { align-self: start; }
.lead__side-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding-bottom: 12px; border-bottom: 2px solid var(--line-strong); font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; font-stretch: 85%; }
@media (max-width: 900px) { .lead { grid-template-columns: 1fr; } }

.topics { display: flex; align-items: center; gap: 16px; padding-block: 6px 10px; }
.topics__label { flex: none; font: italic 600 1.05rem/1 var(--serif); color: var(--ink-2); }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 6px 2px 10px; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
.chips--scroll::-webkit-scrollbar { display: none; }
@media (max-width: 640px) { .topics__label { display: none; } }

.sec { padding-block: clamp(32px, 5vw, 60px); }
.sec-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 6px 18px; margin-bottom: clamp(20px, 3vw, 32px); padding-bottom: 14px; border-bottom: 2px solid var(--line-strong); position: relative; }
.sec-head::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 12px; height: 12px; background: var(--tone, var(--red)); border: 2px solid var(--paper); transform: rotate(45deg); }
.sec-head__num { font: 800 clamp(2.6rem, 6vw, 4.2rem)/.8 var(--serif); color: transparent; -webkit-text-stroke: 1.5px var(--ink); font-variant-numeric: lining-nums; }
.sec-head__kicker { display: block; font: 700 .72rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; font-stretch: 85%; color: var(--tone, var(--red-text)); margin-bottom: 6px; }
.sec-head__title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
.sec-head__link { display: inline-flex; align-items: center; gap: 6px; font: 650 .92rem/1 var(--sans); text-decoration: none; padding: 8px 0; white-space: nowrap; }
.sec-head__link .icon { transition: transform .25s var(--ease); }
.sec-head__link:hover .icon { transform: translateX(4px); }
@media (max-width: 560px) { .sec-head { grid-template-columns: auto 1fr; } .sec-head__link { grid-column: 1 / -1; } }

.grid { display: grid; gap: clamp(24px, 3vw, 40px) clamp(18px, 2.5vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.grid--4 .card__title { font-size: 1.12rem; }
.compact-list { gap: 0 32px; }
.compact-list .row-card:last-child { border-bottom: 1px solid var(--line); }

.sec--split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .sec--split { grid-template-columns: 1fr; } }
.popular { padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: var(--panel); color: var(--on-panel); --line-strong: rgba(246, 241, 231, .5); --line: rgba(246, 241, 231, .14); --ink: var(--on-panel); --ink-3: var(--on-panel-2); --paper: var(--panel); }
.popular .sec-head__num { -webkit-text-stroke-color: var(--amber); }
.popular .card__link { color: var(--on-panel); }
.popular .card:hover .card__link, .popular .row-card:hover .card__link { color: var(--on-panel); }
.popular .kicker { --tone: var(--amber); }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li:last-child .row-card { border-bottom: 0; }

.scene { padding-block: clamp(36px, 5vw, 64px); background: color-mix(in srgb, var(--tone) 7%, var(--paper)); border-top: 4px solid var(--tone); position: relative; }
.scene::before { content: ""; position: absolute; left: 50%; top: -12px; width: 20px; height: 20px; background: var(--tone); border: 4px solid var(--paper); transform: translateX(-50%) rotate(45deg); }
.scene .sec-head__num { -webkit-text-stroke-color: var(--tone); }
.scene__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.scene--flip .scene__grid > .card { order: 2; }
.card--feature .card__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.card--feature .card__media { aspect-ratio: 3 / 2; }
@media (max-width: 900px) { .scene__grid { grid-template-columns: 1fr; } .scene--flip .scene__grid > .card { order: 0; } }

.more-cta { display: flex; justify-content: center; padding-block: 10px 64px; }
.empty-state { padding-block: 60px; text-align: center; }
.empty-state .search-form { max-width: 560px; margin: 20px auto 0; }

/* ==========================================================================
   8. Archyvų antraštės
   ========================================================================== */
.page-head { padding-block: clamp(28px, 5vw, 56px) 8px; }
.page-head--archive { padding-bottom: clamp(24px, 4vw, 40px); background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 10%, var(--paper)), var(--paper)); border-bottom: 1px solid var(--line); }
.page-head--archive .eyebrow { color: var(--tone); }
.page-head__title { font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 750; letter-spacing: -.03em; margin: .15em 0 .25em; }
.page-head__desc { max-width: 720px; color: var(--ink-2); font-size: 1.1rem; }
.page-head__count { font: 600 .9rem/1 var(--sans); color: var(--ink-3); }
.page-head__search { max-width: 640px; margin-top: 18px; }
.page-head .chips { margin-top: 16px; }

.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--ink-3); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; border: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Puslapiavimas */
.load-more { display: flex; justify-content: center; margin-top: 48px; }
.js .load-more + .pagination { margin-top: 20px; }
.pagination ul { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.pagination a:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .dots { border: 0; }

/* ==========================================================================
   9. Straipsnis
   ========================================================================== */
.article-head { padding-block: clamp(26px, 5vw, 56px) clamp(20px, 3vw, 32px); }
.article-head--plain {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 6 50 28 28 50 6 28z' fill='none' stroke='%23888' stroke-opacity='.18' stroke-width='1.2'/%3E%3C/svg%3E") center / 56px 56px,
		linear-gradient(180deg, color-mix(in srgb, var(--tone) 9%, var(--paper)), var(--paper));
	border-bottom: 1px solid var(--line);
	margin-bottom: clamp(24px, 4vw, 40px);
}
.article-head__inner { max-width: 940px; }
.article-title { font-size: clamp(2rem, 5.2vw, 3.7rem); font-weight: 720; letter-spacing: -.025em; line-height: 1.06; margin: .1em 0 .35em; }
.article-standfirst { font: italic 450 clamp(1.15rem, 2vw, 1.4rem)/1.45 var(--serif); color: var(--ink-2); max-width: 780px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-3); }
.article-meta__author { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; color: var(--ink); }
.article-meta__mark { width: 30px; height: 30px; }
.article-meta__date { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.article-meta__upd { font-style: italic; }
.article-meta__rt { display: inline-flex; align-items: center; gap: 6px; }
.article-meta__rt .icon { width: 16px; height: 16px; }
.share { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.share--head { margin-left: auto; }
.share__label { font: 700 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-right: 4px; font-stretch: 85%; }
.share__btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; transition: transform .2s var(--ease), background .2s, color .2s; }
.share__btn .icon { width: 17px; height: 17px; }
.share__btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px) rotate(-6deg); }
.share__btn.is-done { background: var(--t1); color: #fff; }

.article-hero { margin: 0 auto clamp(28px, 4vw, 48px); }
.article-hero .media { border-radius: 22px; aspect-ratio: 16 / 9; }
.article-hero figcaption { margin-top: 10px; font-size: .85rem; color: var(--ink-3); }

.article-layout { display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; gap: 56px; }
.article-layout.has-toc { grid-template-columns: 240px minmax(0, 720px); }
.article-layout--page { margin-bottom: 64px; }
@media (max-width: 1020px) { .article-layout.has-toc { grid-template-columns: minmax(0, 720px); gap: 0; } }

.toc { position: relative; }
.toc__box { position: sticky; top: calc(var(--header-h) + 60px); }
.toc__title { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 700 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 2px solid var(--line-strong); font-stretch: 85%; }
.toc__title::-webkit-details-marker { display: none; }
.toc__title::after { content: ""; width: 8px; height: 8px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); transition: transform .2s; }
.toc__box[open] .toc__title::after { transform: rotate(-135deg); }
.toc__list { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: toc; }
.toc__item a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); font-size: .9rem; line-height: 1.35; color: var(--ink-2); text-decoration: none; transition: border-color .2s, color .2s; }
.toc__item--h3 a { padding-left: 28px; font-size: .84rem; }
.toc__item a:hover, .toc__item a.is-active { color: var(--ink); border-left-color: var(--tone, var(--red)); }
.toc__item a.is-active { font-weight: 650; }
.toc__remaining { margin-top: 16px; font-size: .82rem; color: var(--ink-3); }
@media (max-width: 1020px) {
	.toc { margin-bottom: 28px; }
	.toc__box { position: static; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); box-shadow: var(--shadow-sm); }
	.toc__box:not([open]) .toc__title { padding-bottom: 0; border-bottom: 0; }
	.toc__remaining { display: none; }
}

/* Straipsnio tekstas */
.entry-content { font-family: var(--serif); font-size: clamp(1.1rem, 1.25vw, 1.22rem); line-height: 1.72; font-optical-sizing: auto; min-width: 0; overflow-wrap: break-word; }
.entry-content > * { margin-block: 0 1.15em; }
.entry-content > p:first-of-type::first-letter { float: left; font-size: 4.6em; line-height: .82; font-weight: 750; margin: .07em .1em 0 0; color: var(--tone, var(--red-text)); }
.entry-content h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin: 1.8em 0 .6em; position: relative; padding-top: .7em; }
.entry-content h2::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 4px; background: var(--sash) repeat-x left center / 20px 10px; }
.entry-content h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 1.6em 0 .5em; }
.entry-content h4 { font-size: 1.15rem; margin: 1.4em 0 .5em; }
.entry-content a { color: var(--ink); text-decoration-color: var(--tone, var(--red)); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.entry-content a:hover { background: color-mix(in srgb, var(--tone, var(--red)) 14%, transparent); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .45em; }
.entry-content ul > li { list-style: none; position: relative; }
.entry-content ul > li::before { content: ""; position: absolute; left: -1.05em; top: .66em; width: .42em; height: .42em; background: var(--tone, var(--red)); transform: rotate(45deg); }
.entry-content ol > li::marker { font-weight: 750; color: var(--tone, var(--red-text)); }
.entry-content blockquote, .entry-content .wp-block-quote, .entry-content .wp-block-pullquote { margin: 1.8em 0; padding: 1.2em 0 0 0; border: 0; border-top: 2px solid var(--line-strong); font-style: italic; font-size: 1.22em; line-height: 1.5; position: relative; }
.entry-content blockquote::before { content: "“"; position: absolute; top: .05em; right: 0; font: 800 4.2em/1 var(--serif); color: var(--amber); }
.entry-content blockquote cite, .entry-content figcaption { display: block; margin-top: .6em; font: normal 500 .82rem/1.4 var(--sans); color: var(--ink-3); }
.entry-content img { border-radius: 14px; height: auto; }
.entry-content figure { margin-inline: 0; }
.entry-content .alignwide { width: min(100vw - var(--gutter) * 2, 960px); margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font: .92rem/1.45 var(--sans); display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--paper-2); }
.entry-content hr { border: 0; height: 10px; background: var(--sash) repeat-x center / 20px 10px; opacity: .8; margin: 2.4em auto; width: 120px; }
.entry-content code, .entry-content pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
.entry-content pre { padding: 16px; border-radius: 12px; background: var(--paper-2); overflow-x: auto; }
.entry-content .wp-block-button__link { border-radius: 12px; background: var(--ink); color: var(--paper); text-decoration: none; }
.entry-content iframe { width: 100%; border-radius: 14px; }
.entry-content strong { font-weight: 700; }

.inline-related { margin: 2em 0 !important; padding: 16px 0; border-block: 2px solid var(--line-strong); font-family: var(--sans); }
.inline-related__label { display: flex; align-items: center; gap: 8px; font: 700 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--tone, var(--red-text)); margin-bottom: 12px; font-stretch: 85%; }
.inline-related__link { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; text-decoration: none !important; background: none !important; }
.inline-related__media { display: block; width: 76px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.inline-related__media img, .inline-related__media .media__ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: grid; }
.inline-related__media .media__ph-letter { font-size: 2rem; }
.inline-related__title { font: 650 1.12rem/1.3 var(--serif); }
.inline-related__link:hover .inline-related__title { text-decoration: underline; text-decoration-color: var(--tone, var(--red)); }

.article-foot { max-width: calc(720px + var(--gutter) * 2); padding-block: 12px 32px; }
.article-tags { margin-bottom: 26px; }
.article-tags .chip { --tone: var(--ink-2); }
.article-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; border: 2px dashed var(--line-strong); border-radius: 18px; }
.article-end__text { margin: 0; font: 650 1.12rem/1.3 var(--serif); }
.next-read { margin-top: 32px; position: relative; display: grid; grid-template-columns: minmax(0, .9fr) 1fr; gap: 0; border-radius: 22px; overflow: hidden; background: var(--panel); color: var(--on-panel); text-decoration: none; box-shadow: 6px 6px 0 var(--tone, var(--amber)); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.next-read:hover { color: var(--on-panel); transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--tone, var(--amber)); }
.next-read__media { border-radius: 0; min-height: 200px; }
.next-read__body { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: clamp(20px, 3vw, 32px); }
.next-read .eyebrow { color: var(--amber); }
.next-read__title { font: 700 clamp(1.3rem, 2.4vw, 1.75rem)/1.2 var(--serif); }
.next-read__meta { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--on-panel-2); }
.next-read__meta .icon { transition: transform .25s var(--ease); }
.next-read:hover .next-read__meta .icon { transform: translateX(6px); }
@media (max-width: 640px) { .next-read { grid-template-columns: 1fr; } .next-read__media { aspect-ratio: 16 / 9; min-height: 0; } }

.next-toast {
	position: fixed; left: 16px; bottom: 16px; z-index: 40; width: min(380px, calc(100vw - 104px));
	display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: start;
	padding: 14px 14px 14px 18px; background: var(--card); border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow);
	transform: translateY(140%); transition: transform .45s var(--ease);
}
.next-toast.is-visible { transform: none; }
.next-toast__label { grid-column: 1; font: 700 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red-text); font-stretch: 85%; }
.next-toast__link { grid-column: 1; font: 650 1rem/1.3 var(--serif); text-decoration: none; display: inline; }
.next-toast__link .icon { width: 16px; height: 16px; vertical-align: -3px; }
.next-toast__close { grid-column: 2; grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 10px; }

/* ==========================================================================
   10. Bilietas į archyvą
   ========================================================================== */
.ticket-zone { padding-block: clamp(40px, 6vw, 72px); background: var(--paper-2); border-top: 1px solid var(--line); }
.ticket-zone__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.ticket-zone__title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 720; margin: .3em 0 .4em; }
.ticket-zone__text { color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .ticket-zone__inner { grid-template-columns: 1fr; } }

.ticket {
	--notch: 14px;
	position: relative; display: grid; grid-template-columns: 1fr 200px;
	background: var(--card); border: 2px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow);
	transition: transform .35s var(--ease);
}
.ticket.is-flipping { transform: rotate(-1.5deg) scale(.98); }
.ticket__main { padding: clamp(20px, 3vw, 30px); min-width: 0; }
.ticket__cat { display: inline-block; font: 700 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red-text); margin-bottom: 10px; font-stretch: 85%; }
.ticket__title { font-size: clamp(1.25rem, 2.3vw, 1.65rem); margin: 0 0 .45em; }
.ticket__title a { text-decoration: none; }
.ticket__title a:hover { text-decoration: underline; text-decoration-color: var(--amber); color: var(--ink); }
.ticket__excerpt { color: var(--ink-2); font-size: .97rem; margin: 0; }
.ticket__stub {
	position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
	padding: 22px 20px; background: var(--amber); color: #1E1B33; border-radius: 0 16px 16px 0;
	border-left: 2px dashed #1E1B33;
}
.ticket__stub::before, .ticket__stub::after { content: ""; position: absolute; left: calc(var(--notch) * -1 - 1px); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2); border-radius: 50%; background: var(--paper-2); border: 2px solid var(--ink); }
.ticket__stub::before { top: calc(var(--notch) * -1 - 2px); clip-path: inset(50% 0 0 0); }
.ticket__stub::after { bottom: calc(var(--notch) * -1 - 2px); clip-path: inset(0 0 50% 0); }
.ticket__stub dl { margin: 0; display: grid; gap: 8px; }
.ticket__stub dt { font: 700 .65rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.ticket__stub dd { margin: 2px 0 0; font: 700 1.05rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.ticket__stub .btn { align-self: flex-start; background: #1E1B33; color: #F6F1E7; box-shadow: 3px 3px 0 #F6F1E7; }
.ticket__stub .btn:hover { color: #F6F1E7; }
@media (max-width: 560px) {
	.ticket { grid-template-columns: 1fr; }
	.ticket__stub { border-left: 0; border-top: 2px dashed #1E1B33; border-radius: 0 0 16px 16px; flex-direction: row; align-items: end; flex-wrap: wrap; }
	.ticket__stub::before, .ticket__stub::after { display: none; }
	.ticket__stub dl { grid-template-columns: repeat(3, auto); gap: 14px; }
}

/* ==========================================================================
   11. Poraštė
   ========================================================================== */
.site-footer { background: var(--panel); color: var(--on-panel); --ink: var(--on-panel); --ink-2: var(--on-panel-2); --line: rgba(246, 241, 231, .16); }
.site-footer a { color: var(--on-panel); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr .9fr; gap: 40px; padding-block: 56px 36px; }
@media (max-width: 1020px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo svg { width: 230px; height: auto; margin-bottom: 16px; }
.footer-about p { color: var(--on-panel-2); font-size: .95rem; max-width: 340px; }
.social { list-style: none; margin: 18px 0 0; padding: 0; display: flex; gap: 8px; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); }
.social a:hover { border-color: var(--amber); }
.footer-col__title { font: 700 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; font-stretch: 85%; }
.footer-cats, .footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .95rem; }
.footer-cats a { display: inline-flex; align-items: center; gap: 8px; }
.footer-cats a::before { content: ""; width: 7px; height: 7px; background: var(--tone); transform: rotate(45deg); }
.footer-cats .count { font-size: .78em; color: var(--on-panel-2); }
.timeline { display: grid; gap: 12px; }
.timeline__year { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 8px; }
.timeline__y { font: 700 1rem/1 var(--serif); }
.timeline__months { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.timeline__months li { display: block; }
.timeline__months a, .timeline__months span { display: grid; place-items: center; height: 28px; border-radius: 5px; font-size: .6rem; text-transform: lowercase; }
.timeline__months a { background: color-mix(in srgb, var(--amber) calc(var(--n) * 9% + 10%), transparent); color: var(--on-panel); font-weight: 700; }
.timeline__months a:hover { background: var(--amber); color: #1E1B33; }
.timeline__months span { color: rgba(246, 241, 231, .25); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 18px 28px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--on-panel-2); }
.footer-bottom p { margin: 0; }

/* ==========================================================================
   12. Mygtukas „Į viršų“
   ========================================================================== */
.to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 45;
	display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
	background: var(--ink); color: var(--paper); text-decoration: none;
	box-shadow: 0 10px 24px rgba(20, 18, 31, .25);
	transition: opacity .3s, transform .35s var(--ease), visibility 0s;
}
.js .to-top:not(.is-visible) { opacity: 0; visibility: hidden; transform: translateY(20px) scale(.8); transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s; }
.to-top:hover { color: var(--paper); transform: translateY(-3px); }
.to-top .icon { width: 22px; height: 22px; grid-area: 1 / 1; transition: transform .3s var(--ease); }
.to-top:hover .icon { transform: translateY(-3px); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 3.5; }
.to-top__ring circle { stroke: color-mix(in srgb, var(--paper) 22%, transparent); }
.to-top__ring .to-top__bar { stroke: var(--amber); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); stroke-linecap: round; }
.to-top__label { position: absolute; right: calc(100% + 10px); padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--paper); font: 600 .78rem/1 var(--sans); white-space: nowrap; opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.to-top:hover .to-top__label, .to-top:focus-visible .to-top__label { opacity: 1; transform: none; }

/* ==========================================================================
   13. 404
   ========================================================================== */
.notfound { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; padding-block: clamp(40px, 7vw, 90px); }
.notfound__art { position: relative; display: grid; place-items: center; }
.notfound__rh { width: min(100%, 340px); height: auto; animation: fest-spin 30s linear infinite; }
.notfound__art span { position: absolute; font: 800 clamp(3rem, 8vw, 5.6rem)/1 var(--serif); color: #fff; text-shadow: 4px 4px 0 #1E1B33; }
.notfound .search-form { margin-block: 18px; max-width: 560px; }
@keyframes fest-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .notfound { grid-template-columns: 1fr; } .notfound__rh { width: 200px; } }

/* WordPress klasės */
.sticky, .bypostauthor, .gallery-caption { }
.wp-caption { max-width: 100%; }
.wp-caption-text { font: .85rem/1.4 var(--sans); color: var(--ink-3); margin-top: 8px; }
.post-page-numbers { display: inline-grid; place-items: center; min-width: 36px; height: 36px; border: 1.5px solid var(--line); border-radius: 10px; margin-right: 6px; text-decoration: none; font-family: var(--sans); }
.post-page-numbers.current { background: var(--ink); color: var(--paper); }

/* Įkeltų elementų animacija („Rodyti daugiau“) */
.is-new { animation: fest-rise .6s var(--ease) both; }
@keyframes fest-rise { from { opacity: 0; transform: translateY(18px); } }

/* ==========================================================================
   14. Prieinamumas ir spausdinimas
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.ticker__track { overflow-x: auto; }
}
@media print {
	.site-header, .sash, .ticket-zone, .site-footer, .to-top, .share, .next-read, .next-toast, .toc, .inline-related, .sec, .article-end { display: none !important; }
	html, body { background: #fff; color: #000; }
	.entry-content { font-size: 12pt; }
	.entry-content a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
