/* ==========================================================================
   Lost Biker – a modulok stílusa (forrás: design/project, Stilus.dc.html)
   Sötét, mozis; nincs lekerekítés, nincs árnyék; 8 px-es ritmus a modulok között.
   ========================================================================== */

:root {
	--lb-bg: #08080A;
	--lb-bar: #18181C;
	--lb-surface: #232328;
	--lb-surface-hover: #2B2B31;
	--lb-tile: #141417;
	--lb-footer: #0E0E11;
	--lb-text: #EDEDEF;
	--lb-text-2: #D4D4D8;
	--lb-text-3: #A1A1AA;
	--lb-muted: #8B8B94;
	--lb-red: #E3141F;
	--lb-red-strong: #C1101A;
	--lb-cream: #F3EEE2;
	--lb-mustard: #E8A33D;
	--lb-mustard-hover: #F5BE66;
	--lb-line: rgba(237, 237, 239, .08);
	--lb-gutter: clamp(16px, 4vw, 40px);
	--lb-rhythm: 8px;
	--lb-display: 'Russo One', sans-serif;
	--lb-body: Geist, system-ui, sans-serif;
	--lb-mono: 'Geist Mono', ui-monospace, monospace;
	--lb-fejlec: 84px;
}

/* oldalváltáskor áttűnés – csak ha a látogató nem kért csökkentett mozgást */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
}

body { margin: 0; background: var(--lb-bg); color: var(--lb-text); font-family: var(--lb-body); }
/* Alnyomat: egyvonalas labirintus dupla vonallal (mint egy út), minden irányban
   hézag nélkül csempézhető; generátor: tools/labirintus.py */
body {
	/* a fejléc alatti rés egyszínű (minta nélkül), minden oldalon */
	background-image: linear-gradient(var(--lb-bg), var(--lb-bg)), url(../img/alnyomat.svg?v=2);
	background-size: 100% calc(var(--wp-admin--admin-bar--height, 0px) + var(--lb-fejlec) + 4px + var(--lb-rhythm)), 240px 240px;
	background-repeat: no-repeat, repeat;
}
.wp-site-blocks, .wp-site-blocks > *, .lb-fo > * { margin-block: 0; }
.wp-site-blocks { padding: 0; }
.lb-fejlec-hely, .lb-lablec-hely { display: contents; }
.lb-fo { min-height: 50vh; }
/* Rövid oldalon is a lábléc az ablak alján áll: a tartalom kitölti a helyet. */
.wp-site-blocks { display: flex; flex-direction: column; min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - var(--lb-also-sav, 0px)); min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - var(--lb-also-sav, 0px)); }
.lb-fo { flex: 1 0 auto; display: flex; flex-direction: column; }
.lb-fo > * { width: 100%; }
/* A hírlevél a lábléchez tapad: a fölötte álló blokk alatti üres hely nő. */
.lb-fo > :has(+ .lb-hirlevel) { margin-bottom: auto; }
a { color: var(--lb-text); text-decoration: none; }
a:hover { color: #FFFFFF; }
:where(a, button, input, select, summary):focus-visible { outline: 2px solid var(--lb-mustard); outline-offset: 2px; }

.lb-keret { box-sizing: border-box; max-width: 1280px; margin-inline: auto; padding-inline: var(--lb-gutter); }
.lb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* „Ugrás a tartalomra”: Tab-ra a bal felső sarokban megjelenik */
.lb-ugras:focus { z-index: 100; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--lb-mustard); color: var(--lb-bg); font-weight: 600; text-decoration: none; }
.lb-fo:focus { outline: none; }

/* --- Gombok, ikonok ------------------------------------------------------ */

/* Gombok mindenhol (oldal elemei és a szerkesztő „Gomb” eszköze): címbetű
   (Russo One), lekerekített, vékony világos körvonal, árnyék; 3 állapot
   (alap, ráállás: felemelkedik, kattintás: benyomódik). */
.lb-gomb {
	--g-hatter: var(--lb-red); --g-szoveg: #FFFFFF; --g-hover: #F0303A; --g-nyomva: var(--lb-red-strong);
	display: inline-flex; align-items: center; justify-content: center;
	height: 48px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer;
	color: var(--g-szoveg); text-decoration: none;
	font: 400 15px var(--lb-display); letter-spacing: .02em;
	background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 60%), var(--g-hatter);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 4px 14px -4px rgba(0, 0, 0, .7), 0 1px 2px rgba(0, 0, 0, .5);
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.lb-gomb:hover {
	color: var(--g-szoveg); transform: translateY(-2px);
	background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 60%), var(--g-hover);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 10px 22px -6px rgba(0, 0, 0, .75), 0 2px 4px rgba(0, 0, 0, .5);
}
.lb-gomb:active {
	transform: translateY(1px); transition-duration: .05s;
	background: var(--g-nyomva);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), inset 0 2px 6px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .5);
}
.lb-gomb--mustar { --g-hatter: var(--lb-mustard); --g-szoveg: var(--lb-bg); --g-hover: var(--lb-mustard-hover); --g-nyomva: #C9862A; }
.lb-gomb--keret { --g-hatter: rgba(227, 20, 31, .08); --g-szoveg: var(--lb-text); --g-hover: rgba(227, 20, 31, .2); --g-nyomva: rgba(227, 20, 31, .3);
	box-shadow: inset 0 0 0 1px var(--lb-red), 0 4px 14px -4px rgba(0, 0, 0, .7); }
.lb-gomb--keret:hover { box-shadow: inset 0 0 0 1px #F0303A, 0 10px 22px -6px rgba(0, 0, 0, .75); }
.lb-gomb--yt { gap: 10px; }
.lb-gomb--kicsi { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.lb-gomb--nagy { height: 58px; padding: 0 30px; font-size: 18px; border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { .lb-gomb, .lb-gomb:hover, .lb-gomb:active { transform: none; } }
/* A cikk szövegébe tett gombok elhelyezése */
.lb-art a.lb-gomb { margin: 6px 8px 6px 0; vertical-align: middle; }
.lb-art p[style*="center"] a.lb-gomb { margin-inline: 4px; }
.lb-art p[style*="right"] a.lb-gomb { margin: 6px 0 6px 8px; }
.lb-art a.lb-gomb.alignleft { max-width: none; margin: 6px 24px 10px 0; }
.lb-art a.lb-gomb.alignright { max-width: none; margin: 6px 0 10px 24px; }

.lb-ico {
	width: 36px; height: 40px; padding: 0; border: 0; background: transparent;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--lb-text-3); cursor: pointer;
}
.lb-ico:hover { color: var(--lb-cream); }
.lb-soc { width: 36px; height: 40px; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease; }
.lb-soc:hover { transform: translateY(-1px); filter: brightness(1.12); }

/* --- Fejléc ----------------------------------------------------------------- */

.lb-fejlec {
	position: sticky; top: 0; z-index: 50;
	background: var(--lb-bar);
	border-top: 3px solid var(--lb-red);
	border-bottom: 1px solid var(--lb-line);
	transition: transform .25s ease;
}
.admin-bar .lb-fejlec { top: var(--wp-admin--admin-bar--height, 0px); }
.lb-fejlec__in { height: var(--lb-fejlec); display: flex; align-items: center; gap: 20px; }

.lb-marka { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lb-marka__logo { width: 64px; height: 64px; display: block; }
.lb-marka__felirat { font-family: var(--lb-display); font-size: 32px; letter-spacing: .02em; line-height: 1; color: var(--lb-cream); }
.lb-marka:hover .lb-marka__felirat { color: var(--lb-cream); }

.lb-fomenu { display: flex; gap: 14px; flex: 1; justify-content: center; }
.lb-fomenu__pont { position: relative; }
.lb-fomenu__a {
	position: relative; display: block; padding: 10px 4px;
	font-family: var(--lb-display); font-size: 14px; letter-spacing: .02em;
	color: var(--lb-mustard); white-space: nowrap;
}
.lb-fomenu__a:hover { color: var(--lb-mustard-hover); }
.lb-fomenu__a.is-aktiv::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 0; height: 2px; background: var(--lb-cream); }
.lb-almenu {
	position: absolute; top: 100%; left: -12px; min-width: 200px; padding: 8px 0;
	background: var(--lb-bar); border: 1px solid var(--lb-line);
	display: flex; flex-direction: column;
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.lb-almenu a { padding: 8px 16px; font-size: 14px; color: var(--lb-text-2); }
.lb-almenu a:hover, .lb-almenu a[aria-current] { color: var(--lb-cream); background: var(--lb-surface); }
.lb-fomenu__pont:hover .lb-almenu, .lb-fomenu__pont:focus-within .lb-almenu { opacity: 1; visibility: visible; transform: none; }
/* A sor végén álló pontok almenüje jobbra igazodik, hogy ne lógjon ki az oldalból. */
.lb-fomenu__pont:nth-last-child(-n+2) .lb-almenu { left: auto; right: -12px; }

.lb-fejlec__jobb { display: flex; align-items: center; margin-left: auto; flex-shrink: 0; }
.lb-fejlec__vonal { width: 1px; height: 24px; background: rgba(237, 237, 239, .18); margin: 0 6px; }
.lb-soc-sor { display: flex; align-items: center; }
.lb-socrot, .lb-menugomb { display: none; }
/* Nyelvváltó (HU / EN): a fejlécben a közösségi ikonok előtt, mobilon a menü alján */
.lb-nyelvvalto { display: flex; align-items: center; gap: 2px; font: 500 12px var(--lb-mono); letter-spacing: .06em; }
.lb-nyelvvalto__a { padding: 6px 7px; border-radius: 6px; color: var(--lb-muted); text-decoration: none; }
.lb-nyelvvalto__a:hover { color: var(--lb-cream); background: var(--lb-surface); }
.lb-nyelvvalto__a.is-aktiv { color: var(--lb-cream); }
.lb-nyelvvalto--fejlec { margin-left: 4px; }
.lb-nyelvvalto--menu { gap: 8px; padding-top: 12px; border-top: 1px solid rgba(237, 237, 239, .1); font-size: 14px; }
.lb-nyelvvalto--menu .lb-nyelvvalto__a { padding: 10px 14px; background: var(--lb-surface); }
.lb-nyelvvalto--menu .lb-nyelvvalto__a.is-aktiv { background: var(--lb-surface-hover); box-shadow: inset 0 0 0 1px var(--lb-mustard); }

.lb-keresosav { background: var(--lb-bar); border-top: 1px solid var(--lb-line); padding: 12px 0; }
.lb-kereso { display: flex; gap: 8px; }
.lb-kereso input {
	flex: 1; min-width: 0; height: 48px; padding: 0 16px; box-sizing: border-box;
	border: 0; border-radius: 12px; /* lekerekített, mint a gombok; alsó csík nélkül */
	background: var(--lb-surface); color: var(--lb-text); font: 400 16px var(--lb-body);
}

/* Görgetéskor összehúzódik: 84 → 56 px, logó 64 → 40, felirat 32 → 22 */
@supports (animation-timeline: scroll()) {
	@media (min-width: 641px) {
		.lb-fejlec, .lb-fejlec__in, .lb-marka__logo, .lb-marka__felirat {
			animation-duration: auto; animation-fill-mode: both; animation-timing-function: linear;
			animation-timeline: scroll(root); animation-range: 0 160px;
		}
		.lb-fejlec { animation-name: lb-fejlec-hatter; }
		.lb-fejlec__in { animation-name: lb-fejlec-magassag; }
		.lb-marka__logo { animation-name: lb-fejlec-logo; }
		.lb-marka__felirat { animation-name: lb-fejlec-felirat; }
	}
}
@keyframes lb-fejlec-hatter { to { background: rgba(24, 24, 28, .94); backdrop-filter: blur(10px); } }
@keyframes lb-fejlec-magassag { to { height: 56px; } }
@keyframes lb-fejlec-logo { to { width: 40px; height: 40px; } }
@keyframes lb-fejlec-felirat { to { font-size: 22px; } }

/* --- Mobilmenü (teljes képernyő) ------------------------------------------- */

.lb-mobilmenu { position: fixed; inset: 0; z-index: 100; background: var(--lb-bg); display: flex; flex-direction: column; }
.lb-mobilmenu[hidden] { display: none; }
.admin-bar .lb-mobilmenu { top: var(--wp-admin--admin-bar--height, 0px); }
/* Keskeny kijelzőn a WordPress admin sávja elgörgethető, ezért a fejléc a tetejére tapad. */
@media (max-width: 600px) { .admin-bar .lb-fejlec { top: 0; } }
.lb-mobilmenu__fej {
	height: 56px; flex-shrink: 0; padding: 0 8px 0 16px; display: flex; align-items: center; justify-content: space-between;
	border-top: 3px solid var(--lb-red); border-bottom: 1px solid var(--lb-line);
}
.lb-mobilmenu__fej .lb-marka__logo { width: 38px; height: 38px; }
.lb-mobilmenu__fej .lb-marka__felirat { font-size: 20px; }
.lb-mobilmenu__fej .lb-ico { width: 44px; height: 44px; color: var(--lb-cream); }
.lb-mobilmenu__test { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.lb-mobilmenu__kovess { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid rgba(237, 237, 239, .1); }
.lb-mobilmenu__kovess > span { font-family: var(--lb-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--lb-muted); }
.lb-mobilmenu__kovess nav { display: flex; gap: 4px; }
.lb-mobilmenu__kovess .lb-soc { width: 48px; height: 48px; }
.lb-mobilmenu__a { display: block; padding: 7px 0; font-family: var(--lb-display); font-size: 30px; line-height: 1.15; letter-spacing: .01em; color: var(--lb-mustard); }
.lb-mobilmenu__a.is-aktiv { color: var(--lb-cream); }
.lb-mobilmenu__al { padding: 4px 0 0 2px; display: flex; flex-wrap: wrap; gap: 0 20px; }
.lb-mobilmenu__al a { display: block; padding: 6px 0; font-size: 16px; color: var(--lb-text-2); }

/* --- Banner (slider) ------------------------------------------------------- */

/* A banner sora (a vezérlőkkel és az alatta lévő réssel) egyszínű, minta nélkül;
   a minta a banner utáni címsáv alatt kezdődik. */
.lb-banner { --w: calc(43% - 13% * var(--lb-zs, 0)); --off: calc((100% - var(--w)) / 2); --fade: 14%; padding-block: var(--lb-rhythm); background: var(--lb-bg);
	/* az egyszínű háttér a teljes ablakszélességben (a banner doboza max. 1280 px) */
	box-shadow: 0 0 0 100vmax var(--lb-bg); clip-path: inset(0 -100vmax); }
.lb-banner + .lb-cimsav, .lb-banner + .lb-sr + .lb-cimsav { margin-top: 0; } /* kezdőlap: a banner és a címsáv között rejtett h1 áll */
.lb-banner__ablak { position: relative; overflow: hidden; }
.lb-banner__sav { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-banner__sav::-webkit-scrollbar { display: none; }
.lb-banner__dia {
	position: relative; flex: 0 0 var(--w); aspect-ratio: 16 / 9; overflow: hidden;
	display: block; background: #111114; scroll-snap-align: center;
}
.lb-banner__dia img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-banner__dia:hover { filter: brightness(1.1); }
.lb-banner__hirdetes {
	position: absolute; top: 10px; right: 10px; padding: 3px 7px;
	font-family: var(--lb-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
	background: rgba(8, 8, 10, .85); color: var(--lb-text);
}
/* A banner címe JS-sel a banner utáni címsáv jobb szélére kerül (lásd lejjebb);
   JS nélkül a diák alatt, középen áll. */
.lb-banner .lb-banner__cim {
	margin: 8px 0 0; padding: 0 16px; text-align: center; color: var(--lb-mustard);
	font-family: var(--lb-display); font-size: clamp(20px, 2vw, 26px); line-height: 1.25; letter-spacing: .01em;
}

/* JS-sel a cím a címsávba költözik: amíg a szkript le nem fut, ne foglaljon helyet a banner alatt */
.js .lb-banner:not(.is-js) .lb-banner__cim { display: none; }

/* JS-sel: végtelen, középre zárt sor, a szomszédok halványan látszanak */
.lb-banner.is-js .lb-banner__sav { overflow: visible; scroll-snap-type: none; touch-action: pan-y; }
/* a nem aktív diák sötétítve (nem átlátszók, hogy a minta ne látsszon át rajtuk) */
.lb-banner.is-js .lb-banner__dia { filter: brightness(.5); transition: filter 1.2s ease; }
.lb-banner.is-js .lb-banner__dia.is-aktiv { filter: none; }
.lb-banner.is-js .lb-banner__dia.is-aktiv:hover { filter: brightness(1.1); transition-duration: .3s; }
/* a széleken a szomszéd diák a háttérbe (mintába) olvadnak – maszk, nem színes réteg */
.lb-banner.is-js .lb-banner__ablak { -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); }
/* bal/jobb lapozás: egy-egy nyíl a banner két szélén, függőlegesen középen
   (két állapot: alap szürke, rámutatva fehér) */
.lb-banner { position: relative; }
.lb-banner__nyil {
	position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
	width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center;
	border: 0; background: none; cursor: pointer; color: #8E8E95; transition: color .2s ease;
}
.lb-banner__nyil--elozo { left: var(--lb-gutter); }
.lb-banner__nyil--kovetkezo { right: var(--lb-gutter); }
.lb-banner__nyil:hover { color: #FFFFFF; }
.lb-banner__nyil:focus-visible { outline: 2px solid var(--lb-cream); outline-offset: 2px; }
.lb-banner__nyil[hidden] { display: none; }
/* szünet / lejátszás: kicsi, a jobb alsó sarokban, a nyilak színeivel */
.lb-banner__szunet {
	position: absolute; right: var(--lb-gutter); bottom: calc(var(--lb-rhythm) + 4px); z-index: 3;
	width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center;
	border: 0; background: none; color: #B4B4BA; cursor: pointer; transition: color .2s ease;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8)); /* alnyomat nélkül is látszódjon a világos képeken */
}
.lb-banner__szunet:hover { color: #FFFFFF; }
.lb-banner__szunet:focus-visible { outline: 2px solid var(--lb-cream); outline-offset: 2px; }
.lb-banner.is-egy .lb-banner__sav { justify-content: center; }

/* --- Címsáv --------------------------------------------------------------- */

.lb-cimsav { margin-top: var(--lb-rhythm); background: var(--lb-bar); border-top: 1px solid var(--lb-line); border-bottom: 1px solid var(--lb-line); }
.lb-cimsav__in { padding-block: 12px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
/* Cikk és oldal: a cím a szöveghasábbal egy vonalban kezdődik. */
.lb-cimsav--cikk .lb-cimsav__in { max-width: calc(880px + 2 * var(--lb-gutter)); }
/* Az oldal fő címsávja (cikk, oldal, rovat, 404) a fejléc alá tapad, a tartalom alatta görög.
   Fölötte a rés egyszínű (minta nélkül), alatta halvány árnyék. */
.lb-cimsav--fo {
	--lb-cimsav-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--lb-fejlec) + 4px + var(--lb-rhythm));
	position: sticky; top: var(--lb-cimsav-top); z-index: 40;
	box-shadow: 0 calc(-1 * var(--lb-rhythm) - 1px) 0 var(--lb-bg), 0 10px 18px -8px rgba(0, 0, 0, .7);
	transition: top .25s ease;
}
@supports (animation-timeline: scroll()) {
	@media (min-width: 641px) {
		/* a fejléc görgetéskor 84 → 56 px-re húzódik össze; a címsáv vele együtt mozog */
		.lb-cimsav--fo {
			transition: none;
			animation: lb-cimsav-top linear both; animation-timeline: scroll(root); animation-range: 0 160px;
		}
	}
}
@keyframes lb-cimsav-top { to { top: calc(var(--wp-admin--admin-bar--height, 0px) + 56px + 4px + var(--lb-rhythm)); } }

/* Banner + utána álló címsáv: mindkettő ragad (a banner a fejléc alá, a címsáv a banner alá),
   a csempék alájuk csúsznak. Görgetéskor a címsáv alatt sötét átmenet jelenik meg, amibe a
   csempék belehalványulnak. --lb-banner-mag: a banner magassága (JS méri).
   Gépen csak kellően magas ablakban – alacsony képernyőn nem maradna hely a csempéknek. */
:where(.lb-banner + .lb-cimsav, .lb-banner + .lb-sr + .lb-cimsav) { position: relative; } /* a ragadós címsávot nem írja felül */
.lb-banner + .lb-cimsav::after, .lb-banner + .lb-sr + .lb-cimsav::after {
	content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 64px; pointer-events: none;
	background: linear-gradient(rgba(8, 8, 10, .9), rgba(8, 8, 10, 0));
	opacity: 0; transition: opacity .3s ease;
}
.lb-gorgetve .lb-banner + .lb-cimsav::after, .lb-gorgetve .lb-banner + .lb-sr + .lb-cimsav::after { opacity: 1; }
@media (min-width: 641px) and (min-height: 700px) {
	.lb-banner { position: sticky; z-index: 39; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--lb-fejlec) + 4px); }
	.lb-banner + .lb-cimsav, .lb-banner + .lb-sr + .lb-cimsav {
		position: sticky; z-index: 40;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--lb-fejlec) + 4px + var(--lb-banner-mag, 0px));
	}
}
@supports (animation-timeline: scroll()) {
	@media (min-width: 641px) and (min-height: 700px) {
		/* a fejléc 84 → 56 px-re húzódik össze görgetéskor; a banner és a címsáv vele mozog */
		.lb-banner { animation: lb-banner-top linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
		.lb-banner + .lb-cimsav, .lb-banner + .lb-sr + .lb-cimsav {
			transition: none;
			animation: lb-cimsav-banner-top linear both; animation-timeline: scroll(root); animation-range: 0 160px;
		}
	}
}
@keyframes lb-banner-top { to { top: calc(var(--wp-admin--admin-bar--height, 0px) + 56px + 4px); } }
@keyframes lb-cimsav-banner-top { to { top: calc(var(--wp-admin--admin-bar--height, 0px) + 56px + 4px + var(--lb-banner-mag, 0px)); } }
.lb-cimsav__cim {
	margin: 0 auto 0 0; color: var(--lb-mustard);
	font-family: var(--lb-display); font-weight: 400; letter-spacing: .01em;
	font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25;
}
/* A banner aktív diájának címe a címsáv jobb szélén, jobbra zárva: az oldalcím betűje,
   egy fokkal kisebb, fehér. Lapozáskor áttűnik; ha a banner kigördült, eltűnik. */
.lb-cimsav .lb-banner__cim {
	min-width: 0; text-align: right; color: #FFFFFF;
	font-family: var(--lb-display); font-weight: 400; letter-spacing: .01em;
	font-size: clamp(20px, 2vw, 26px); line-height: 1.25;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	transition: opacity .9s ease;
}
.lb-banner__cim.is-rejtett, .lb-banner__cim.is-kint { opacity: 0; transition-duration: .7s; pointer-events: none; }
/* a teljesen kigördült banner címe Tab-bal se legyen elérhető (az áttűnés végén rejtjük) */
.lb-banner__cim.is-kint { visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.lb-banner__cim-link { color: inherit; text-decoration: none; transition: color .2s ease; }
.lb-banner__cim-link:hover { color: var(--lb-mustard); }
.lb-banner__cim-link:focus-visible { outline: 2px solid var(--lb-cream); outline-offset: 2px; }
/* a cím kitölti az oldalcím utáni helyet, jobbra zárva.
   A sor mindig egy sor: az oldalcím sem törik (ha kell, „…”-tal rövidül), a banner címe
   pedig nem jelenik meg, ha nem fér ki teljes hosszában (JS jelöli: is-nemfer). */
.lb-cimsav__in:has(> .lb-banner__cim) { flex-wrap: nowrap; }
.lb-cimsav__in:has(> .lb-banner__cim) > .lb-cimsav__cim {
	flex: 0 1 auto; min-width: 0; margin-right: 0;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-banner__cim.is-nemfer { visibility: hidden; }
.lb-cimsav .lb-banner__cim { order: 1; flex: 1 1 0; margin: 0; }
.lb-cimsav__in:has(> .lb-banner__cim) > :not(.lb-cimsav__cim, .lb-banner__cim) { order: 2; }
.lb-cikkadatok { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: flex-end; font-family: var(--lb-mono); font-size: 12px; color: var(--lb-text-3); animation: lb-beuszik .6s .25s cubic-bezier(.2, .8, .2, 1) both; }
.lb-cikkadatok b { font-weight: 400; color: var(--lb-cream); }

/* --- Panelek ----------------------------------------------------------------- */

.lb-panelek { padding-block: var(--lb-rhythm); }
/* A panelek egy dobozban állnak (mint az üres állapot), így elkülönülnek a bannertől */
/* Rugalmas sorok: a hiányos utolsó sor (1–2 csempe) középre kerül. */
/* --lb-oszlop: rovatonként beállítható (kategória „Csempék egy sorban”), alapból 3 */
.lb-racs { --oszlop: var(--lb-oszlop, 3); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px; background: var(--lb-tile); border: 1px solid var(--lb-line); }
.lb-racs > * { flex: 0 0 calc((100% - (var(--oszlop) - 1) * 8px) / var(--oszlop)); min-width: 0; }
.lb-panel { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--lb-tile); }
.lb-panel__kep { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.lb-panel__kep--ures { background: linear-gradient(135deg, #1B1B20, var(--lb-tile)); }
.lb-panel:hover .lb-panel__kep { transform: scale(1.06); }
/* Gépen (egérrel) a csempék fekete-fehérek (korábban szépia: grayscale(1) sepia(.8) hue-rotate(-15deg) saturate(.9)); színes az, amelyik alatt az
   egér van, és az, amelyiknek a cikke épp a banner közepén áll (JS jelöli: is-bannerben). */
@media (hover: hover) and (min-width: 641px) {
	/* fekete-fehér, ugyanolyan világos, mint a szépia volt (a szépia kb. 17%-kal világosít, ezért ott .85), és lágyabb kontraszttal. A színes állapot ugyanaz a szűrőlista
	   semleges értékekkel (nem „none”), és a kép végig a GPU-n marad (will-change), így az
	   áttűnés végén nem ugrik a szín. */
	.lb-panel__kep {
		filter: grayscale(1) sepia(0) hue-rotate(0deg) saturate(1) brightness(1) contrast(.8);
		will-change: filter, transform;
		transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .6s ease;
	}
	.lb-panel:hover .lb-panel__kep, .lb-panel:focus-visible .lb-panel__kep, .lb-panel.is-bannerben .lb-panel__kep { filter: grayscale(0) sepia(0) hue-rotate(0deg) saturate(1) brightness(1) contrast(1); }
	/* a cím: inaktívan (fekete-fehér kép) fakó, világosszürkébe hajló mustár; a színes csempén teljes mustár */
	.lb-panel .lb-panel__cim { color: color-mix(in srgb, var(--lb-mustard) 40%, #DCDCDC); transition: color .6s ease; }
	.lb-panel:hover .lb-panel__cim, .lb-panel:focus-visible .lb-panel__cim, .lb-panel.is-bannerben .lb-panel__cim { color: var(--lb-mustard); }
}
.lb-panel__arnyek { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 8, 10, .92) 0%, rgba(8, 8, 10, .4) 42%, rgba(8, 8, 10, 0) 68%); }
.lb-panel__szoveg { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 2px; }
.lb-panel__cim { color: var(--lb-cream); font-family: var(--lb-display); font-size: clamp(18px, 1.7vw, 24px); line-height: 1.15; letter-spacing: .01em; }
.lb-panel__meta { margin-top: 4px; font-family: var(--lb-mono); font-size: 11px; color: var(--lb-text-3); }

/* Figyelemfelhívó címke a panel bal felső sarkában */
.lb-cimke { position: absolute; left: 18px; top: 14px; padding: 2px 7px; font-family: var(--lb-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.lb-cimke--piros { background: var(--lb-red); color: #FFFFFF; }
.lb-cimke--mustar { background: var(--lb-mustard); color: var(--lb-bg); }
.lb-cimke--krem { background: var(--lb-cream); color: var(--lb-bg); }
.lb-cimke--sotet { background: rgba(8, 8, 10, .85); color: var(--lb-cream); }
.lb-cimke--kek { background: #5A9BEB; color: var(--lb-bg); }     /* világos kék */
.lb-cimke--zold { background: #4FA98C; color: var(--lb-bg); }    /* türkizzöld */
.lb-cimke--narancs { background: #DE7A43; color: #FFFFFF; } /* narancs */
.lb-cimke--lila { background: #6E4F9A; color: #FFFFFF; }    /* tompa lila */

.lb-lapozo { padding-block: 16px; display: flex; justify-content: center; gap: 8px; font-family: var(--lb-mono); font-size: 13px; }
.lb-lapozo .page-numbers { min-width: 40px; height: 40px; padding: 0 10px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; background: var(--lb-surface); color: var(--lb-mustard); }
.lb-lapozo .page-numbers.current { background: var(--lb-mustard); color: var(--lb-bg); }

/* --- Üres állapot („hamarosan”) --------------------------------------------- */

.lb-ures { padding-block: var(--lb-rhythm); }
.lb-ures__in {
	padding: clamp(40px, 7vw, 80px) 24px; background: var(--lb-tile); border: 1px solid var(--lb-line);
	display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.lb-ures__logo { width: 72px; height: 72px; opacity: .9; }
.lb-ures__jel { margin: 4px 0 0; font-family: var(--lb-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--lb-mustard); }
.lb-ures__cim { margin: 0; color: var(--lb-cream); font-family: var(--lb-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: .01em; }
.lb-ures__szoveg { margin: 0 0 8px; max-width: 520px; color: var(--lb-text-3); font-size: 15px; line-height: 1.6; }

/* --- Cikk ------------------------------------------------------------------- */

.lb-cikk { padding-block: var(--lb-rhythm); }
.lb-art { max-width: 880px; margin: 0 auto; color: var(--lb-text-2); font-size: 18px; line-height: 1.7; }
.lb-art__tartalom > * { margin-block: 0; }
.lb-art__tartalom > * + * { margin-top: 20px; }
/* Ha a cikk szöveggel (nem képpel, videóval) indul, legyen levegő a címsáv alatt. */
.lb-art__tartalom > :first-child:not(figure) { margin-top: 20px; }
.lb-art h2 { margin-top: 40px; color: var(--lb-cream); font-family: var(--lb-display); font-weight: 400; letter-spacing: .01em; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.lb-art h3 { margin-top: 28px; color: var(--lb-text); font-family: var(--lb-body); font-weight: 600; font-size: 20px; line-height: 1.3; }
.lb-art a:not(.lb-gomb) { color: var(--lb-cream); text-decoration: underline; text-underline-offset: 3px; }
.lb-art ul, .lb-art ol { padding-left: 22px; }
.lb-art li + li { margin-top: 6px; }
.lb-art__tartalom figure:not(.lb-yt) { margin-top: 28px; }
.lb-art img { max-width: 100%; height: auto; }

/* Körbefolyó képek (klasszikus szerkesztő: Igazítás → Balra / Jobbra / Középre). */
.lb-art__tartalom::after { content: ""; display: table; clear: both; }
.lb-art__tartalom h2, .lb-art__tartalom h3, .lb-art__tartalom .lb-yt { clear: both; }
.lb-art .alignleft { float: left; max-width: 48%; margin: 6px 28px 12px 0; }
.lb-art .alignright { float: right; max-width: 48%; margin: 6px 0 12px 28px; }
.lb-art .aligncenter { display: block; margin-inline: auto; }
.lb-art__tartalom > .alignleft, .lb-art__tartalom > .alignright, .lb-art__tartalom > figure.alignleft, .lb-art__tartalom > figure.alignright { margin-top: 6px; }
.lb-art .wp-caption { max-width: 100%; }
/* aláírásos, körbefolyatott kép: ugyanúgy legfeljebb a szövegszélesség fele, mint a sima kép
   (a WordPress a figure-re szélességet ír, pl. style="width: 600px") */
.lb-art .wp-caption.alignleft, .lb-art .wp-caption.alignright { max-width: 48%; }
.lb-art .wp-caption.aligncenter { margin-inline: auto; }
.lb-art .wp-caption img { display: block; width: 100%; height: auto; }
/* Aláírásos kép: az aláírás a kép aljára kerül, 25%-ban átlátszó (75%-ban takaró) sötét sávon (a kép átdereng alatta) */
/* a sima kép egy bekezdésben áll (20 px) és 6 px-et lejjebb ül – az aláírásos panel ugyanott kezdődjön */
.lb-art__tartalom > figure.wp-caption.alignleft, .lb-art__tartalom > figure.wp-caption.alignright { margin-top: 26px; }
/* ha a kép a cikk legelső eleme, a mellette álló első bekezdés térköze már a tartalom fölé kerül – itt csak a 6 px kell */
.lb-art__tartalom > figure.wp-caption.alignleft:first-child, .lb-art__tartalom > figure.wp-caption.alignright:first-child { margin-top: 6px; }
.lb-art .wp-caption-text, .lb-art figcaption { margin: 8px 0 0; font-family: var(--lb-mono); font-size: 12px; line-height: 1.55; letter-spacing: .01em; color: var(--lb-text-3); }
.lb-art .wp-caption { position: relative; }
.lb-art .wp-caption .wp-caption-text { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 8px 12px 9px; background: rgba(35, 35, 40, .75); color: var(--lb-text); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
/* Záró „Vissza a …” gomb a cikk végén (pl. Hírek): az egységes gomb, középen */
.lb-art__vissza { clear: both; margin-top: 40px; text-align: center; }
.lb-art__sorozat { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lb-art blockquote { margin: 32px 0 0; padding: 0; border: 0; font-size: 24px; line-height: 1.45; color: var(--lb-cream); }
.lb-art blockquote p { margin: 0; }
.lb-art blockquote::before { content: "„"; color: var(--lb-red); font-family: var(--lb-display); font-size: 48px; line-height: 0; vertical-align: -14px; margin-right: 4px; }
.lb-art > p { margin: 20px 0 0; }

/* YouTube: 640 px széles, középre zárt 16:9 doboz. Indításig a borítókép és a
   saját lejátszás-gomb látszik, kattintásra a YouTube-lejátszó kerül a helyére. */
.lb-yt { margin-inline: auto; max-width: 640px; }
/* Igazított / méretezett videó ([lb_video]): oldalt körbefolyatva, vagy teljes szélességben */
.lb-art .lb-yt--meretezett { max-width: none; width: var(--lb-yt-w, 50%); }
.lb-art__tartalom .lb-yt--balra { float: left; clear: none; margin: 6px 28px 12px 0; }
.lb-art__tartalom .lb-yt--jobbra { float: right; clear: none; margin: 6px 0 12px 28px; }
.lb-art .lb-yt--teljes { max-width: none; }
.lb-yt__keret { position: relative; aspect-ratio: 16 / 9; background: var(--lb-tile); overflow: hidden; box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .8); }
.lb-yt .lb-yt__kep { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .2s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.lb-yt iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.lb-art a.lb-yt__indit { position: absolute; inset: 0; display: block; cursor: pointer; text-decoration: none; }
/* a YouTube saját lejátszás-gombjának formája és színe */
.lb-yt__gomb { position: absolute; left: 50%; top: 50%; width: 60px; height: 42px; margin: -21px 0 0 -30px; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)); }
.lb-yt__gomb-alap { fill: #FF0033; transition: fill .15s ease; }
/* mint a csempéknél: egér alatt a borítókép lassan belenagyít */
.lb-yt__indit:hover .lb-yt__kep, .lb-yt__indit:focus-visible .lb-yt__kep { filter: brightness(1.08); transform: scale(1.06); }
.lb-yt__indit:focus-visible { outline-offset: -4px; }
/* lejátszási lista: jelzés a borító jobb felső sarkában */
.lb-yt__lista {
	position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px;
	padding: 5px 10px; background: rgba(8, 8, 10, .82); color: #fff; font-size: 13px; line-height: 1.2; font-weight: 600;
}
.lb-yt__lista svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-yt__lista svg path:last-child { fill: currentColor; stroke: none; }

/* --- Hírlevél --------------------------------------------------------------- */

.lb-hirlevel { margin-top: var(--lb-rhythm); background: var(--lb-bar); }
.lb-hirlevel__in { padding-block: 48px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.lb-hirlevel h2 { margin: 0; font-family: var(--lb-display); font-weight: 400; letter-spacing: .01em; color: var(--lb-cream); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }
.lb-hirlevel p { margin: 0; max-width: 760px; color: var(--lb-text-3); font-size: 15px; line-height: 1.5; }
.lb-hirlevel__urlap { display: flex; gap: 8px; width: 100%; max-width: 560px; flex-wrap: wrap; margin-top: 4px; }
.lb-hirlevel__urlap input {
	flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 16px; box-sizing: border-box;
	border: 0; border-radius: 12px; /* lekerekített, mint a gombok; alsó csík nélkül */ background: var(--lb-surface); color: var(--lb-text); font: 400 16px var(--lb-body);
}
/* a fókuszkeret a mező szélén belül, így a mező egymagas marad a gombbal */
.lb-kereso input:focus-visible, .lb-hirlevel__urlap input:focus-visible { outline-offset: -2px; }
.lb-hirlevel__uzenet { color: var(--lb-cream) !important; max-width: 460px; }
/* --- Kapcsolatfelvételi űrlap ([lb_kapcsolat]) -------------------------------- */
.lb-kapcsolat { max-width: 640px; margin-top: 8px; }
.lb-art .lb-kapcsolat p { margin: 0 0 16px; }
.lb-kapcsolat__mezo label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--lb-cream); }
.lb-kapcsolat__mezo label span { font-weight: 400; color: var(--lb-text-3); }
.lb-kapcsolat input[type=text], .lb-kapcsolat input[type=email], .lb-kapcsolat textarea {
	display: block; width: 100%; box-sizing: border-box; padding: 12px 16px; border: 0; border-radius: 12px;
	background: var(--lb-surface); color: var(--lb-text); font: 400 16px/1.5 var(--lb-body);
}
.lb-kapcsolat input[type=text], .lb-kapcsolat input[type=email] { height: 48px; }
.lb-kapcsolat textarea { min-height: 160px; resize: vertical; }
.lb-kapcsolat input:focus-visible, .lb-kapcsolat textarea:focus-visible { outline-offset: -2px; }
.lb-kapcsolat__szamlalo { display: block; margin-top: 4px; text-align: right; font-size: 13px; color: var(--lb-text-3); }
.lb-art .lb-kapcsolat .lb-kapcsolat__adatvedelem { font-size: 13px; color: var(--lb-text-3); }
.lb-kapcsolat__adatvedelem a { color: var(--lb-cream); text-decoration: underline; }
.lb-kapcsolat__uzenet { color: var(--lb-cream); }
/* az állapotüzenet mindig a helyén van (a képernyőolvasó így biztosan felolvassa), üresen nem foglal helyet */
.lb-kapcsolat__uzenet:empty, .lb-hirlevel__uzenet:empty { margin: 0; padding: 0; }
.lb-kapcsolat__uzenet.is-hiba { color: #FF8A8F; }
.lb-kapcsolat [hidden] { display: none !important; }
/* sikeres küldés után a „Vissza a kezdőlapra” gomb a tartalom közepén */
.lb-kapcsolat.is-kesz { max-width: none; }
.lb-art .lb-kapcsolat .lb-kapcsolat__vissza { text-align: center; margin-top: 8px; }
.lb-art .lb-kapcsolat__vissza a.lb-gomb { margin-inline: 0; }

/* az adatkezelési tájékoztató linkje a mező és a gomb fölött, teljes szélességben */
.lb-hirlevel .lb-hirlevel__adatvedelem { order: -1; flex: 1 0 100%; max-width: none; margin: 0 0 4px; font-size: 13px; color: var(--lb-text-3); text-align: center; }
.lb-hirlevel__adatvedelem a { color: var(--lb-cream); text-decoration: underline; white-space: nowrap; }
.lb-hirlevel__uzenet.is-hiba { color: #FF8A8F !important; }

/* --- Lábléc + gyorssáv ------------------------------------------------------ */

/* a lábléc fölötti rés egyszínű (minta nélkül), mint a fejléc alatti; a vonal belső árnyék */
.lb-lablec { margin-top: 0; border-top: var(--lb-rhythm) solid var(--lb-bg); box-shadow: inset 0 1px 0 var(--lb-line); background: var(--lb-footer); }
.lb-lablec__in { padding-block: 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--lb-cream); }
.lb-lablec__marka { display: flex; align-items: center; gap: 12px; }
.lb-lablec__marka img { width: 40px; height: 40px; display: block; }
.lb-lablec__linkek a { color: var(--lb-cream); }
.lb-lablec__linkek a:hover { text-decoration: underline; }
/* Kis hírlevél-feliratkozás a lábléc sorában (a főoldalon a nagy sáv van helyette) */
.lb-lablec__hirlevel { display: flex; flex-direction: column; gap: 4px; flex: 0 1 420px; min-width: 0; }
.lb-lablec__hirlevel .lb-hirlevel__urlap { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; max-width: none; margin: 0; }
.lb-lablec__hirlevel-cim { color: var(--lb-cream); font-weight: 600; white-space: nowrap; }
.lb-lablec__hirlevel .lb-hirlevel__urlap input { flex: 1 1 160px; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
.lb-lablec__hirlevel .lb-gomb {
	--g-hatter: var(--lb-surface); --g-hover: var(--lb-surface-hover); --g-nyomva: var(--lb-surface); --g-szoveg: var(--lb-cream);
	background: var(--g-hatter); box-shadow: none; height: 36px; min-height: 0; padding: 0 14px; font-size: 14px; white-space: nowrap; }
/* lapos, mint a mező mellette: hoverre csak kicsit világosabb, a szöveg fehér */
.lb-lablec__hirlevel .lb-gomb:hover, .lb-lablec__hirlevel .lb-gomb:active { background: var(--g-hover); box-shadow: none; transform: none; color: #FFFFFF; }
.lb-lablec__hirlevel .lb-hirlevel__adatvedelem { margin: 0; font-size: 11px; line-height: 1.4; color: var(--lb-text-3); }
.lb-lablec__hirlevel .lb-hirlevel__uzenet { margin: 0; font-size: 13px; line-height: 1.4; max-width: none; }
.lb-gyorssav { display: none; }

/* Sütisáv (Google Analytics hozzájárulás): lent középen lebegő panel, a mobil gyorssáv fölött. */
.lb-suti { position: fixed; z-index: 60; left: var(--lb-gutter); right: var(--lb-gutter); bottom: calc(var(--lb-also-sav, 0px) + 16px); display: flex; justify-content: center; pointer-events: none; }
.lb-suti[hidden] { display: none; }
.lb-suti__in { pointer-events: auto; display: flex; align-items: center; gap: 16px 24px; max-width: 860px; padding: 18px 22px; border-radius: 16px; background: var(--lb-surface); color: var(--lb-text); box-shadow: inset 0 0 0 1px var(--lb-line), 0 18px 40px -12px rgba(0, 0, 0, .8); }
.lb-suti__szoveg { margin: 0; font-size: 14px; line-height: 1.5; color: var(--lb-cream); }
.lb-suti__szoveg a { color: var(--lb-cream); text-decoration: underline; text-underline-offset: 3px; }
.lb-suti__gombok { display: flex; gap: 12px; flex: 0 0 auto; }

/* --- Mozgás ------------------------------------------------------------------- */

@keyframes lb-beuszik { from { transform: translateY(16px); opacity: 0; } }

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

/* ==========================================================================
   Tablet (≤1060 px): banner-elem 60%, 2 oszlop, menü a menügombban
   ========================================================================== */

/* A főmenü (8 pont) a logóval és az ikonokkal együtt kb. 1300 px-től fér el egy sorban.
   Ha később több pont kerül bele, a JS (menuFer) magától a menügombra vált, amint nem fér ki. */
@media (max-width: 1319px) {
	.lb-fomenu { display: none; }
	.lb-menugomb { display: inline-flex; color: var(--lb-text-2); }
}
.lb-menu-szuk .lb-fomenu { display: none; }
.lb-menu-szuk .lb-menugomb { display: inline-flex; color: var(--lb-text-2); }

@media (max-width: 1060px) {
	.lb-banner { --w: calc(60% - 18% * var(--lb-zs, 0)); }
	.lb-racs { --oszlop: min(var(--lb-oszlop, 3), 2); }
}

/* ==========================================================================
   Mobil (≤640 px): 56 → 44 px-es fejléc, egy oszlop, gyorssáv alul
   ========================================================================== */

@media (max-width: 640px) {
	/* a fejléc görgetéskor nem bújik el, hanem összehúzódik (--lb-gorg: 0 → 1, JS): 56 → 30 px,
	   így a keretekkel együtt (34 px) ugyanolyan magas, mint az összehúzott címsáv */
	:root { --lb-fejlec: calc(56px - 26px * var(--lb-gorg, 0)); --lb-also-sav: 62px; }
	body { padding-bottom: var(--lb-also-sav); }

	.lb-fejlec__in { padding: 0 4px 0 12px; gap: 8px; }
	.lb-marka { gap: 10px; }
	/* a logó a felirat méretére húzódik össze (38 → 22 px) */
	.lb-marka__logo { width: calc(38px - 16px * var(--lb-gorg, 0)); height: calc(38px - 16px * var(--lb-gorg, 0)); }
	.lb-marka__felirat { font-size: calc(20px - 3px * var(--lb-gorg, 0)); }
	.lb-fejlec__jobb > .lb-ico, .lb-menugomb { width: 40px; height: calc(44px - 14px * var(--lb-gorg, 0)); color: #C8C8CE; }
	.lb-soc-sor, .lb-fejlec__vonal, .lb-nyelvvalto--fejlec { display: none; }
	.lb-socrot { display: block; position: relative; width: 40px; height: calc(44px - 14px * var(--lb-gorg, 0)); }
	.lb-socrot > a { position: absolute; inset: 0; width: 40px; height: 100%; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
	.lb-socrot > a.is-aktiv, .lb-socrot:not(.is-js) > a:first-child { opacity: 1; visibility: visible; }

	/* Mobilon a banner fele akkora (a szomszédok halványan látszanak, mint gépen),
	   és állandóan látszik: a fejléc alá tapad, alatta a címsáv, a panelek alattuk görögnek.
	   --lb-banner-mag: a banner magassága (JS méri). */
	.lb-banner {
		--w: calc(50% - 14% * var(--lb-zs, 0)); --fade: 10%;
		/* tapadó: a panelek alatta görögnek (a háttere egyszínű, mint gépen) */
		position: sticky; z-index: 39; top: calc(var(--lb-fejlec) + 4px);
		clip-path: none; box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .7);
	}
	/* a banner utáni címsáv a banner alá tapad (rés nélkül: a banner alsó sávja adja) */
	.lb-banner + .lb-cimsav, .lb-banner + .lb-sr + .lb-cimsav {
		position: sticky; z-index: 40; top: calc(var(--lb-fejlec) + 4px + var(--lb-banner-mag, 0px));
	}

	.lb-cimsav__cim { font-size: 20px; line-height: 1.2; }
	.lb-cimsav--fo { --lb-cimsav-top: calc(var(--lb-fejlec) + 4px + var(--lb-rhythm)); transition: none; }
	.lb-cikkadatok { justify-content: flex-start; }

	.lb-racs { --oszlop: 1; }
	.lb-panel__szoveg { left: 14px; right: 14px; bottom: 12px; gap: 0; }
	.lb-panel__cim { font-size: 20px; }
	.lb-panel__meta { font-size: 10px; margin-top: 3px; }
	.lb-cimke { left: 14px; top: 12px; }

	.lb-art { font-size: 17px; }
	.lb-cikk.lb-keret { padding-inline: 0; }
	.lb-cikk .lb-art__tartalom > :not(figure), .lb-cikk .lb-art > p { padding-inline: 16px; }
	.lb-art .alignleft, .lb-art .alignright { float: none; max-width: 100%; margin: 0 0 16px; }
	.lb-art .lb-yt--meretezett, .lb-art__tartalom .lb-yt--balra, .lb-art__tartalom .lb-yt--jobbra { float: none; width: auto; margin: 16px 0; }
	.lb-art .wp-caption.alignleft, .lb-art .wp-caption.alignright, .lb-art .wp-caption { max-width: 100%; width: auto !important; }
	.lb-art__tartalom > figure.wp-caption.alignleft, .lb-art__tartalom > figure.wp-caption.alignright { margin: 20px 0 16px; } /* a figure saját szélessége (style) se lógjon ki */
	.lb-art a.lb-gomb.alignleft, .lb-art a.lb-gomb.alignright { float: none; display: flex; width: fit-content; margin: 8px 0 16px; }
	.lb-art p > img.alignleft, .lb-art p > img.alignright { display: block; }

	.lb-lablec__in { padding: 24px 16px 16px; flex-direction: column; text-align: center; gap: 10px; font-size: 13px; }
	.lb-lablec__marka { flex-direction: column; gap: 10px; }
	.lb-lablec__marka img { width: 64px; height: 64px; }
	.lb-lablec__hirlevel { flex: none; width: 100%; max-width: 380px; margin-bottom: 8px; }

	.lb-suti__in { flex-direction: column; align-items: stretch; padding: 16px; }
	.lb-suti__gombok .lb-gomb { flex: 1 1 0; }
	.lb-gyorssav {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		background: var(--lb-bar); border-top: 1px solid rgba(237, 237, 239, .1);
		padding-bottom: env(safe-area-inset-bottom);
	}
	/* vízszintesen görgethető sor: kb. 4,5 pont látszik, a félig kilógó jelzi, hogy van még */
	.lb-gyorssav__sor {
		flex: 1; min-width: 0; display: flex; overflow-x: auto; overscroll-behavior-x: contain;
		scroll-snap-type: x proximity; scrollbar-width: none;
	}
	.lb-gyorssav__sor::-webkit-scrollbar { display: none; }
	/* a szélen halványodik, ha arra még van menüpont (JS jelöli) */
	.lb-gyorssav__sor.van-jobbra { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
	.lb-gyorssav__sor.van-balra { -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px); mask-image: linear-gradient(90deg, transparent, #000 32px); }
	.lb-gyorssav__sor.van-balra.van-jobbra { -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
	.lb-gyorssav__a {
		flex: 0 0 calc(100% / 4.5); scroll-snap-align: start;
		display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 10px; white-space: nowrap;
		font-family: var(--lb-display); font-size: 10px; letter-spacing: .02em; color: var(--lb-mustard);
	}
	.lb-gyorssav__a.is-aktiv { color: var(--lb-cream); box-shadow: inset 0 2px 0 var(--lb-cream); }
	/* az alsó sáv fölött a tartalom elsötétedik, ahogy alácsúszik (mint fent a címsáv alatt) */
	.lb-gyorssav::before {
		content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 64px; pointer-events: none;
		background: linear-gradient(rgba(8, 8, 10, 0), rgba(8, 8, 10, .9));
	}
}

/* --- Görgetéskor összehúzódó banner + címsáv --------------------------------
   --lb-zs: 0 az oldal tetején, 1 kb. 160 px görgetés után (JS állítja, a fejléc
   összehúzódásával együtt). A banner diái keskenyebbek lesznek (fent), a címsáv
   alacsonyabb, a betűi kisebbek. */
:is(.lb-banner + .lb-cimsav, .lb-banner + .lb-sr + .lb-cimsav) .lb-cimsav__in { padding-block: calc(12px - 6px * var(--lb-zs, 0)); }
:is(.lb-banner + .lb-cimsav, .lb-banner + .lb-sr + .lb-cimsav) .lb-cimsav__cim { font-size: calc(clamp(24px, 2.4vw, 32px) - 6px * var(--lb-zs, 0)); }
:is(.lb-banner + .lb-cimsav, .lb-banner + .lb-sr + .lb-cimsav) .lb-banner__cim { font-size: calc(clamp(20px, 2vw, 26px) - 5px * var(--lb-zs, 0)); }
@media (max-width: 640px) {
	:is(.lb-banner + .lb-cimsav, .lb-banner + .lb-sr + .lb-cimsav) .lb-cimsav__in { padding-block: calc(10px - 4px * var(--lb-zs, 0)); }
	:is(.lb-banner + .lb-cimsav, .lb-banner + .lb-sr + .lb-cimsav) .lb-cimsav__cim { font-size: calc(20px - 3px * var(--lb-zs, 0)); }
	:is(.lb-banner + .lb-cimsav, .lb-banner + .lb-sr + .lb-cimsav) .lb-banner__cim { font-size: calc(17px - 2px * var(--lb-zs, 0)); }
}
/* A böngésző görgetés-horgonyzása a fejléc/banner összehúzódásakor visszahúzná a görgetést (ugrálás). */
html, body { overflow-anchor: none; }

/* --- Képnézegető (a cikk képeire kattintva, az oldal fölött) ------------------ */
.lb-art img.lb-nagyithato { cursor: zoom-in; }
.lb-art img.lb-nagyithato:focus-visible { outline: 2px solid var(--lb-mustard); outline-offset: 3px; }
html.lb-nezo-nyitva { overflow: hidden; }
.lb-nezo {
	position: fixed; inset: 0; z-index: 100001;
	display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; grid-template-rows: 64px minmax(0, 1fr);
	background: rgba(8, 8, 10, .98); color: var(--lb-text);
	opacity: 0; transition: opacity .2s ease;
	touch-action: pan-y pinch-zoom;
}
.lb-nezo[hidden] { display: none; }
.lb-nezo.is-latszik { opacity: 1; }
.lb-nezo__felso { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 var(--lb-gutter); }
.lb-nezo__szam { font-family: var(--lb-mono); font-size: 13px; letter-spacing: .04em; color: var(--lb-muted); }
.lb-nezo__gomb {
	display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
	border: 0; border-radius: 50%; background: var(--lb-surface); color: var(--lb-cream); cursor: pointer;
	transition: background .15s ease;
}
.lb-nezo__gomb[hidden] { display: none; }
.lb-nezo__gomb:hover { background: var(--lb-surface-hover); color: #fff; }
.lb-nezo__gomb:focus-visible { outline: 2px solid var(--lb-mustard); outline-offset: 2px; }
.lb-nezo__gomb svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-nezo__nyil { align-self: center; justify-self: center; grid-row: 2; }
.lb-nezo__nyil--elozo { grid-column: 1; }
.lb-nezo__nyil--kov { grid-column: 3; }
.lb-nezo__kep {
	grid-column: 2; grid-row: 2; margin: 0; min-height: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	padding-bottom: 24px;
}
.lb-nezo__kep img { display: block; max-width: 100%; max-height: calc(100dvh - 64px - 24px - 40px); width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-nezo__kep figcaption { max-width: 70ch; text-align: center; font-size: 14px; line-height: 1.5; color: var(--lb-muted); }
.lb-nezo__kep figcaption[hidden] { display: none; }
@media (max-width: 640px) {
	/* mobilon a kép kitölti a szélességet, a nyilak alul állnak (húzással is lapozható) */
	.lb-nezo { grid-template-columns: 1fr 1fr; grid-template-rows: 56px minmax(0, 1fr) 80px; }
	.lb-nezo__kep { grid-column: 1 / -1; padding-bottom: 0; }
	.lb-nezo__kep img { max-height: calc(100dvh - 56px - 80px - 40px); }
	.lb-nezo__nyil { grid-row: 3; }
	.lb-nezo__nyil--elozo { grid-column: 1; }
	.lb-nezo__nyil--kov { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .lb-nezo { transition: none; } }
