/* Könyvtár – könyvespolc, asztal, gerinc, borító */

.kt-nezet {
	--kt-polcmagassag: 270px;
	--kt-deszka: 30px;
	margin-block: 1.5rem;
}

:root { --kt-serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif; }

/* ---------- Fafajták ---------- */
.kt-fa--dio    { --kt-fa-keret: #6E4524; --kt-fa-hat: #2E1D10; --kt-fa-fenyes: #C99560; --kt-fa-deszka: #B07A47; --kt-fa-arnyek: #7A4C27; --kt-tabla: #D9B46A; --kt-tabla-betu: #2A1A0C; }
.kt-fa--tolgy  { --kt-fa-keret: #A77A4A; --kt-fa-hat: #4A3320; --kt-fa-fenyes: #E5C28F; --kt-fa-deszka: #D2A66E; --kt-fa-arnyek: #9C7445; --kt-tabla: #3A2A18; --kt-tabla-betu: #F3E3C3; }
.kt-fa--feher  { --kt-fa-keret: #E9E4DA; --kt-fa-hat: #CFC7B8; --kt-fa-fenyes: #FFFFFF; --kt-fa-deszka: #F4F0E8; --kt-fa-arnyek: #C9C1B2; --kt-tabla: #2F4E7A; --kt-tabla-betu: #FFFFFF; }
.kt-fa--fekete { --kt-fa-keret: #1E1B19; --kt-fa-hat: #0E0C0B; --kt-fa-fenyes: #4A433D; --kt-fa-deszka: #2E2A26; --kt-fa-arnyek: #151311; --kt-tabla: #C9A55A; --kt-tabla-betu: #1E1B19; }

/* ---------- Szekrény és polcok ---------- */
.kt-szekreny {
	background: var(--kt-fa-keret);
	padding: 18px 18px 22px;
	border-radius: 10px 10px 4px 4px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.kt-polc { position: relative; }
.kt-polc__sor {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	column-gap: 14px;
	row-gap: var(--kt-deszka);
	padding: 0 26px var(--kt-deszka);
	min-height: calc(var(--kt-polcmagassag) + var(--kt-deszka));
	box-sizing: border-box;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 120px),
		repeating-linear-gradient(180deg,
			var(--kt-fa-hat) 0 var(--kt-polcmagassag),
			var(--kt-fa-fenyes) var(--kt-polcmagassag) calc(var(--kt-polcmagassag) + 3px),
			var(--kt-fa-deszka) calc(var(--kt-polcmagassag) + 3px) calc(var(--kt-polcmagassag) + var(--kt-deszka) - 5px),
			var(--kt-fa-arnyek) calc(var(--kt-polcmagassag) + var(--kt-deszka) - 5px) calc(var(--kt-polcmagassag) + var(--kt-deszka)));
}
.kt-polc__tabla {
	position: absolute;
	z-index: 2;
	left: 50%;
	top: calc(var(--kt-polcmagassag) + 5px);
	transform: translateX(-50%);
	padding: 1px 14px;
	border-radius: 3px;
	background: var(--kt-tabla);
	color: var(--kt-tabla-betu);
	font: 600 11px/1.6 system-ui, sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2), 0 1px 2px rgba(0, 0, 0, .3);
}
.kt-polc__ures { position: absolute; left: 32px; top: 40%; margin: 0; color: #CBB896; }
.kt-hely {
	height: var(--kt-polcmagassag);
	display: flex;
	align-items: flex-end;
	gap: 3px;
}
.kt-hely[hidden] { display: none; }
.kt-hely--halom { flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 1px; }
.kt-ures { opacity: .7; }

/* ---------- Gerinc ---------- */
.kt-gerinc {
	position: relative;
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	width: var(--kt-w, 40px);
	height: var(--kt-h, 220px);
	padding: 12px 0;
	background-color: var(--kt-sz, #6E4524);
	color: var(--kt-bsz, #FBF4E6);
	border-radius: 3px 3px 2px 2px;
	text-decoration: none !important;
	overflow: hidden;
	box-shadow: inset 3px 0 0 rgba(255, 255, 255, .14), inset -5px 0 0 rgba(0, 0, 0, .22);
	transition: transform .22s ease, box-shadow .22s ease;
}
.kt-gerinc:hover, .kt-gerinc:focus-visible { transform: translateY(-10px); }
.kt-gerinc:focus-visible, .kt-borito:focus-visible, .kt-fekvo:focus-visible { outline: 3px solid #F2C46D; outline-offset: 3px; }
.kt-gerinc.van-kep { background-image: var(--kt-kep); background-size: cover; background-position: var(--kt-fok, center); }
.kt-gerinc.van-kep::before, .kt-borito.van-kep::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--kt-reteg, transparent);
	pointer-events: none;
}
.kt-gerinc > * { position: relative; }
.kt-gerinc__cim {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-family: var(--kt-serif);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .02em;
	line-height: 1.1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-height: 76%;
}
.kt-gerinc__disz { width: 68%; height: 3px; background: currentColor; opacity: .55; border-radius: 2px; }
.kt-gerinc__lakat { display: flex; }
.kt-minta--arany .kt-gerinc__disz { height: 7px; background: linear-gradient(180deg, #E3BE72 0 2px, transparent 2px 5px, #E3BE72 5px 7px); opacity: 1; }
.kt-minta--csillag .kt-gerinc__disz, .kt-minta--hold .kt-gerinc__disz { width: auto; height: auto; background: none; opacity: .85; font-size: 13px; line-height: 1; }
.kt-minta--csillag .kt-gerinc__disz::before { content: "✦"; }
.kt-minta--hold .kt-gerinc__disz::before { content: "☾"; }
.kt-minta--pottyok { background-image: radial-gradient(circle, rgba(255, 255, 255, .18) 1px, transparent 1.6px); background-size: 9px 9px; }
.kt-minta--semmi .kt-gerinc__disz { visibility: hidden; }

/* ---------- Borító ---------- */
.kt-borito {
	--kt-bw: 150px;
	position: relative;
	flex: none;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: var(--kt-bw);
	aspect-ratio: 150 / 216;
	padding: 10px;
	background-color: var(--kt-sz, #1F6B5C);
	color: var(--kt-bsz, #FBF4E6);
	border-radius: 2px 6px 6px 2px;
	overflow: hidden;
	text-decoration: none !important;
	container-type: inline-size;
	box-shadow: inset 6px 0 0 rgba(0, 0, 0, .18), 0 10px 18px rgba(0, 0, 0, .35);
	transition: transform .22s ease;
}
a.kt-borito:hover, a.kt-borito:focus-visible { transform: translateY(-10px); }
.kt-borito.van-kep { background-image: var(--kt-kep); background-size: cover; background-position: var(--kt-fok, center); }
.kt-borito > * { position: relative; }
.kt-borito__cim { font-family: var(--kt-serif); font-weight: 600; font-size: calc(12.5cqw * var(--kt-cimk, 1)); line-height: 1.06; overflow-wrap: break-word; hyphens: auto; }
.kt-borito__kicker { font-size: 6.5cqw; letter-spacing: .2em; text-transform: uppercase; opacity: .85; min-height: 1em; }
.kt-borito__alcim { font-size: 7.5cqw; opacity: .9; }
.kt-borito__lakat { position: absolute; top: 6cqw; right: 6cqw; display: flex; }
.kt-borito .kt-svg { width: 26cqw; height: 26cqw; color: var(--kt-disz); stroke: var(--kt-disz); }

.kt-borito--klasszikus .kt-borito__keret {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	text-align: center;
	border: 1.5px solid var(--kt-disz);
	padding: 12cqw 6cqw;
}
.kt-borito--illusztralt { padding: 0; }
.kt-borito--illusztralt .kt-borito__kep {
	flex: 1;
	min-height: 0;
	margin: 9cqw 9cqw 0 12cqw;
	border-radius: 2px;
	background-color: rgba(255, 255, 255, .22);
	background-size: cover;
	box-shadow: 0 0 0 1.5cqw rgba(255, 255, 255, .1), 0 0 0 calc(1.5cqw + 1px) var(--kt-disz), 0 2cqw 4cqw rgba(0, 0, 0, .25);
}
.kt-borito--illusztralt .kt-borito__cim { padding: 9cqw 9cqw 0 12cqw; text-align: center; }
.kt-borito--illusztralt .kt-borito__alcim { padding: 2.5cqw 9cqw 9cqw 12cqw; text-align: center; color: var(--kt-disz); opacity: 1; }
.kt-borito--illusztralt .kt-borito__cim:last-child { padding-bottom: 10cqw; }

/* Cím helye */
.kt-borito.kt-borito--illusztralt.kt-cimhely--fent .kt-borito__cim { order: -2; padding-top: 10cqw; padding-bottom: 0; }
.kt-borito.kt-borito--illusztralt.kt-cimhely--fent .kt-borito__alcim { order: -1; padding-bottom: 0; }
.kt-borito.kt-borito--illusztralt.kt-cimhely--fent .kt-borito__kep { margin: 7cqw 9cqw 10cqw 12cqw; }
.kt-borito.kt-borito--klasszikus.kt-cimhely--fent .kt-borito__keret { justify-content: flex-start; gap: 7cqw; }
.kt-borito.kt-borito--klasszikus.kt-cimhely--lent .kt-borito__keret { justify-content: flex-end; gap: 7cqw; }
.kt-borito.kt-borito--klasszikus.kt-cimhely--kozep .kt-borito__keret { justify-content: center; gap: 7cqw; }
.kt-borito.kt-borito--minimal.kt-cimhely--fent { justify-content: flex-start; gap: calc(var(--kt-bw) * .05); }
.kt-borito.kt-borito--minimal.kt-cimhely--kozep { justify-content: center; gap: calc(var(--kt-bw) * .05); }
.kt-borito.kt-borito--minimal.kt-cimhely--lent { justify-content: flex-end; gap: calc(var(--kt-bw) * .05); }

/* Betű */
.kt-betu--modern .kt-borito__cim { font-family: "Inter", "Segoe UI", system-ui, sans-serif; font-weight: 700; letter-spacing: -.01em; }
.kt-betu--modern .kt-borito__kicker, .kt-betu--modern .kt-borito__alcim { font-family: "Inter", "Segoe UI", system-ui, sans-serif; }
.kt-betu--kezi .kt-borito__cim { font-family: "Cormorant Garamond", "Gentium Book Plus", Georgia, serif; font-style: italic; font-weight: 500; font-size: calc(14cqw * var(--kt-cimk, 1)); line-height: 1.02; }
.kt-betu--kezi.kt-borito--minimal .kt-borito__cim { font-size: calc(18cqw * var(--kt-cimk, 1)); }
.kt-betu--kezi .kt-borito__alcim { font-style: italic; }
.kt-borito--minimal { justify-content: space-between; }
.kt-borito--minimal > * { margin-left: 8cqw; margin-right: 5cqw; }
.kt-borito--minimal > :first-child { margin-top: 8cqw; }
.kt-borito--minimal > :last-child { margin-bottom: 8cqw; }
.kt-borito--minimal .kt-borito__cim { font-size: calc(17cqw * var(--kt-cimk, 1)); font-weight: 700; line-height: .98; }
.kt-borito--minimal .kt-borito__vonal { width: 30cqw; height: 2px; background: currentColor; }
.kt-borito--csillag { justify-content: flex-end; align-items: center; text-align: center; }
.kt-borito--csillag > :last-child { margin-bottom: 7cqw; }
.kt-borito--csillag .kt-borito__terkep { position: absolute; left: 0; top: 4%; width: 100%; height: auto; color: var(--kt-disz); }
.kt-borito--csillag .kt-borito__alcim { color: var(--kt-disz); margin-top: 3cqw; }

/* ---------- Fekvő könyv ---------- */
.kt-fekvo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-sizing: border-box;
	width: var(--kt-w, 190px);
	height: var(--kt-v, 34px);
	margin-left: var(--kt-elt, 0);
	padding: 0 12px;
	background: var(--kt-sz, #A63D2A);
	color: var(--kt-bsz, #FBF4E6);
	border-radius: 2px;
	text-decoration: none !important;
	font-family: var(--kt-serif);
	font-weight: 600;
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	box-shadow: inset 0 3px 0 rgba(255, 255, 255, .14), inset 0 -4px 0 rgba(0, 0, 0, .22);
	transition: transform .22s ease;
}
.kt-fekvo:hover, .kt-fekvo:focus-visible { transform: translateX(8px); }
.kt-fekvo__cim { overflow: hidden; text-overflow: ellipsis; }

/* ---------- Kategóriaszűrő ---------- */
.kt-szuro { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.kt-szuro__gomb {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	opacity: .8;
}
.kt-szuro__gomb[aria-pressed="true"] { opacity: 1; background: rgba(127, 127, 127, .2); box-shadow: inset 0 0 0 2px currentColor; }
.kt-szuro__pont { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- Asztal ---------- */
.kt-asztal {
	position: relative;
	aspect-ratio: 16 / 10;
	min-height: 520px;
	border-radius: 18px;
	background-color: var(--kt-fa-deszka);
	background-image:
		repeating-linear-gradient(176deg, rgba(0, 0, 0, .05) 0 3px, transparent 3px 22px),
		repeating-linear-gradient(178deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 57px);
	box-shadow: inset 0 0 120px rgba(0, 0, 0, .45), 0 24px 50px rgba(0, 0, 0, .25);
	overflow: hidden;
}
.kt-asztal.kt-fa--dio { --kt-fa-deszka: #8A5A33; }
.kt-asztal.kt-fa--tolgy { --kt-fa-deszka: #C49A64; }
.kt-asztal__elem {
	position: absolute;
	left: var(--kt-x);
	top: var(--kt-y);
	transform: rotate(var(--kt-r, 0deg));
	transition: transform .25s ease;
	filter: drop-shadow(12px 16px 14px rgba(0, 0, 0, .35));
}
.kt-asztal__elem:hover, .kt-asztal__elem:focus-within { transform: rotate(var(--kt-r, 0deg)) translateY(-8px) scale(1.03); z-index: 5; }
.kt-asztal__elem .kt-borito { --kt-bw: clamp(120px, 14vw, 200px); box-shadow: inset 6px 0 0 rgba(0, 0, 0, .18); }
.kt-asztal__elem a.kt-borito:hover { transform: none; }
.kt-asztal__naplo, .kt-asztal__lap {
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-sizing: border-box;
	width: clamp(200px, 22vw, 300px);
	padding: 22px 22px 26px;
	text-decoration: none !important;
	border-radius: 4px;
}
.kt-asztal__naplo {
	background: #FBF6EA repeating-linear-gradient(180deg, transparent 0 27px, rgba(60, 80, 140, .18) 27px 28px);
	color: #2B2620;
}
.kt-asztal__lap { background: #F6E3BC; color: #3E2A0B; }
.kt-asztal__datum { font-size: 12px; font-weight: 600; color: #7A4E14; }
.kt-asztal__fajta { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.kt-asztal__cim { font-family: var(--kt-serif); font-size: 20px; font-weight: 600; line-height: 1.15; }
.kt-asztal__kivonat { font-size: 14px; line-height: 1.75; color: #4A433A; }

@media (max-width: 700px) {
	.kt-asztal { aspect-ratio: auto; min-height: 0; display: flex; flex-wrap: wrap; gap: 22px; padding: 26px 18px; justify-content: center; }
	.kt-asztal__elem { position: static; transform: rotate(calc(var(--kt-r, 0deg) / 3)); }
	.kt-polc__sor { padding-inline: 14px; column-gap: 10px; }
}

/* ---------- Önálló könyv, kártya ---------- */
.kt-onallo { display: inline-flex; }
.kt-onallo .kt-borito { --kt-bw: 200px; }
.kt-kartya { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 20px; border-radius: 16px; background: rgba(127, 127, 127, .08); }
.kt-kartya__szoveg { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.kt-kartya__cim { font-family: var(--kt-serif); font-size: 1.6em; font-weight: 600; text-decoration: none; color: inherit; }
.kt-gomb {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 24px;
	border-radius: 999px;
	background: #1F6B5C;
	color: #FBF4E6 !important;
	text-decoration: none !important;
	font-weight: 600;
	border: 0;
	cursor: pointer;
	font-size: 16px;
}
.kt-gomb--keret { background: transparent; color: inherit !important; box-shadow: inset 0 0 0 1.5px currentColor; }

@media (prefers-reduced-motion: reduce) {
	.kt-gerinc, .kt-borito, .kt-fekvo, .kt-asztal__elem { transition: none; }
}

/* ---------- Könyv oldala: fejléc ---------- */
.kt-fejlec { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); align-items: flex-start; margin-bottom: clamp(32px, 5vw, 56px); }
.kt-fejlec__borito { flex: 0 1 380px; display: flex; justify-content: center; }
.kt-fejlec__borito .kt-borito { --kt-bw: min(380px, 78vw); box-shadow: inset 12px 0 0 rgba(0, 0, 0, .18), 0 30px 50px rgba(0, 0, 0, .3); border-radius: 3px 10px 10px 3px; }
.kt-fejlec__szoveg { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.kt-fejlec__cimkek { display: flex; flex-wrap: wrap; gap: 8px; }
.kt-cimke { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: rgba(127, 127, 127, .14); color: inherit; font-size: 14px; font-weight: 600; text-decoration: none; }
.kt-cimke__pont { width: 9px; height: 9px; border-radius: 50%; }
.kt-fejlec__cim { margin: 0; font-family: var(--kt-serif, Georgia, serif); font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1; }
.kt-fejlec__leiras { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 40em; }
.kt-fejlec__zarolt { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 600; }
.kt-fejlec__gombok { display: flex; flex-wrap: wrap; gap: 12px; }
.kt-gomb--kicsi { min-height: 40px; padding: 0 16px; font-size: 14px; }
.kt-masol { font: inherit; font-weight: 600; }
.kt-szakaszcim { font-family: var(--kt-serif, Georgia, serif); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 20px; }

/* ---------- Sorozat ---------- */
.kt-sorozat { margin-top: clamp(40px, 6vw, 72px); }
.kt-sorozat__sor { display: flex; flex-wrap: wrap; gap: 22px; }
.kt-sorozat__kotet { margin: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; font-size: 14px; }
.kt-sorozat__kotet .kt-borito { --kt-bw: 140px; }
.kt-sorozat__kotet.is-aktualis .kt-borito { outline: 3px solid #E3BE72; outline-offset: 4px; }

/* ---------- Feladatlapok ---------- */
.kt-feladatlapok { margin-top: clamp(40px, 6vw, 72px); }
.kt-feladatlapok__racs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.kt-feladatlap-kartya { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 14px; background: rgba(127, 127, 127, .08); color: inherit; text-decoration: none; transition: transform .2s ease; }
.kt-feladatlap-kartya:hover { transform: translateY(-3px); }
.kt-feladatlap-kartya__ikon { flex: none; width: 58px; height: 76px; border-radius: 6px; background: #F6E3BC; color: #6B4A10; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px #E0C78F; }
.kt-feladatlap-kartya__szoveg { display: flex; flex-direction: column; gap: 4px; }
.kt-feladatlap-kartya__cim { font-weight: 600; font-size: 1.1em; }
.kt-feladatlap-kartya__leiras { font-size: .9em; opacity: .8; }

/* ---------- Napló: idővonal ---------- */
.kt-naploszuro { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; margin-bottom: 28px; }
.kt-naploszuro label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.kt-naploszuro select { min-height: 42px; padding: 0 10px; border-radius: 8px; font: inherit; font-weight: 400; }
.kt-naploszuro__torles { font-size: 14px; align-self: center; }
.kt-idovonal { list-style: none; margin: 0; padding: 0 0 0 30px; border-left: 2px solid rgba(201, 150, 60, .45); }
.kt-idovonal__elem { position: relative; padding-bottom: 32px; }
.kt-idovonal__elem::before { content: ""; position: absolute; left: -39px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid #8C83A3; background: var(--wp--preset--color--base, #fff); }
.kt-idovonal__elem.van-nakshatra::before { border-color: #D9A441; }
.kt-naplokartya { display: flex; flex-direction: column; gap: 10px; }
.kt-naplokartya .kt-naplo-felirat { margin: 0; }
.kt-naplokartya__cim { margin: 0; font-family: var(--kt-serif, Georgia, serif); font-size: 1.5em; display: flex; gap: 8px; align-items: center; }
.kt-naplokartya__cim a { color: inherit; text-decoration: none; }
.kt-naplokartya__kivonat { margin: 0; line-height: 1.6; opacity: .85; }
.kt-naplokartya__gombok { display: flex; flex-wrap: wrap; gap: 8px; }
.kt-lapozo { display: flex; gap: 18px; align-items: center; justify-content: center; margin-top: 12px; }

/* Oldaltörés: görgetős olvasásnál nem látszik */
.kt-oldaltores { display: none; }

/* Csak felolvasóknak (ha a téma nem adja) */
.kt-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Széles nézet: a téma keskeny sávjából kitörünk ----------
   Nem a téma beállításaira hagyatkozik: a bővítmény oldalain az elemek maguk lesznek szélesek.
   A szélesség a Könyvtár › Beállításokban állítható (--kt-szel, --kt-szoveg-szel). */
:root { --kt-szel: 1440px; --kt-szoveg-szel: 1200px; }
.kt-bejarat,
.kt-szeles-blokk,
body.kt-szeles .kt-oldal > .kt-nezet,
body.kt-szeles .kt-oldal > .wp-block-konyvtar-nezet,
body.kt-szeles .kt-fejlec,
body.kt-szeles .kt-sorozat,
body.kt-szeles .kt-feladatlapok,
body.kt-szeles .kt-naplolista,
body.kt-szeles .kt-oldal > .kt-cim,
body.kt-szeles .kt-oldal > .wp-block-query-title,
body.kt-szeles .kt-oldal > .wp-block-term-description {
	--kt-w: min(var(--kt-szel), calc(100vw - 48px));
	box-sizing: border-box;
	width: var(--kt-w) !important;
	max-width: none !important;
	margin-left: calc(50% - var(--kt-w) / 2) !important;
	margin-right: calc(50% - var(--kt-w) / 2) !important;
}
.kt-bejarat {
	--kt-w: min(var(--kt-szel), calc(100vw - 48px), max(760px, calc((100vh - 150px) * 1.86))) !important;
}
body.kt-szeles .wp-block-post-content.kt-tartalom {
	--kt-w: min(var(--kt-szoveg-szel), calc(100vw - 48px));
	box-sizing: border-box;
	width: var(--kt-w) !important;
	max-width: none !important;
	margin-left: calc(50% - var(--kt-w) / 2) !important;
	margin-right: calc(50% - var(--kt-w) / 2) !important;
}
body.kt-szeles .wp-block-post-content.kt-tartalom > :where(:not(.alignleft):not(.alignright)) { max-width: 100% !important; }
body.kt-szeles .kt-oldal, .wp-site-blocks { overflow-x: clip; }
.kt-szeles-blokk--teljes { --kt-w: calc(100vw - 32px) !important; }

/* A téma fejléce (felső menü) elrejtve a könyvtár oldalain – Beállítások › A webhely felső menüje */
body.kt-fejlec-rejtve .wp-site-blocks > header,
body.kt-fejlec-rejtve header.wp-block-template-part,
body.kt-fejlec-rejtve .wp-site-blocks > .wp-block-template-part:first-child:has(.wp-block-navigation, .wp-block-site-title, .wp-block-site-logo),
body.kt-fejlec-rejtve .wp-site-blocks > :first-child:has(> .wp-block-template-part .wp-block-navigation),
body.kt-fejlec-rejtve .site-header,
body.kt-fejlec-rejtve #masthead { display: none !important; }
body.kt-fejlec-rejtve .wp-site-blocks { padding-top: 0 !important; }
body.kt-fejlec-rejtve .wp-site-blocks > main,
body.kt-fejlec-rejtve main.kt-oldal { margin-top: 0 !important; padding-top: 24px !important; }

/* ================= Tananyag: formák a polcon, és a teljes képernyős tananyag ================= */
/* Spirálfüzet: ezüst spirál a gerinc bal szélén */
.kt-gerinc.kt-forma--fuzet { border-radius: 2px; padding-left: 8px; }
.kt-gerinc.kt-forma--fuzet::after {
	content: ""; position: absolute; top: 4px; bottom: 4px; left: 2px; width: 8px;
	background: repeating-linear-gradient(180deg, transparent 0 3px, #ececf1 3px 5px, #9a9aa5 5px 6px, transparent 6px 9px);
	border-radius: 3px; pointer-events: none;
}
/* Mappa: világosabb fül-sáv felül, dosszié-élek */
.kt-gerinc.kt-forma--mappa { border-radius: 2px; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .14), inset 3px 0 0 rgba(255, 255, 255, .12); }
.kt-gerinc.kt-forma--mappa::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 16px; background: rgba(255, 255, 255, .22); border-bottom: 2px solid rgba(0, 0, 0, .18); pointer-events: none; }
/* Tekercs: papírszín, hengeres árnyalás, két sötét fa vég */
.kt-gerinc.kt-forma--tekercs { border-radius: 14px / 6px; background-image: linear-gradient(180deg, #5a3a22 0 8px, transparent 8px calc(100% - 8px), #5a3a22 calc(100% - 8px)), linear-gradient(90deg, rgba(0, 0, 0, .22), transparent 30%, rgba(255, 255, 255, .18) 55%, rgba(0, 0, 0, .22)); }
/* Borítón: spirál a bal szélen, mappa-fül, tekercs-vég, és egy kis „tananyag” címke */
.kt-borito.kt-forma--fuzet::after { content: ""; position: absolute; top: 4%; bottom: 4%; left: 3px; width: 10px; background: repeating-linear-gradient(180deg, transparent 0 5px, #e7e7ec 5px 8px, #9a9aa5 8px 9px, transparent 9px 13px); border-radius: 4px; }
.kt-borito.kt-forma--mappa::after { content: ""; position: absolute; top: 0; right: 10%; width: 32%; height: 14px; border-radius: 0 0 6px 6px; background: rgba(255, 255, 255, .25); pointer-events: none; }
.kt-borito.kt-forma--tekercs { border-radius: 16px / 8px; background-image: linear-gradient(180deg, #5a3a22 0 10px, transparent 10px calc(100% - 10px), #5a3a22 calc(100% - 10px)); }
.kt-borito__tananyag { position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 3px 8px; border-radius: 99px; background: rgba(251, 244, 230, .92); color: #2a2116; font: 600 10px/1.2 system-ui, sans-serif; letter-spacing: .03em; }

.kt-tananyag { position: fixed; inset: 0; z-index: 100001; display: flex; flex-direction: column; background: #1c140d; }
.kt-tananyag[hidden] { display: none; }
.kt-tananyag__sav { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: linear-gradient(180deg, #3a2716, #2a1b10); color: #F3EBDD; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); font: 500 14px/1.3 system-ui, sans-serif; }
.kt-tananyag__cim { margin-right: auto; font: 600 16px/1.2 Georgia, serif; color: #F3D59A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-tananyag__gomb { padding: 7px 14px; border: 1px solid rgba(243, 213, 154, .5); border-radius: 99px; background: transparent; color: #F3EBDD !important; text-decoration: none !important; cursor: pointer; font: inherit; white-space: nowrap; }
.kt-tananyag__gomb:hover, .kt-tananyag__gomb:focus-visible { background: rgba(243, 213, 154, .15); outline: none; }
.kt-tananyag__zar { background: #F2C46D; color: #2A1A0C !important; border-color: #F2C46D; font-weight: 600; }
.kt-tananyag__keret { flex: 1; width: 100%; border: 0; background: #fff; }
html.kt-tananyag-nyitva, html.kt-tananyag-nyitva body { overflow: hidden; }
@media (max-width: 600px) { .kt-tananyag__gomb:not(.kt-tananyag__zar) { display: none; } .kt-tananyag__zar { padding: 7px 12px; } }

/* „Csak a kép” borító: a feltöltött borítókép tölti ki, felirat nélkül */
.kt-borito--kep { padding: 0; background-size: cover; background-position: var(--kt-fok, 50% 50%); }
.kt-borito--kep.van-kep::before { background-color: transparent !important; }

/* ================= Mozgóképes vers: balra a szöveg, jobbra a mozgókép ================= */
.kt-film-lap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin: 2em 0; }
.kt-film-lap__szoveg > :first-child { margin-top: 0; }
.kt-film-lap__szoveg blockquote, .kt-film-lap__szoveg .wp-block-quote { margin: 1.2em 0; padding: .6em 0 .6em 1.2em; border-left: 3px solid #B8893A; font-style: italic; }
.kt-film-lap__keret { position: sticky; top: 90px; margin: 0; }
.kt-film-lap__kep { padding: clamp(8px, 1.2vw, 16px); border-radius: 4px; background: linear-gradient(135deg, #f2d08a, #a8741f 35%, #f6dc9c 55%, #8a5a1a 80%, #d9a94f); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.kt-film-lap__kep video { display: block; width: 100%; height: auto; background: #000; }
.kt-film-lap__keret figcaption { margin-top: 8px; font: italic 13px/1.4 Georgia, serif; opacity: .7; text-align: center; }
@media (max-width: 860px) { .kt-film-lap { grid-template-columns: 1fr; } .kt-film-lap__keret { position: static; order: -1; } }

/* A zár oka a jelszókérő fölött */
.kt-zar-ok { display: flex; gap: 14px; align-items: flex-start; max-width: 640px; margin: 0 0 1.4em; padding: 16px 20px; border-radius: 10px; background: rgba(184, 137, 58, .1); border: 1px solid rgba(184, 137, 58, .35); }
.kt-zar-ok__lakat { font-size: 26px; line-height: 1; }
.kt-zar-ok p { margin: 0; line-height: 1.55; }

/* Filmtekercs forma a polcon */
.kt-gerinc.kt-forma--film { border-radius: 2px; background-image: repeating-linear-gradient(180deg, rgba(0, 0, 0, .75) 0 5px, transparent 5px 9px), repeating-linear-gradient(180deg, rgba(0, 0, 0, .75) 0 5px, transparent 5px 9px); background-size: 5px 100%, 5px 100%; background-position: 2px 0, calc(100% - 2px) 0; background-repeat: repeat-y; }
.kt-borito.kt-forma--film::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 8px; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .55) 0 6px, transparent 6px 11px); pointer-events: none; }

/* --- Zárt könyv: csak a jelszókérő kártya --- */
.kt-jelszolap { display: flex; gap: clamp(20px, 4vw, 44px); align-items: center; max-width: 720px; margin: clamp(24px, 6vh, 70px) auto; padding: clamp(20px, 3vw, 34px); border-radius: 16px; background: #fffaf0; border: 1px solid rgba(184, 137, 58, .3); box-shadow: 0 24px 50px -24px rgba(60, 35, 15, .35); }
.kt-jelszolap__borito { flex: none; }
.kt-jelszolap__borito .kt-borito { --kt-bw: clamp(120px, 22vw, 190px); box-shadow: inset 6px 0 0 rgba(0, 0, 0, .18), 0 14px 26px rgba(0, 0, 0, .3); }
.kt-jelszolap__szoveg { flex: 1; min-width: 0; }
.kt-jelszolap__lakat { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font: 600 12px/1.2 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #9a6a2a; }
.kt-jelszolap__cim { margin: 0 0 .5em; font-family: var(--kt-serif); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; }
.kt-jelszolap__ok { margin: 0 0 1em; line-height: 1.55; color: #5a4630; }
.kt-jelszolap form { margin: 0; }
.kt-jelszolap form p { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 0; }
.kt-jelszolap form label { flex: 1 1 180px; font-size: 0; }
.kt-jelszolap input[type="password"] { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid rgba(120, 80, 40, .35); border-radius: 10px; background: #fff; font-size: 16px; }
.kt-jelszolap input[type="password"]:focus { outline: 2px solid #b8893a; outline-offset: 1px; }
.kt-jelszolap input[type="submit"] { padding: 11px 22px; border: 0; border-radius: 10px; background: #1F6B5C; color: #fff; font: 600 15px/1.2 system-ui, sans-serif; cursor: pointer; }
.kt-jelszolap__vissza { display: inline-block; margin-top: 16px; font-size: 14px; color: #8a5a1e; }
@media (max-width: 560px) { .kt-jelszolap { flex-direction: column; text-align: center; } .kt-jelszolap__lakat { justify-content: center; } }

/* --- A klasszikus borító keretei --- */
.kt-borito__keret { position: relative; }
.kt-keret--dupla .kt-borito__keret { border-width: 1px; outline: 1px solid var(--kt-disz); outline-offset: -2.6cqw; }
.kt-keret--kecses .kt-borito__keret, .kt-keret--legies .kt-borito__keret { --kt-sarok: 24cqw; border-color: transparent; }
.kt-keret--kecses .kt-borito__keret { border: 0.7px solid color-mix(in srgb, var(--kt-disz) 55%, transparent); margin: 1cqw; }
.kt-keret--kecses .kt-borito__keret::before, .kt-keret--legies .kt-borito__keret::before {
	content: ""; position: absolute; inset: -2.4cqw; pointer-events: none; background: var(--kt-disz);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='rotate%280 20 20%29'%3E%3Cpath d='M2.5 38V15C2.5 7.5 7.5 2.5 15 2.5h23' fill='none' stroke='black' stroke-width='1.3'/%3E%3Cpath d='M8 38V19c0-6 5-11 11-11h19' fill='none' stroke='black' stroke-width='.7'/%3E%3Ccircle cx='8' cy='8' r='2.3'/%3E%3Cpath d='M13 15.5c2.6-3.4 7-3.6 9.5-.3-3 2.2-6.6 2.3-9.5.3zM15.5 13c-3.4-2.6-3.6-7-.3-9.5 2.2 3 2.3 6.6.3 9.5z'/%3E%3C/g%3E%3C/svg%3E") top left / var(--kt-sarok) var(--kt-sarok) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='rotate%2890 20 20%29'%3E%3Cpath d='M2.5 38V15C2.5 7.5 7.5 2.5 15 2.5h23' fill='none' stroke='black' stroke-width='1.3'/%3E%3Cpath d='M8 38V19c0-6 5-11 11-11h19' fill='none' stroke='black' stroke-width='.7'/%3E%3Ccircle cx='8' cy='8' r='2.3'/%3E%3Cpath d='M13 15.5c2.6-3.4 7-3.6 9.5-.3-3 2.2-6.6 2.3-9.5.3zM15.5 13c-3.4-2.6-3.6-7-.3-9.5 2.2 3 2.3 6.6.3 9.5z'/%3E%3C/g%3E%3C/svg%3E") top right / var(--kt-sarok) var(--kt-sarok) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='rotate%28270 20 20%29'%3E%3Cpath d='M2.5 38V15C2.5 7.5 7.5 2.5 15 2.5h23' fill='none' stroke='black' stroke-width='1.3'/%3E%3Cpath d='M8 38V19c0-6 5-11 11-11h19' fill='none' stroke='black' stroke-width='.7'/%3E%3Ccircle cx='8' cy='8' r='2.3'/%3E%3Cpath d='M13 15.5c2.6-3.4 7-3.6 9.5-.3-3 2.2-6.6 2.3-9.5.3zM15.5 13c-3.4-2.6-3.6-7-.3-9.5 2.2 3 2.3 6.6.3 9.5z'/%3E%3C/g%3E%3C/svg%3E") bottom left / var(--kt-sarok) var(--kt-sarok) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='rotate%28180 20 20%29'%3E%3Cpath d='M2.5 38V15C2.5 7.5 7.5 2.5 15 2.5h23' fill='none' stroke='black' stroke-width='1.3'/%3E%3Cpath d='M8 38V19c0-6 5-11 11-11h19' fill='none' stroke='black' stroke-width='.7'/%3E%3Ccircle cx='8' cy='8' r='2.3'/%3E%3Cpath d='M13 15.5c2.6-3.4 7-3.6 9.5-.3-3 2.2-6.6 2.3-9.5.3zM15.5 13c-3.4-2.6-3.6-7-.3-9.5 2.2 3 2.3 6.6.3 9.5z'/%3E%3C/g%3E%3C/svg%3E") bottom right / var(--kt-sarok) var(--kt-sarok) no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='rotate%280 20 20%29'%3E%3Cpath d='M2.5 38V15C2.5 7.5 7.5 2.5 15 2.5h23' fill='none' stroke='black' stroke-width='1.3'/%3E%3Cpath d='M8 38V19c0-6 5-11 11-11h19' fill='none' stroke='black' stroke-width='.7'/%3E%3Ccircle cx='8' cy='8' r='2.3'/%3E%3Cpath d='M13 15.5c2.6-3.4 7-3.6 9.5-.3-3 2.2-6.6 2.3-9.5.3zM15.5 13c-3.4-2.6-3.6-7-.3-9.5 2.2 3 2.3 6.6.3 9.5z'/%3E%3C/g%3E%3C/svg%3E") top left / var(--kt-sarok) var(--kt-sarok) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='rotate%2890 20 20%29'%3E%3Cpath d='M2.5 38V15C2.5 7.5 7.5 2.5 15 2.5h23' fill='none' stroke='black' stroke-width='1.3'/%3E%3Cpath d='M8 38V19c0-6 5-11 11-11h19' fill='none' stroke='black' stroke-width='.7'/%3E%3Ccircle cx='8' cy='8' r='2.3'/%3E%3Cpath d='M13 15.5c2.6-3.4 7-3.6 9.5-.3-3 2.2-6.6 2.3-9.5.3zM15.5 13c-3.4-2.6-3.6-7-.3-9.5 2.2 3 2.3 6.6.3 9.5z'/%3E%3C/g%3E%3C/svg%3E") top right / var(--kt-sarok) var(--kt-sarok) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='rotate%28270 20 20%29'%3E%3Cpath d='M2.5 38V15C2.5 7.5 7.5 2.5 15 2.5h23' fill='none' stroke='black' stroke-width='1.3'/%3E%3Cpath d='M8 38V19c0-6 5-11 11-11h19' fill='none' stroke='black' stroke-width='.7'/%3E%3Ccircle cx='8' cy='8' r='2.3'/%3E%3Cpath d='M13 15.5c2.6-3.4 7-3.6 9.5-.3-3 2.2-6.6 2.3-9.5.3zM15.5 13c-3.4-2.6-3.6-7-.3-9.5 2.2 3 2.3 6.6.3 9.5z'/%3E%3C/g%3E%3C/svg%3E") bottom left / var(--kt-sarok) var(--kt-sarok) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='rotate%28180 20 20%29'%3E%3Cpath d='M2.5 38V15C2.5 7.5 7.5 2.5 15 2.5h23' fill='none' stroke='black' stroke-width='1.3'/%3E%3Cpath d='M8 38V19c0-6 5-11 11-11h19' fill='none' stroke='black' stroke-width='.7'/%3E%3Ccircle cx='8' cy='8' r='2.3'/%3E%3Cpath d='M13 15.5c2.6-3.4 7-3.6 9.5-.3-3 2.2-6.6 2.3-9.5.3zM15.5 13c-3.4-2.6-3.6-7-.3-9.5 2.2 3 2.3 6.6.3 9.5z'/%3E%3C/g%3E%3C/svg%3E") bottom right / var(--kt-sarok) var(--kt-sarok) no-repeat;
}
.kt-keret--legies .kt-borito__keret { --kt-sarok: 20cqw; }
.kt-keret--legies .kt-borito__keret::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='rotate%280 20 20%29'%3E%3Cpath d='M2 30V2h28' fill='none' stroke='black' stroke-width='1.2'/%3E%3Cpath d='M7 15V7h8' fill='none' stroke='black' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E") top left / var(--kt-sarok) var(--kt-sarok) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='rotate%2890 20 20%29'%3E%3Cpath d='M2 30V2h28' fill='none' stroke='black' stroke-width='1.2'/%3E%3Cpath d='M7 15V7h8' fill='none' stroke='black' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E") top right / var(--kt-sarok) var(--kt-sarok) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='rotate%28270 20 20%29'%3E%3Cpath d='M2 30V2h28' fill='none' stroke='black' stroke-width='1.2'/%3E%3Cpath d='M7 15V7h8' fill='none' stroke='black' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E") bottom left / var(--kt-sarok) var(--kt-sarok) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='rotate%28180 20 20%29'%3E%3Cpath d='M2 30V2h28' fill='none' stroke='black' stroke-width='1.2'/%3E%3Cpath d='M7 15V7h8' fill='none' stroke='black' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E") bottom right / var(--kt-sarok) var(--kt-sarok) no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='rotate%280 20 20%29'%3E%3Cpath d='M2 30V2h28' fill='none' stroke='black' stroke-width='1.2'/%3E%3Cpath d='M7 15V7h8' fill='none' stroke='black' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E") top left / var(--kt-sarok) var(--kt-sarok) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='rotate%2890 20 20%29'%3E%3Cpath d='M2 30V2h28' fill='none' stroke='black' stroke-width='1.2'/%3E%3Cpath d='M7 15V7h8' fill='none' stroke='black' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E") top right / var(--kt-sarok) var(--kt-sarok) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='rotate%28270 20 20%29'%3E%3Cpath d='M2 30V2h28' fill='none' stroke='black' stroke-width='1.2'/%3E%3Cpath d='M7 15V7h8' fill='none' stroke='black' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E") bottom left / var(--kt-sarok) var(--kt-sarok) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='rotate%28180 20 20%29'%3E%3Cpath d='M2 30V2h28' fill='none' stroke='black' stroke-width='1.2'/%3E%3Cpath d='M7 15V7h8' fill='none' stroke='black' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E") bottom right / var(--kt-sarok) var(--kt-sarok) no-repeat; inset: -1cqw; }
.kt-keret--ives .kt-borito__keret { border-radius: 50% 50% 3cqw 3cqw / 30% 30% 3cqw 3cqw; padding-top: 18cqw; }
.kt-keret--jatekos .kt-borito__keret { border: 2px dotted var(--kt-disz); border-radius: 9cqw; box-shadow: inset 0 0 0 2.2cqw transparent, inset 0 0 0 calc(2.2cqw + 1px) color-mix(in srgb, var(--kt-disz) 45%, transparent); }
.kt-keret--nincs .kt-borito__keret { border-color: transparent; }

/* --- Saját dísz a borító közepén --- */
.kt-borito__sajatdisz { display: block; width: 28cqw; height: 28cqw; background: var(--kt-disz); -webkit-mask: var(--kt-ikon) center / contain no-repeat; mask: var(--kt-ikon) center / contain no-repeat; }
img.kt-borito__sajatdisz--kep { background: none; object-fit: contain; -webkit-mask: none; mask: none; }

/* --- Üvegajtók a szekrény polcai előtt --- */
.kt-polc { perspective: 1400px; }
.kt-uveg { position: absolute; z-index: 2; left: 6px; right: 6px; top: 0; bottom: var(--kt-deszka, 18px); display: flex; cursor: pointer; pointer-events: auto; }
.kt-uveg__szarny {
	position: relative; flex: 1; box-sizing: border-box;
	border: 7px solid #5a3a20; border-radius: 3px;
	background:
		linear-gradient(112deg, rgba(255, 255, 255, .2) 0 8%, rgba(255, 255, 255, .03) 8% 30%, rgba(255, 255, 255, .13) 30% 34%, rgba(255, 255, 255, .02) 34% 70%, rgba(255, 255, 255, .1) 70% 72%, rgba(255, 255, 255, .03) 72%),
		rgba(170, 205, 215, .1);
	box-shadow: inset 0 0 0 1px rgba(255, 230, 180, .25), inset 0 0 24px rgba(200, 230, 255, .08), 0 4px 10px rgba(0, 0, 0, .25);
	transition: transform .7s cubic-bezier(.3, .1, .2, 1), opacity .7s;
	-webkit-backdrop-filter: blur(.6px) saturate(.9); backdrop-filter: blur(.6px) saturate(.9);
}
.kt-uveg__szarny--bal { transform-origin: left center; margin-right: -3px; }
.kt-uveg__szarny--jobb { transform-origin: right center; }
.kt-uveg__gomb { position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff1c4, #c99a45 60%, #7a5218); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.kt-uveg__szarny--bal .kt-uveg__gomb { right: 6px; }
.kt-uveg__szarny--jobb .kt-uveg__gomb { left: 6px; }
.kt-uveg:hover .kt-uveg__szarny { box-shadow: inset 0 0 0 1px rgba(255, 230, 180, .45), inset 0 0 30px rgba(255, 240, 200, .14), 0 4px 10px rgba(0, 0, 0, .25); }
.kt-uveg.is-nyitva .kt-uveg__szarny--bal { transform: rotateY(-78deg); }
.kt-uveg.is-nyitva .kt-uveg__szarny--jobb { transform: rotateY(78deg); }
.kt-uveg.is-nyitva { pointer-events: none; }
.kt-uveg.is-nyitva .kt-uveg__szarny { pointer-events: auto; }
.kt-uveg:focus-visible { outline: 3px solid #F2C46D; outline-offset: -3px; }
.kt-polc__tabla { z-index: 3; }
@media (prefers-reduced-motion: reduce) { .kt-uveg__szarny { transition: none; } }

/* Üveg tolóajtó: a jobb szárny a bal mögé csúszik */
.kt-uveg--tolo .kt-uveg__szarny { transform-origin: center; }
.kt-uveg--tolo .kt-uveg__szarny--jobb { z-index: 1; }
.kt-uveg--tolo.is-nyitva .kt-uveg__szarny--bal { transform: none; }
.kt-uveg--tolo.is-nyitva .kt-uveg__szarny--jobb { transform: translateX(-97%); }
.kt-uveg--tolo .kt-uveg__gomb { width: 5px; height: 22px; margin-top: -11px; border-radius: 3px; }
/* Faajtó: tömör fa szárnyak, kifelé nyílnak */
.kt-uveg--fa .kt-uveg__szarny {
	background:
		linear-gradient(90deg, rgba(0, 0, 0, .12), transparent 12%, transparent 88%, rgba(0, 0, 0, .12)),
		repeating-linear-gradient(92deg, rgba(255, 255, 255, .035) 0 3px, transparent 3px 11px),
		linear-gradient(180deg, #7a4e2a, #5f3b1f);
	box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .12), inset 0 0 0 7px rgba(255, 220, 170, .15), 0 4px 10px rgba(0, 0, 0, .3);
	-webkit-backdrop-filter: none; backdrop-filter: none;
}
.kt-uveg--fa.is-nyitva .kt-uveg__szarny--bal { transform: rotateY(-82deg); }
.kt-uveg--fa.is-nyitva .kt-uveg__szarny--jobb { transform: rotateY(82deg); }

/* --- A szekrényeim oldal --- */
.kt-szekrenyeim__bevezeto { max-width: 46em; color: #5a4630; }
.kt-szekrenyeim__uzenet { padding: 10px 14px; border-radius: 10px; background: #eef6ee; color: #2f5a35; }
.kt-szekrenyeim__racs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: clamp(28px, 4vw, 48px); margin-top: 28px; align-items: start; }
.kt-szekrenyeim__elem { display: flex; flex-direction: column; gap: 10px; }
.kt-szekrenyeim__tabla { display: inline-flex; align-self: center; align-items: baseline; gap: 10px; padding: 8px 18px; border-radius: 8px; background: linear-gradient(#e9c47a, #c99a45); color: #3a2410; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 10px rgba(60, 35, 15, .25); }
.kt-szekrenyeim__szam { font: 700 1.5em/1 var(--kt-serif, Georgia, serif); }
.kt-szekrenyeim__nev { font: 600 1.15em/1.2 var(--kt-serif, Georgia, serif); }
.kt-szekrenyeim__adat { margin: 0; text-align: center; font-size: .85em; color: #6b5a44; }
.kt-szekrenyeim__adat code { font-size: .95em; padding: 1px 6px; border-radius: 4px; background: rgba(184, 137, 58, .15); }
.kt-szekrenyeim__elem.is-terem .kt-szekrenyeim__kep { box-shadow: 0 0 0 3px #b8893a; border-radius: 12px; }
.kt-szekrenyeim__kep .kt-nezet, .kt-szekrenyeim__kep .kt-szekreny { margin: 0 !important; }
.kt-szekrenyeim__gombok { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.kt-szekrenyeim__gombok form { margin: 0; }
.kt-gomb--halk { background: transparent !important; color: inherit !important; box-shadow: inset 0 0 0 1px rgba(90, 60, 30, .35) !important; }
