/*
Theme Name: Torma
Theme URI: https://levelektormanak.zazee.hu
Author: zazee kult
Description: Gyors, könnyű, egyedi magazintéma a Levelek Tormának kulturális véleményportálnak. Nincs oldalépítő, nincs jQuery – a rovatok (lát / hall / is) saját színt kapnak, a címlap magától keveri az írásokat, a lapváltás animált és azonnali.
Version: 1.6.0
Requires at least: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: torma
*/

/* ================================================================
   1. Tokenek
   ================================================================ */
:root {
	--paper: #f4f0e8;
	--paper-2: #ebe6db;
	--card: #fbf9f5;
	--ink: #171513;
	--ink-2: #3d3933;
	--muted: #736d62;
	--line: rgba(23, 21, 19, .13);
	--line-strong: rgba(23, 21, 19, .82);

	/* Rovatszínek: kitöltéshez (--x) és szöveghez (--x-ink) */
	--lat: #2a46ff;   --lat-ink: #2a46ff;   --on-lat: #fff;
	--hall: #c6ef2f;  --hall-ink: #5a7a00;  --on-hall: #171513;
	--is: #ff4422;    --is-ink: #de3313;    --on-is: #fff;
	--accent: #ff4422;

	--f-head: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--f-text: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--f-ui: "Bricolage Grotesque", "Helvetica Neue", Arial, system-ui, sans-serif;

	--gutter: clamp(16px, 4vw, 48px);
	--max: 1400px;
	--text: 680px;
	--r: 10px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--bar-h: 60px;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #11100e; --paper-2: #1b1916; --card: #181613;
		--ink: #f0ebe1; --ink-2: #d0c9bc; --muted: #9b9486;
		--line: rgba(240, 235, 225, .13); --line-strong: rgba(240, 235, 225, .78);
		--lat: #6f84ff; --lat-ink: #8d9dff; --on-lat: #11100e;
		--hall-ink: #c6ef2f;
		--is: #ff5a3a; --is-ink: #ff7658; --on-is: #11100e;
		--accent: #ff5a3a;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--paper: #11100e; --paper-2: #1b1916; --card: #181613;
	--ink: #f0ebe1; --ink-2: #d0c9bc; --muted: #9b9486;
	--line: rgba(240, 235, 225, .13); --line-strong: rgba(240, 235, 225, .78);
	--lat: #6f84ff; --lat-ink: #8d9dff; --on-lat: #11100e;
	--hall-ink: #c6ef2f;
	--is: #ff5a3a; --is-ink: #ff7658; --on-is: #11100e;
	--accent: #ff5a3a;
	color-scheme: dark;
}

.tone-lat  { --tone: var(--lat);  --tone-ink: var(--lat-ink);  --on-tone: var(--on-lat); }
.tone-hall { --tone: var(--hall); --tone-ink: var(--hall-ink); --on-tone: var(--on-hall); }
.tone-is   { --tone: var(--is);   --tone-ink: var(--is-ink);   --on-tone: var(--on-is); }
.tone-base, .tone-minden, .tone- { --tone: var(--ink); --tone-ink: var(--ink); --on-tone: var(--paper); }

/* ================================================================
   2. Alapok
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-text);
	font-size: clamp(17px, .5vw + 14px, 19px);
	line-height: 1.6;
	font-optical-sizing: auto;
	font-kerning: normal;
	font-variant-ligatures: common-ligatures;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, video, iframe, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-thickness: .06em; text-underline-offset: .18em; }
button { font: inherit; color: inherit; }
::selection { background: var(--hall); color: #171513; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(var(--text) + 2 * var(--gutter)); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* UI-betű: címkék, meta, gombok */
.label, .kicker, .byline, .btn, .more, .nav, .plate__row > span, .plate__nav span, .foot__h, .sublinks, .post__meta, .share, .pager, .sec__note, .index__kids, .media-flag, .flag, .rail-sec__head p, .quote__src {
	font-family: var(--f-ui);
}

.label {
	margin: 0 0 12px;
	font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--muted);
}

/* Címsorok: elegáns talpas betű, kényelmes térközzel */
.card__title, .row__title, .mini__title, .lead__title, .letter__title, .poem__title,
.post__title, .arch__title, .sec__title, .index__name, .plate__title, .brand__name, .lost__title, .foot__big, .authorbox__name, .prevnext b {
	font-family: var(--f-head);
	font-weight: 500;
	letter-spacing: -.012em;
	text-wrap: balance;
	font-feature-settings: "kern", "liga", "lnum";
}

/* Animált aláhúzás a címeken */
:is(.card__title, .row__title, .mini__title, .lead__title, .letter__title) > span {
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
	transition: background-size .5s var(--ease);
}
:is(.card, .mini, .row, .lead, .letter):hover :is(.card__title, .row__title, .mini__title, .lead__title, .letter__title) > span { background-size: 100% 1px; }

.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px; border: 0; border-radius: 999px;
	background: var(--ink); color: var(--paper);
	font-weight: 600; font-size: 15px; cursor: pointer;
	transition: transform .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); color: #fff; }

.more {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.more svg { transition: transform .3s var(--ease); }
.more:hover svg { transform: translateX(5px); }

/* ================================================================
   3. Fejléc
   ================================================================ */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--tone, var(--accent)); transform-origin: 0 50%; transform: scaleX(0); }
body:not(.single) .progress { display: none; }

.bar {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 84%, transparent);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid var(--line);
	transition: transform .4s var(--ease);
	view-transition-name: bar;
}
.bar-hide .bar { transform: translateY(-100%); }
.nav-open .bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); transform: none; }

.bar__inner { display: flex; align-items: center; gap: 24px; height: var(--bar-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand__mark {
	display: grid; place-items: center;
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--ink); color: var(--paper);
	font: italic 500 15px/1 var(--f-head);
	transition: transform .5s var(--ease), background .3s;
}
.brand:hover .brand__mark { transform: rotate(-14deg); background: var(--accent); color: #fff; }
.brand__name { font-size: 20px; line-height: 1; }
/* A címlapon a nagy névtábla miatt a fejlécben csak a jel látszik, amíg le nem görgetünk. */
.home .brand__name { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.home.scrolled .brand__name { opacity: 1; transform: none; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
	display: block; padding: 7px 12px; border-radius: 999px;
	font-size: 14.5px; font-weight: 500; text-decoration: none;
	transition: background .2s, color .2s;
}
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .current-category-ancestor > a { background: var(--ink); color: var(--paper); }
.nav__search { display: none; }

.bar__tools { display: flex; gap: 2px; }
.icon-btn {
	display: grid; place-items: center;
	width: 40px; height: 40px; border-radius: 50%;
	border: 0; background: transparent; cursor: pointer;
	transition: background .2s;
}
.icon-btn:hover { background: var(--paper-2); }
.nav-toggle { display: none; }
.nav-toggle .i-close, .nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

.searchbar { border-top: 1px solid var(--line); padding: 14px 0; }
.searchbar .wrap { display: flex; gap: 10px; }
.searchbar input, .bigsearch input, .nav__search input {
	flex: 1; min-width: 0;
	padding: 12px 18px; border-radius: 999px;
	border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink);
	font: 500 17px var(--f-ui);
}

@media (max-width: 980px) {
	.nav-toggle { display: grid; }
	.nav {
		position: fixed; inset: var(--bar-h) 0 0; z-index: 49;
		background: var(--paper); padding: 20px var(--gutter) 40px; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-10px);
		transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
	}
	.nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.nav-open { overflow: hidden; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a {
		padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line);
		font: 500 clamp(1.9rem, 8vw, 2.8rem)/1.1 var(--f-head); letter-spacing: -.015em;
	}
	.nav__list a:hover { background: none; color: var(--tone-ink, var(--accent)); }
	.nav__search { display: flex; margin-top: 24px; }
	.nav-open .brand__name { opacity: 1; transform: none; }
}

/* ================================================================
   4. Kártyák – közös elemek
   ================================================================ */
.card, .row, .mini, .lead, .letter, .poem { position: relative; }
.card__link { position: absolute; inset: 0; z-index: 2; }

/* Rovatjelölő: színes pötty + kiskapitális felirat */
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 8px; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; position: relative; z-index: 3; }
.chip {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	color: var(--ink); text-decoration: none;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--accent)); transition: transform .3s var(--ease); }
.chip:hover { color: var(--tone-ink); }
.chip:hover::before { transform: scale(1.5); }
.flag, .media-flag { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.media-flag { color: var(--muted); }

.byline { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 10px 0 0; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.byline > span + span::before { content: "·"; margin: 0 .5em; }
.byline__a { color: var(--ink-2); font-weight: 600; }

.thumb {
	display: block; position: relative; overflow: hidden;
	aspect-ratio: 3 / 2; border-radius: var(--r);
	background: var(--paper-2);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
:is(.card, .mini, .lead, .row):hover .thumb img { transform: scale(1.045); filter: saturate(1.1) contrast(1.03); }
.thumb--empty { display: grid; place-items: center; background: var(--tone, var(--ink)); color: var(--on-tone, var(--paper)); }
.thumb--empty span { font: italic 500 clamp(4rem, 8vw, 7rem)/1 var(--f-head); transition: transform .6s var(--ease); }
:is(.card, .mini, .lead):hover .thumb--empty span { transform: scale(1.12) rotate(-6deg); }

.card .thumb { margin-bottom: 16px; }
.card__title { margin: 0; font-size: clamp(1.32rem, 1.1vw + .9rem, 1.6rem); line-height: 1.14; }
.card__ex { margin: 10px 0 0; color: var(--ink-2); font-size: .97em; line-height: 1.52; }

.card--sm .card__title { font-size: 1.24rem; }
.card--sm .thumb { aspect-ratio: 4 / 3; }
.card--lg .thumb { aspect-ratio: 16 / 10; margin-bottom: 20px; }
.card--lg .card__title { font-size: clamp(1.9rem, 2.6vw + .6rem, 2.9rem); line-height: 1.06; letter-spacing: -.02em; }
.card--lg .card__ex { font-size: 1.1em; max-width: 52ch; }
.card--wide { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.card--wide .thumb { margin: 0; aspect-ratio: 4 / 3; }
.card--wide .card__title { font-size: clamp(1.8rem, 2.4vw + .5rem, 2.7rem); line-height: 1.06; letter-spacing: -.02em; }
.card--wide .card__ex { font-size: 1.08em; }
.card--noimg { padding-top: 18px; border-top: 3px solid var(--tone); }
@media (max-width: 700px) { .card--wide { grid-template-columns: 1fr; } }

.row { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.row--thumb { grid-template-columns: 1fr 96px; align-items: start; }
.row--thumb .thumb { aspect-ratio: 1; border-radius: 8px; }
.row__title { margin: 0; font-size: 1.2rem; line-height: 1.18; }
.row .kicker { margin-bottom: 5px; }
.row .byline { margin-top: 6px; }
.row__n { font: italic 500 1.8rem/1 var(--f-head); color: var(--tone-ink); }

/* Levél: kép nélküli, szövegközpontú kártya */
.letter {
	display: flex; flex-direction: column;
	padding: clamp(22px, 2.4vw, 32px);
	background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
	transition: border-color .25s, transform .35s var(--ease);
	overflow: hidden;
}
.letter::after {
	content: "„"; position: absolute; right: 14px; top: -34px;
	font: 500 9rem/1 var(--f-head); color: var(--tone); opacity: .9; pointer-events: none;
}
.letter:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.letter__title { margin: 0 0 12px; font-size: clamp(1.4rem, 1.2vw + 1rem, 1.75rem); line-height: 1.12; font-style: italic; padding-right: 50px; }
.letter__ex { margin: 0; color: var(--ink-2); font-size: 1.02em; line-height: 1.58; flex: 1; }
.letter .byline { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }

/* Beúszás */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); }
.js-reveal .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }

/* ================================================================
   5. Címlap
   ================================================================ */
.plate { padding-top: clamp(18px, 2.4vw, 30px); }
.plate__row {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
	padding-bottom: clamp(14px, 1.6vw, 20px);
}
.plate__row > span { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plate__row > span:last-child { text-align: right; }
.plate__title { margin: 0; font-size: clamp(2.5rem, 5.4vw, 4.8rem); line-height: 1; letter-spacing: -.025em; text-align: center; white-space: nowrap; }
.plate__title a { text-decoration: none; }
.plate__title em { font-style: italic; }
.plate__title i { font-style: normal; color: var(--accent); display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
	.plate__title { animation: rise .8s var(--ease) both; }
	.plate__title i { animation: pop .6s .5s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { transform: scale(0); } 60% { transform: scale(1.6); } }

.plate__nav {
	display: flex; justify-content: center; flex-wrap: wrap; gap: 8px clamp(20px, 4vw, 56px);
	padding: 12px 0; border-top: 1px solid var(--line-strong); border-bottom: 3px double var(--line-strong);
}
.plate__nav a { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.plate__nav b { font: italic 500 1.45rem/1 var(--f-head); color: var(--tone-ink); }
.plate__nav span { font-size: 13px; color: var(--muted); transition: color .2s; }
.plate__nav a:hover span { color: var(--ink); }
@media (max-width: 760px) {
	.plate__row { grid-template-columns: 1fr; gap: 8px; text-align: center; }
	.plate__title { grid-row: 1; white-space: normal; font-size: clamp(2.4rem, 11vw, 3.2rem); }
	.plate__row > span:first-child { text-align: center; }
	.plate__row > span:last-child { display: none; }
	.plate__nav span { display: none; }
	.plate__nav b { font-size: 1.6rem; }
}

/* Nyitó: lista | főcikk | két kártya */
.cover {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr) minmax(0, 1fr);
	grid-template-areas: "list lead side";
	gap: clamp(24px, 3vw, 44px);
	padding-block: clamp(28px, 4vw, 56px);
}
.cover__lead { grid-area: lead; }
.cover__side { grid-area: side; display: grid; gap: 32px; align-content: start; }
.cover__list { grid-area: list; }
.cover__lead, .cover__side { position: relative; }
.cover__lead::before, .cover__side::before {
	content: ""; position: absolute; top: 0; bottom: 0; left: calc(clamp(24px, 3vw, 44px) / -2);
	border-left: 1px solid var(--line);
}
.cover__list .label { padding-bottom: 6px; }
.cover__list .row:first-of-type { border-top: 1px solid var(--line-strong); }

.lead .thumb { aspect-ratio: 3 / 2; margin-bottom: 20px; }
.lead__title { margin: 0; font-size: clamp(2.2rem, 3.5vw + .4rem, 3.9rem); line-height: 1.03; letter-spacing: -.024em; }
.lead__ex { margin: 16px 0 0; font-size: 1.14em; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }

@media (max-width: 1100px) {
	.cover { grid-template-columns: 1fr 1fr; grid-template-areas: "lead lead" "side list"; }
	.cover__lead::before { display: none; }
}
@media (max-width: 680px) {
	.cover { grid-template-columns: 1fr; grid-template-areas: "lead" "side" "list"; }
	.cover__side::before { display: none; }
}

.ticker {
	border-block: 1px solid var(--line);
	overflow: hidden; white-space: nowrap;
	font: italic 500 clamp(1.05rem, 1.4vw, 1.3rem)/1 var(--f-head);
	padding: 13px 0;
}
.ticker__track { display: inline-flex; gap: 26px; padding-left: 26px; animation: marquee 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker i { font-style: normal; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* Szakaszok és keverékek */
.sec { padding-block: clamp(36px, 5vw, 72px) 0; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line-strong); margin-bottom: clamp(24px, 3vw, 40px); }
.sec__title { margin: 0; font-size: clamp(1.8rem, 2.4vw + .6rem, 2.6rem); line-height: 1.05; font-style: italic; }
.sec__note { font-size: 13px; color: var(--muted); }

.mix { display: grid; gap: clamp(28px, 3vw, 44px); }
.mix + .mix { margin-top: clamp(36px, 4vw, 60px); }
.mix--a { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: stretch; }
.mix--b { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mix--c { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.mix__stack .row:first-child { border-top: 1px solid var(--line-strong); padding-top: 18px; }
.mix__stack .row { padding-block: 20px; }
.mix__stack .row__title { font-size: 1.32rem; }
.mix--d { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1000px) {
	.mix--a, .mix--c { grid-template-columns: 1fr; }
	.mix--b { grid-template-columns: 1fr 1fr; }
	.mix--d { grid-template-columns: 1fr 1fr; }
	.mix--d .poem { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.mix--b, .mix--d { grid-template-columns: 1fr; }
}

/* Idézet-sáv */
.quote { margin-top: clamp(48px, 6vw, 88px); background: var(--tone, var(--ink)); color: var(--on-tone, var(--paper)); }
.quote__in { display: block; position: relative; padding-block: clamp(36px, 5vw, 72px) clamp(48px, 7vw, 100px); text-decoration: none; }
.quote__mark { display: block; height: .5em; margin-left: -.04em; font: 500 clamp(6rem, 11vw, 10rem)/1 var(--f-head); opacity: .55; pointer-events: none; }
.quote blockquote {
	position: relative; margin: 0; max-width: 30ch;
	font: italic 400 clamp(1.7rem, 3.3vw + .3rem, 3.3rem)/1.2 var(--f-head); letter-spacing: -.015em;
	text-wrap: balance;
}
.quote__src { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 14px; font-weight: 500; }
.quote__src svg { transition: transform .3s var(--ease); }
.quote__in:hover .quote__src svg { transform: translateX(6px); }
.quote + .sec { padding-top: clamp(48px, 6vw, 88px); }

/* Vers */
.poem {
	padding: clamp(26px, 3vw, 44px);
	background: var(--paper-2); border-radius: var(--r);
	display: flex; flex-direction: column;
}
.poem .label { color: var(--tone-ink); }
.poem__title { margin: 0 0 18px; font-size: clamp(1.7rem, 2vw + .6rem, 2.3rem); line-height: 1.08; }
.poem__lines {
	flex: 1;
	font: italic 400 1.14rem/1.65 var(--f-head);
	color: var(--ink-2);
	-webkit-mask-image: linear-gradient(#000 60%, transparent);
	mask-image: linear-gradient(#000 60%, transparent);
}
.poem__lines span { display: block; }
.poem .byline { margin-top: 14px; }
.poem:hover .byline span:last-child { color: var(--tone-ink); }

/* Rovatmutató */
.index {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px);
	padding-block: clamp(48px, 6vw, 88px);
}
.index__col { position: relative; display: flex; flex-direction: column; }
.index__col + .index__col::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(clamp(24px, 3vw, 44px) / -2); border-left: 1px solid var(--line); }
.index__name { margin: 0; font-size: clamp(3rem, 5vw, 4.6rem); line-height: .9; font-style: italic; letter-spacing: -.03em; }
.index__name a { text-decoration: none; color: var(--tone-ink); }
.index__kids { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 12px 0 14px; font-size: 13px; font-weight: 600; }
.index__kids a { text-decoration: none; color: var(--muted); }
.index__kids a:hover { color: var(--tone-ink); }
.index__col .row:first-of-type { border-top: 1px solid var(--line-strong); }
.index__col .more { margin-top: 16px; color: var(--tone-ink); }
@media (max-width: 900px) {
	.index { grid-template-columns: 1fr; }
	.index__col + .index__col::before { display: none; }
	.index__col + .index__col { padding-top: 24px; }
}

/* Vízszintes sáv */
.rail-sec {
	--lat-ink: #8d9dff; --is-ink: #ff7658; --hall-ink: #c6ef2f;
	padding-block: clamp(44px, 6vw, 88px);
	background: #171513; color: #f0ebe1;
	--ink: #f0ebe1; --ink-2: #d0c9bc; --muted: #9b9486; --line: rgba(240,235,225,.14); --paper-2: #2a2723;
}
.rail-sec .tone-base { --tone: #f0ebe1; }
.rail-sec__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.rail-sec__head p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.rail-nav { display: flex; gap: 6px; }
.rail-nav .icon-btn { width: 46px; height: 46px; border: 1px solid var(--line); }
.rail-nav .icon-btn:hover { background: #f0ebe1; color: #171513; }
.rail {
	display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 24vw, 320px); gap: 24px;
	overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
	padding: 4px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 18px;
	scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
	scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.mini { scroll-snap-align: start; }
.mini .thumb { aspect-ratio: 4 / 5; margin-bottom: 14px; }
.mini__title { margin: 0; font-size: 1.28rem; line-height: 1.16; }

/* ================================================================
   6. Archívum
   ================================================================ */
.arch { padding-block: clamp(36px, 5vw, 76px) clamp(24px, 3vw, 44px); border-bottom: 1px solid var(--line-strong); margin-bottom: clamp(32px, 4vw, 56px); }
.arch__title { margin: 0; font-size: clamp(3rem, 8vw, 6.8rem); line-height: .95; letter-spacing: -.03em; font-style: italic; color: var(--tone-ink, var(--ink)); word-break: break-word; }
.tone-base .arch__title { color: var(--ink); }
.arch__desc { max-width: 60ch; margin-top: 16px; font-size: 1.12em; font-style: italic; color: var(--ink-2); }
.arch__desc p { margin: 0; }
.sublinks { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.sublinks a {
	display: inline-block; padding: 6px 14px; border-radius: 999px;
	border: 1px solid var(--line-strong);
	font-size: 13.5px; font-weight: 600; text-decoration: none;
	transition: background .2s, color .2s, border-color .2s;
}
.sublinks a:hover { background: var(--tone, var(--ink)); border-color: var(--tone, var(--ink)); color: var(--on-tone, var(--paper)); }
.sublinks sup { font-size: .7em; opacity: .6; margin-left: 2px; }
.list { padding-bottom: clamp(48px, 6vw, 96px); }
.grid { display: grid; gap: clamp(32px, 3.4vw, 52px) clamp(20px, 2.4vw, 36px); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.bigsearch { display: flex; gap: 10px; max-width: 640px; margin-top: 24px; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: clamp(40px, 5vw, 72px); }
.pager .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 16px;
	border-radius: 999px; border: 1px solid var(--line);
	font-weight: 600; font-size: 14.5px; text-decoration: none;
	transition: background .2s, border-color .2s;
}
.pager a.page-numbers:hover { border-color: var(--line-strong); }
.pager .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty { padding: 40px 0 80px; }
.empty__big { font: italic 500 clamp(2rem, 5vw, 3.4rem)/1.05 var(--f-head); margin: 0 0 12px; }

/* ================================================================
   7. Cikkoldal
   ================================================================ */
.post__head { padding-block: clamp(36px, 6vw, 84px) clamp(24px, 3vw, 40px); max-width: 1120px; }
.post__title { margin: 0; font-size: clamp(2.5rem, 5.6vw + .2rem, 5.6rem); line-height: 1.02; letter-spacing: -.026em; hyphens: manual; }
.post__dek { margin: 22px 0 0; max-width: 46ch; font-size: clamp(1.22rem, 1.4vw + .6rem, 1.55rem); line-height: 1.38; font-style: italic; color: var(--ink-2); }
.post__meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px;
	margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line);
	font-size: 13.5px; font-weight: 500; color: var(--muted);
}
.author-chip { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.author-chip span { display: flex; flex-direction: column; line-height: 1.25; }
.author-chip b { font-size: 15px; }
.author-chip small { font-size: 12px; color: var(--muted); }

.post__hero { margin: 0 auto; max-width: var(--max); padding-inline: var(--gutter); }
.post__hero .thumb { aspect-ratio: auto; max-height: 80vh; border-radius: var(--r); }
.post__hero .thumb img { max-height: 80vh; object-fit: cover; }
.post__hero figcaption { margin-top: 10px; font: 500 13px var(--f-ui); color: var(--muted); }

/* Videós cikk: lejátszható nagy kép */
.hero-video { position: relative; cursor: pointer; border-radius: var(--r); overflow: hidden; background: #000; view-transition-name: hero-video; }
.hero-video .thumb { border-radius: 0; }
.hero-video .thumb img { transition: transform 1.2s var(--ease), filter .5s; }
.hero-video:hover .thumb img { transform: scale(1.03); filter: brightness(.85); }
.hero-video::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(0,0,0,.28), transparent 60%); pointer-events: none; }
.hero-video__play {
	position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
	display: inline-flex; align-items: center; gap: 12px;
	padding: 16px 28px 16px 22px; border: 0; border-radius: 999px;
	background: var(--tone, var(--accent)); color: var(--on-tone, #fff);
	font: 600 16px/1 var(--f-ui); letter-spacing: .02em; cursor: pointer;
	box-shadow: 0 10px 40px rgba(0,0,0,.3);
	transition: transform .4s var(--ease), padding .4s var(--ease);
}
.hero-video:hover .hero-video__play { transform: translate(-50%, -50%) scale(1.06); }
.hero-video.is-on:not(.is-loading) { cursor: auto; aspect-ratio: 16 / 9; width: min(100%, calc(80vh * 16 / 9)); margin-inline: auto; }
.hero-video.is-on:not(.is-loading)::after { display: none; }
.is-loading iframe { opacity: 0; }
/* Betöltés közben a kép a helyén marad, a gomb lüktet */
.is-loading { pointer-events: none; }
.yt.is-loading .yt__play, .hero-video.is-loading .hero-video__play { animation: yt-pulse .9s ease-in-out infinite; }
@keyframes yt-pulse { 50% { opacity: .55; } }
.yt-unmute {
	position: absolute; left: 14px; top: 14px; z-index: 3;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 16px; border: 0; border-radius: 999px;
	background: rgba(255,255,255,.95); color: #171513;
	font: 600 14px/1 var(--f-ui); cursor: pointer;
	box-shadow: 0 6px 24px rgba(0,0,0,.25);
	animation: rise .4s var(--ease) both;
}
.hero-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Hosszú olvasás */
.prose {
	max-width: calc(var(--text) + 2 * var(--gutter));
	margin: clamp(36px, 5vw, 60px) auto 0;
	padding-inline: var(--gutter);
	font-size: clamp(19px, .55vw + 15px, 21.5px);
	line-height: 1.68;
	hanging-punctuation: first;
	overflow-wrap: break-word;
}
.prose > * { margin-block: 0 1.15em; }
.prose p.has-dropcap::first-letter {
	float: left;
	margin: .02em .1em -.1em -.06em;
	font: 500 4.35em/.78 var(--f-head);
	color: var(--tone-ink, var(--accent));
}
/* Ahol a böngésző tudja (Safari, Chrome, Edge): pontosan 3 sor magas, a sorok tetejéhez igazítva. */
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
	.prose p.has-dropcap::first-letter {
		float: none; margin: 0 .12em 0 -.04em; font-size: 1em; line-height: inherit;
		-webkit-initial-letter: 3; initial-letter: 3;
	}
}
.prose p.has-dropcap::after { content: ""; display: block; clear: both; }
.prose a { text-decoration-color: var(--tone, var(--accent)); text-decoration-thickness: 2px; }
.prose a:hover { background: color-mix(in srgb, var(--tone, var(--accent)) 20%, transparent); }
.prose h2, .prose h3, .prose h4 { margin: 1.8em 0 .55em; font-family: var(--f-head); font-weight: 600; letter-spacing: -.012em; line-height: 1.15; text-wrap: balance; }
.prose h2 { font-size: 1.6em; }
.prose h3 { font-size: 1.3em; }
.prose h4 { font-size: 1.08em; font-family: var(--f-ui); }
.prose strong { font-weight: 650; }
.prose blockquote, .prose .wp-block-quote {
	margin: 1.6em 0; padding: 0 0 0 1.1em;
	border-left: 3px solid var(--tone, var(--accent));
	font-size: 1.16em; line-height: 1.45; font-style: italic;
}
.prose blockquote cite { display: block; margin-top: .6em; font: normal 600 .6em var(--f-ui); color: var(--muted); }
.prose .wp-block-pullquote { border-block: 1px solid var(--line-strong); padding: 1em 0; text-align: left; }
.prose .wp-block-pullquote blockquote { border: 0; padding: 0; font-size: 1.45em; line-height: 1.2; }
.prose hr { border: 0; text-align: center; margin: 2.4em 0; }
.prose hr::before { content: "✶ ✶ ✶"; color: var(--tone, var(--accent)); letter-spacing: 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--tone-ink, var(--accent)); }
.prose figure { margin-inline: 0; }
.prose img { border-radius: 6px; }
.prose figcaption, .prose .wp-element-caption { margin-top: 8px; font: 500 14px/1.4 var(--f-ui); color: var(--muted); text-align: left; }
.prose .alignwide { width: min(1100px, calc(100vw - 2 * var(--gutter))); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .alignfull img { border-radius: 0; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignleft { float: left; margin: .3em 1.4em .8em 0; max-width: 45%; }
.prose .alignright { float: right; margin: .3em 0 .8em 1.4em; max-width: 45%; }
.prose iframe { width: 100%; border-radius: 6px; }
.prose .wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.prose .wp-block-embed.is-type-video iframe { position: absolute; inset: 0; height: 100%; }
.prose .wp-block-embed.is-type-video { margin-block: 1.6em; }
/* Minden beágyazás a saját keretén belül marad (pl. a WordPress-bejegyzés-beágyazás rejtett iframe-je). */
.prose .wp-block-embed, .prose .wp-block-embed__wrapper { position: relative; max-width: 100%; }
.prose .wp-block-embed__wrapper { overflow: hidden; }
.prose iframe.wp-embedded-content { max-width: 100%; border-radius: 8px; }
.prose .wp-block-embed blockquote.wp-embedded-content { font-size: 1em; }
.prose .wp-block-embed__wrapper::before { display: none; }

/* YouTube-előnézet: kép + lejátszógomb, a lejátszó kattintásra jön */
.yt {
	position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin: 1.6em 0;
	overflow: hidden; border-radius: 8px;
	background: #000; color: #fff; cursor: pointer;
	isolation: isolate;
}
.wp-block-embed__wrapper > .yt { position: absolute; inset: 0; width: auto; aspect-ratio: auto; margin: 0; }
.prose .ast-oembed-container { height: auto !important; }
.yt__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; opacity: .88; transition: transform .9s var(--ease), opacity .4s; }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.72)); pointer-events: none; }
.yt__play {
	position: absolute; left: 50%; top: 50%; z-index: 2;
	display: grid; place-items: center;
	width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
	border: 0; background: var(--tone, var(--accent)); color: var(--on-tone, #fff);
	cursor: pointer; transition: transform .4s var(--ease);
}
.yt__play svg { width: 32px; height: 32px; margin-left: 3px; }
.yt__title {
	position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2;
	font: italic 500 clamp(1rem, 1.6vw, 1.25rem)/1.25 var(--f-head);
	text-shadow: 0 1px 12px rgba(0,0,0,.5);
	pointer-events: none;
}
.yt:hover .yt__img { transform: scale(1.04); opacity: 1; }
.yt:hover .yt__play { transform: scale(1.1); }
.yt.is-on { cursor: auto; }
.yt.is-on:not(.is-loading)::after { display: none; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }

/* Galéria: sorkizárt, a képek arányát megtartó elrendezés */
.prose .tg {
	display: flex; flex-wrap: wrap; gap: 8px;
	width: min(1100px, calc(100vw - 2 * var(--gutter))); max-width: none;
	margin: 2em 0 2em 50%; transform: translateX(-50%);
}
.prose .tg::after { content: ""; flex: 1.6 1 0; }
.prose .tg--2::after, .prose .tg--3::after { display: none; }
.tg__item { margin: 0; flex: var(--r) 1 calc(var(--r) * 210px); max-width: 100%; overflow: hidden; border-radius: 6px; background: var(--paper-2); }
.tg--2 .tg__item { flex-basis: calc(var(--r) * 320px); }
.tg__a { display: block; height: 100%; }
.prose .tg__item img { width: 100%; height: 100%; aspect-ratio: var(--r); object-fit: cover; border-radius: 0; transition: transform .8s var(--ease), filter .4s; }
.tg__item:hover img { transform: scale(1.035); filter: brightness(1.04); }
@media (max-width: 640px) {
	.tg__item, .tg--2 .tg__item { flex-basis: calc(var(--r) * 120px); }
	.prose .tg { gap: 5px; }
}
.prose img.zoomable { cursor: zoom-in; }

/* Lightbox */
.lb {
	position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
	margin: 0; padding: 0; border: 0;
	background: rgba(12, 11, 9, .96); color: #f0ebe1;
	overscroll-behavior: contain;
}
.lb[open] { display: grid; place-items: center; animation: lb-in .3s var(--ease); }
.lb::backdrop { background: transparent; }
.lb-open { overflow: hidden; }
@keyframes lb-in { from { opacity: 0; } }
.lb__fig { margin: 0; display: grid; place-items: center; gap: 14px; width: 100%; height: 100%; padding: 64px clamp(16px, 7vw, 96px) 28px; box-sizing: border-box; grid-template-rows: minmax(0, 1fr) auto; }
.lb__img {
	max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain;
	border-radius: 3px; opacity: 0; transform: scale(.985);
	transition: opacity .35s var(--ease), transform .45s var(--ease);
	user-select: none; -webkit-user-drag: none;
}
.lb__img.is-in { opacity: 1; transform: none; }
.lb__cap { max-width: 60ch; min-height: 1.3em; text-align: center; font: italic 400 1rem/1.4 var(--f-head); color: rgba(240,235,225,.75); }
.lb__count { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); font: 500 13px var(--f-ui); letter-spacing: .1em; color: rgba(240,235,225,.6); }
.lb__btn {
	position: fixed; z-index: 2;
	display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	border: 1px solid rgba(240,235,225,.2); background: rgba(0,0,0,.25); color: #f0ebe1;
	font: 400 20px/1 var(--f-ui); cursor: pointer;
	transition: background .2s, border-color .2s;
}
.lb__btn:hover { background: #f0ebe1; color: #0e0d0b; }
.lb__close { top: 12px; right: 12px; }
.lb__prev { left: 16px; top: 50%; margin-top: -24px; }
.lb__next { right: 16px; top: 50%; margin-top: -24px; }
.lb--single .lb__prev, .lb--single .lb__next { display: none; }
@media (max-width: 640px) {
	.lb__prev, .lb__next { top: auto; bottom: 14px; margin: 0; }
	.lb__fig { padding: 56px 8px 76px; }
	.lb__img { max-height: calc(100dvh - 190px); }
}
.prose .wp-block-gallery { gap: 10px; }
.prose table { width: 100%; border-collapse: collapse; font: 15px/1.4 var(--f-ui); }
.prose th, .prose td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.prose pre { overflow-x: auto; background: var(--paper-2); padding: 1em; border-radius: 8px; font-size: .8em; }
.prose::after { content: ""; display: block; clear: both; }
/* Széles elemek mindig az úsztatott képek alá kerülnek, így semmi nem csúszik egymásba. */
.prose :is(.tg, .yt, .wp-block-embed, .wp-video, .aligncenter, .alignwide, .alignfull, .credits, .linklist, .wp-block-gallery, .wp-block-uagb-image-gallery, table, hr, h2, h3),
.prose .is-upscaled:not([class*="is-float"]) { clear: both; }
/* Régi, saját feltöltésű videó ([video]) – a hasáb szélességéhez igazodik. */
.prose .wp-video { width: 100% !important; max-width: 100%; margin: 1.6em 0; }
.prose .wp-video video, .prose video { display: block; width: 100% !important; height: auto !important; border-radius: 8px; background: #000; }
/* Oldalépítővel (Elementor/Spectra) készült régebbi írások */
.prose--elementor { max-width: 1100px; }
.prose .wp-block-uagb-image img, .prose .wp-block-image img { margin-inline: auto; }

/* Régi, klasszikus szerkesztős képek */
.prose .wp-caption { max-width: 100%; width: auto !important; margin-inline: 0; }
.prose .is-upscaled:not(.is-float-left):not(.is-float-right) { width: 100%; float: none; margin: 1.8em 0; }
.prose .is-upscaled img, .prose img.is-upscaled { width: 100%; height: auto; }
.prose .is-upscaled.is-portrait:not([class*="is-float"]) img, .prose img.is-upscaled.is-portrait { width: auto; max-width: 100%; max-height: 78vh; margin-inline: auto; }
.prose .is-upscaled.is-portrait:not([class*="is-float"]) figcaption { text-align: center; }
.prose .is-float-left, .prose .is-float-right { width: 44%; max-width: 44%; margin-top: .35em; margin-bottom: 1em; }
.prose .is-float-left { float: left; margin-right: 1.4em; margin-left: calc(min(0px, (680px - 100vw) / 2 + var(--gutter)) * 0 - 6%); }
.prose .is-float-right { float: right; margin-left: 1.4em; margin-right: -6%; }
@media (max-width: 760px) {
	.prose .is-float-left, .prose .is-float-right { float: none; width: 100%; max-width: 100%; margin: 1.6em 0; }
}

/* Stáblista */
.prose .credits {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px;
	margin: 2.2em 0; padding: 22px 0 6px; border-top: 1px solid var(--line-strong);
	font: 15px/1.4 var(--f-ui);
}
.prose .credits > div { padding: 0 0 14px; break-inside: avoid; }
.prose .credits dt { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.prose .credits dd { margin: 0; font-weight: 500; color: var(--ink); }
.prose .credits dt:empty { display: none; }
.prose .credits .credits__head { grid-column: 1 / -1; margin: 6px 0 12px; font: italic 500 1.15rem/1.3 var(--f-head); color: var(--ink); }
.prose .credits .credits__head:not(:first-child) { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Linklista a cikk végén */
.prose .linklist { margin: 2.4em 0 0; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.prose .linklist__label { margin: 0 0 10px; font: 600 11.5px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.prose .linklist ul { list-style: none; margin: 0; padding: 0; }
.prose .linklist li { margin: 0; border-top: 1px solid var(--line); }
.prose .linklist li:first-child { border-top: 0; }
.prose .linklist a { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; text-decoration: none; font: 500 16px/1.35 var(--f-ui); }
.prose .linklist a::after { content: "↗"; color: var(--tone-ink, var(--accent)); transition: transform .3s var(--ease); }
.prose .linklist a:hover { background: none; color: var(--tone-ink, var(--accent)); }
.prose .linklist a:hover::after { transform: translate(3px, -3px); }
.prose .wp-block-uagb-image__figure { margin: 0; }
.prose .spectra-image-gallery__layout--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.prose .spectra-image-gallery__media-thumbnail { width: 100%; height: 100%; object-fit: cover; }
.prose .spectra-image-gallery__control-lightbox--main:not(.swiper-initialized) { display: none; }

.post__foot { max-width: calc(var(--text) + 2 * var(--gutter)); margin: 48px auto 0; padding-inline: var(--gutter); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; font-family: var(--f-ui); font-size: 14px; }
.tags a { text-decoration: none; color: var(--muted); }
.tags a:hover { color: var(--ink); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 16px 0; border-block: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.share span { color: var(--muted); font-weight: 500; }
.share a, .linkish { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .25em; font: 600 14px var(--f-ui); }
.share a:hover, .linkish:hover { text-decoration-color: var(--tone, var(--accent)); }

.authorbox { display: flex; gap: 20px; align-items: flex-start; margin-top: 32px; padding: 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.authorbox .label { margin-bottom: 4px; }
.authorbox__name { margin: 0; font-size: 1.6rem; line-height: 1.1; }
.authorbox__name a { text-decoration: none; }
.authorbox__bio { margin: 8px 0 0; font-size: .95em; color: var(--ink-2); }

.mono {
	display: inline-grid; place-items: center; flex-shrink: 0;
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--tone); color: var(--on-tone);
	font: italic 500 17px/1 var(--f-head);
}
.mono--l { width: 68px; height: 68px; font-size: 26px; }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: clamp(48px, 6vw, 84px); }
.prevnext__a {
	display: flex; flex-direction: column; gap: 8px;
	padding: 22px 24px; border-radius: var(--r);
	border: 1px solid var(--line); text-decoration: none;
	transition: border-color .2s, background .2s, transform .3s var(--ease);
}
.prevnext__a:hover { border-color: var(--line-strong); background: var(--card); transform: translateY(-3px); }
.prevnext__a--next { text-align: right; }
.prevnext small { font: 600 11.5px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prevnext b { font-size: clamp(1.15rem, 1.4vw + .5rem, 1.5rem); line-height: 1.18; }
@media (max-width: 640px) { .prevnext { grid-template-columns: 1fr; } .prevnext__a--next { text-align: left; } }

.related { padding-block: clamp(48px, 6vw, 84px); }
.related__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.related .sec__title { margin: 0; }
.rel-more { border: 0; background: none; padding: 6px 0; cursor: pointer; color: var(--ink-2); }
.rel-more span { display: inline-block; transition: transform .5s var(--ease); }
.rel-more:hover span { transform: rotate(180deg); }
/* JS nélkül az első három látszik; JS-sel a még nem olvasottak közül válogatunk. */
.rel > .rel__item:nth-child(n+4) { display: none; }
.rel.is-js > .rel__item { display: none; }
.rel.is-js > .rel__item.is-shown { display: block; }
.rel .card .thumb { view-transition-name: none !important; }

.comments { padding-bottom: 64px; font-family: var(--f-ui); font-size: 16px; }
.comments__list { list-style: none; padding: 0; }
.comments .comment-body { padding: 18px 0; border-top: 1px solid var(--line); }
.comments .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit;
}
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }

.lost { padding-block: clamp(48px, 8vw, 120px); }
.lost__title { margin: 0 0 24px; font-size: clamp(3.4rem, 10vw, 8rem); line-height: .95; font-style: italic; letter-spacing: -.03em; }
.lost p { max-width: 48ch; }
.lost .more { margin-top: 28px; }

/* ================================================================
   8. Lábléc
   ================================================================ */
.foot {
	--lat-ink: #8d9dff; --is-ink: #ff7658; --hall-ink: #c6ef2f;
	margin-top: clamp(40px, 6vw, 80px);
	background: #0e0d0b; color: #f0ebe1;
	padding-block: clamp(48px, 7vw, 96px) 28px;
	--line: rgba(240,235,225,.15);
}
.rail-sec + .foot { margin-top: 0; }
.foot__cta { display: block; text-decoration: none; padding-bottom: clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.foot__kicker { display: block; font: 600 12px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-bottom: 12px; }
.foot__big { display: inline-flex; align-items: center; gap: .25em; font-size: clamp(2.8rem, 8vw, 7rem); line-height: 1; font-style: italic; letter-spacing: -.03em; transition: color .3s; }
.foot__big svg { width: .5em; height: .5em; transition: transform .4s var(--ease); }
.foot__cta:hover .foot__big { color: var(--hall); }
.foot__cta:hover .foot__big svg { transform: translateX(.15em) rotate(-45deg); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1.3fr 1fr 1fr; gap: 32px; padding-block: 40px; font-family: var(--f-ui); font-size: 14.5px; }
.foot__brand { margin: 0; font: 500 1.6rem/1 var(--f-head); }
.foot__desc { margin: 8px 0 0; font-family: var(--f-text); font-style: italic; opacity: .7; }
.foot__h { margin: 0 0 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .55; }
.foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot__list a { text-decoration: none; }
.foot__list a:hover { text-decoration: underline; }
.foot__list a[class^="tone-"] { font: italic 500 1.35em var(--f-head); color: var(--tone-ink); }
.foot__list span { opacity: .55; font-size: 13px; }
.foot__base { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); font: 500 13px var(--f-ui); opacity: .6; }
.foot__base a { text-decoration: none; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot__grid { grid-template-columns: 1fr; } }

/* ================================================================
   9. Lapváltás animáció (View Transitions)
   ================================================================ */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
	::view-transition-old(root) { animation: vt-out .25s var(--ease) both; }
	::view-transition-new(root) { animation: vt-in .4s var(--ease) both; }
	::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wp-caption { max-width: 100%; }

@media print {
	.bar, .foot, .progress, .related, .prevnext, .share, .ticker { display: none !important; }
	body { background: #fff; color: #000; }
}

/* Hírlevél-helyettesítő doboz */
.nl-box { margin: 1.6em 0; padding: 26px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.nl-box .label { margin-bottom: 6px; }
.nl-box__t { margin: 0 0 6px; font: italic 500 1.5rem/1.2 var(--f-head); }
.nl-box p { margin: 0 0 10px; }
.nl-box__l { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0 !important; }
.prose .nl-box a.btn { color: var(--paper); text-decoration: none; }
