/*
Theme Name:   Betheme Child - KDF
Description:  Child téma pro Betheme - Klub dobrej fotografie (komunitní web: BuddyPress, bbPress, rtMedia)
Author:       KDF
Template:     betheme
Version:      2.11.0
Text Domain:  betheme-child-kdf
*/

/* ==========================================================================
   1) BAREVNÁ PALETA KDF (podle kdf.sk, upraveno pro svěžejší/modernější dojem)
   ========================================================================== */
:root {
	--kdf-dark:        #1b1d1f;   /* tmavá antracitová z loga/hlavičky kdf.sk */
	--kdf-teal:         #0097b2;  /* tyrkysová z loga */
	--kdf-orange:       #ffbd59;  /* oranžová/medová z loga */
	--kdf-bg-light:     #f6f8f9;  /* světlé pozadí karet - svěžejší než plná čerň */
	--kdf-border:       #e5e9ea;
	--kdf-text:         #23282b;
	--kdf-text-light:   #6b7579;
	--kdf-radius:       14px;
	--kdf-shadow:       0 2px 14px rgba(20, 30, 32, 0.08);
}

/* ==========================================================================
   2) OBECNÝ "KARTOVÝ" MODERNÍ VZHLED PRO KOMUNITNÍ BLOKY
   ========================================================================== */
#buddypress,
#bbpress-forums,
.rtmedia-wrapper {
	color: var(--kdf-text);
}

#buddypress .item-list-tabs,
#bbpress-forums .bbp-forums-list,
#buddypress div.item-list-tabs ul {
	background: transparent;
	border: none;
}

#buddypress .item-list-tabs ul li a,
#bbpress-forums .bbp-forums-list li a {
	border-radius: var(--kdf-radius);
	transition: background .2s ease, color .2s ease;
}

#buddypress .item-list-tabs ul li.selected a,
#buddypress .item-list-tabs ul li a:hover {
	background: var(--kdf-teal) !important;
	color: #fff !important;
}

/* Karty u výpisu členů / skupin / aktivit / fór */
#buddypress div.item-list-tabs,
#buddypress .activity-list > li,
#buddypress .item-list > li,
#bbpress-forums .bbp-forum-content,
#bbpress-forums .bbp-topic-content,
.rtmedia-item {
	background: #fff;
	border: 1px solid var(--kdf-border);
	border-radius: var(--kdf-radius);
	box-shadow: var(--kdf-shadow);
}

/* Fórum: pruh s dátumom / Odpovedať / # je pod príspevkom (bbpress/loop-single-reply.php) -
   prilepený k príspevku, medzera až pod ním, aby bolo jasné, ku ktorému patrí */
html body #bbpress-forums li.bbp-body > div.reply,
html body #bbpress-forums li.bbp-body > div.topic { margin-bottom: 0 !important; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
html body #bbpress-forums li.bbp-body > div.kdf-reply-bar { margin: 0 0 12px !important; }
/* li.bbp-body má gap 10px (zoznam tém) - v téme by oddeľoval pruh od jeho príspevku; medzeru robí margin pruhu */
html body #bbpress-forums ul.bbp-replies > li.bbp-body { gap: 0 !important; }
/* záhlavie "Autor / Odoberať / Príspevky" nad príspevkami - Odoberať je v hlavičke témy */
html body #bbpress-forums ul.bbp-replies > li.bbp-header { display: none !important; }
/* hlavička témy: riadok fórum · založil(a) · odpovede ako bežný text (flex lámal každý kúsok zvlášť) */
.kdf-topic-head .kdf-group-meta { display: block !important; line-height: 1.5; }
.kdf-topic-head .kdf-group-meta .dashicons { vertical-align: -3px; margin-right: 4px; }
/* príspevky v téme - overené v prehliadači na 375 / 768 / 1024 px */
@media (max-width: 767px) {
	html body #bbpress-forums div.bbp-reply-author :is(.bbp-author-role, .bbp-author-name) { flex-shrink: 0 !important; white-space: nowrap !important; width: auto !important; }
	html body #bbpress-forums div.bbp-reply-author { flex-wrap: wrap !important; }
	html body #bbpress-forums div.bbp-reply-author .bbp-reply-ip { display: none !important; }
	html body #bbpress-forums .kdf-reply-bar .bbp-meta { display: flex !important; flex-wrap: wrap !important; align-items: center; gap: 2px 10px !important; }
	/* bežný člen: dátum · Odpovedať · #číslo na jednom riadku; správcovi sa dlhé odkazy zalomia */
	html body #bbpress-forums .kdf-reply-bar .bbp-reply-permalink { order: 3 !important; margin-left: auto !important; }
	html body #bbpress-forums .kdf-reply-bar .bbp-admin-links { order: 2 !important; flex: 0 1 auto !important; display: block !important; line-height: 30px !important; }
	html body:not(#kdf-a):not(#kdf-b):not(#kdf-c):not(#kdf-d) #bbpress-forums .kdf-reply-bar .bbp-admin-links a { min-height: 30px !important; height: auto !important; }
}
@media (min-width: 768px) {
	html body #bbpress-forums li.bbp-body div.bbp-reply-author { width: 150px !important; }
	html body #bbpress-forums li.bbp-body div.bbp-reply-content { margin-left: 170px !important; }
	html body #bbpress-forums li.bbp-body div.bbp-reply-author .bbp-author-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; overflow-wrap: normal !important; }
	html body #bbpress-forums li.bbp-body div.bbp-reply-author .bbp-reply-ip { font-size: 10px !important; word-break: break-all; }
	html body #bbpress-forums .kdf-reply-bar .bbp-meta { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
	html body #bbpress-forums .kdf-reply-bar .bbp-admin-links { order: 2; margin: 0 0 0 auto !important; float: none !important; }
	html body #bbpress-forums .kdf-reply-bar .bbp-reply-permalink { order: 3; float: none !important; margin: 0 !important; }
}
#bbpress-forums .kdf-reply-bar { margin: 0 0 14px !important; border-top: 1px solid #eef0f2 !important; border-radius: 0 0 var(--kdf-radius) var(--kdf-radius); }
#bbpress-forums .kdf-reply-bar .bbp-admin-links a:last-child { color: var(--kdf-teal) !important; font-weight: 700; }

/* Fórum: väčšie písmo v konverzácii */
#bbpress-forums .bbp-reply-content,
#bbpress-forums .bbp-reply-content p,
#bbpress-forums .bbp-topic-content p { font-size: 16px !important; line-height: 1.6 !important; color: #1c1e21; }

#buddypress .activity-list > li,
#buddypress .item-list > li {
	padding: 18px;
	margin-bottom: 16px;
}

/* Avatary - kulaté, s jemným tyrkysovým rámečkem */
#buddypress img.avatar,
#bbpress-forums img.avatar,
.rtmedia-item .rtmedia-item-thumbnail img {
	border-radius: 50%;
	border: 2px solid var(--kdf-teal);
	object-fit: cover;
}

/* Skupinové/foto náhledy (ne kulaté) si ponechávají zaoblené rohy, ne kruh */
.rtmedia-item .rtmedia-item-thumbnail img {
	border-radius: 10px;
	border-color: var(--kdf-border);
}

/* ==========================================================================
   3) TLAČÍTKA
   ========================================================================== */
#buddypress a.button,
#buddypress button,
#buddypress input[type="submit"],
#bbpress-forums button,
#bbpress-forums .button,
.rtmedia-item .rtmedia-action-buttons a {
	background: var(--kdf-teal);
	color: #fff !important;
	border: none;
	border-radius: 999px;
	padding: 8px 20px;
	font-weight: 600;
	transition: background .2s ease, transform .15s ease;
}

#buddypress a.button:hover,
#buddypress button:hover,
#buddypress input[type="submit"]:hover,
#bbpress-forums button:hover,
#bbpress-forums .button:hover {
	background: var(--kdf-orange);
	transform: translateY(-1px);
}

/* Sekundární/needestruktivní akce (zrušit přátelství, opustit skupinu apod.) */
#buddypress a.button.confirm,
#buddypress a.reject {
	background: var(--kdf-orange);
}

/* ==========================================================================
   4) FORMULÁŘE (registrace, nové téma, nová zpráva, nahrávání fotek)
   ========================================================================== */
#buddypress form.standard-form input[type="text"],
#buddypress form.standard-form input[type="email"],
#buddypress form.standard-form input[type="password"],
#buddypress form.standard-form textarea,
#bbpress-forums input[type="text"],
#bbpress-forums textarea {
	border: 1px solid var(--kdf-border);
	border-radius: 10px;
	padding: 10px 14px;
	background: var(--kdf-bg-light);
}

#buddypress form.standard-form input:focus,
#bbpress-forums input:focus,
#bbpress-forums textarea:focus {
	border-color: var(--kdf-teal);
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 151, 178, .15);
}

/* ==========================================================================
   5) RTMEDIA GALERIE - mřížka jako Instagram/FB
   ========================================================================== */
.rtmedia-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	padding: 0;
	list-style: none;
}

.rtmedia-list .rtmedia-list-item {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 10px;
}

.rtmedia-list .rtmedia-list-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ==========================================================================
   6) OBALOVÝ KONTEJNER - aby BP/bbPress dědily šířku stránky z Betheme
   (třídy přidává functions.php přes BP/bbPress hooky, viz kdf_wrap_* )
   ========================================================================== */
.kdf-community-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* ==========================================================================
   7) TITULNÍ STRÁNKA
   ========================================================================== */
body.home #Subheader { display: none; }
body.home #Content { padding-top: 0; }

.kdf-eyebrow {
	display: inline-block;
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--kdf-teal);
	font-weight: 600;
	margin-bottom: 18px;
}

.kdf-btn {
	display: inline-block;
	padding: 14px 30px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background .2s ease, color .2s ease, transform .15s ease;
}
.kdf-btn:hover { transform: translateY(-2px); }
.kdf-btn-primary { background: var(--kdf-teal); color: #fff !important; }
.kdf-btn-primary:hover { background: var(--kdf-orange); }
.kdf-btn-ghost { border: 2px solid var(--kdf-dark); color: var(--kdf-dark) !important; }
.kdf-btn-ghost:hover { background: var(--kdf-dark); color: #fff !important; }

.kdf-hero {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 60px;
	align-items: center;
	padding: 70px 0 90px;
}
.kdf-hero h1 {
	font-size: clamp(36px, 5vw, 62px);
	line-height: 1.08;
	font-weight: 700;
	color: var(--kdf-dark);
	margin-bottom: 24px;
}
.kdf-hero h1 span { color: var(--kdf-teal); }
.kdf-hero p {
	font-size: 19px;
	line-height: 1.7;
	color: var(--kdf-text-light);
	max-width: 520px;
	margin-bottom: 36px;
}
.kdf-hero .kdf-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.kdf-hero-img {
	position: relative;
	height: 560px;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 30px 60px rgba(20, 30, 32, .18);
}
.kdf-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.kdf-hero-img::after {
	content: "";
	position: absolute;
	inset: auto 24px 24px auto;
	width: 86px;
	height: 86px;
	border-radius: 50%;
	background: var(--kdf-orange);
	opacity: .9;
	mix-blend-mode: multiply;
}

.kdf-section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.kdf-section-head h2 { font-size: clamp(28px, 3.4vw, 42px); color: var(--kdf-dark); margin-bottom: 14px; }
.kdf-section-head p { color: var(--kdf-text-light); font-size: 17px; }

.kdf-features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	padding: 20px 0 90px;
}
.kdf-feature {
	background: var(--kdf-bg-light);
	border-radius: 20px;
	padding: 34px 28px;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.kdf-feature:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--kdf-shadow); }
.kdf-feature .kdf-ico {
	width: 52px; height: 52px;
	border-radius: 14px;
	display: grid; place-items: center;
	background: rgba(0, 151, 178, .14);
	color: var(--kdf-teal);
	font-size: 24px;
	margin-bottom: 22px;
}
.kdf-feature:nth-child(even) .kdf-ico { background: rgba(242, 169, 59, .16); color: #c7811a; }
.kdf-feature h3 { font-size: 20px; color: var(--kdf-dark); margin-bottom: 10px; transition: color .2s ease; }
a.kdf-feature, a.kdf-feature:hover { text-decoration: none; }
a.kdf-feature:hover h3 { color: #ffbd59; }
.kdf-feature p { color: var(--kdf-text-light); margin: 0; line-height: 1.65; }

.kdf-gallery-wrap { padding: 20px 0 90px; }
.kdf-gallery-wrap .rtmedia-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.kdf-gallery-wrap .rtm-gallery-shortcode-title-container { display: none; }
.kdf-gallery-wrap .rtmedia-no-media-found {
	font-size: 0;
	text-align: center;
	padding: 60px 20px;
	border: 2px dashed var(--kdf-border);
	border-radius: 20px;
}
.kdf-gallery-wrap .rtmedia-no-media-found::after {
	content: "Galéria sa práve pripravuje – prvé fotky členov sa tu zobrazia čoskoro.";
	font-size: 16px;
	color: var(--kdf-text-light);
}

.kdf-about {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	background: var(--kdf-dark);
	color: #d9dfe1;
	border-radius: 28px;
	padding: 70px;
	margin-bottom: 90px;
}
.kdf-about h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; }
.kdf-about h2 span { color: var(--kdf-orange); }
.kdf-about p { line-height: 1.75; }
.kdf-stats { display: flex; gap: 40px; margin-top: 30px; }
.kdf-stats strong { display: block; font-size: 34px; color: var(--kdf-teal); line-height: 1.1; }
.kdf-stats span { font-size: 14px; color: #9aa5a9; }

.kdf-cta {
	text-align: center;
	padding: 80px 30px;
	margin-bottom: 90px;
	border-radius: 28px;
	background: linear-gradient(135deg, rgba(0, 151, 178,.12), rgba(242,169,59,.14));
}
.kdf-cta h2 { font-size: clamp(28px, 3.4vw, 42px); color: var(--kdf-dark); margin-bottom: 14px; }
.kdf-cta p { color: var(--kdf-text-light); max-width: 560px; margin: 0 auto 30px; font-size: 17px; }

@media (max-width: 1100px) {
	.kdf-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.kdf-hero, .kdf-about { grid-template-columns: 1fr; gap: 36px; }
	.kdf-hero { padding: 40px 0 60px; }
	.kdf-hero-img { height: 380px; }
	.kdf-about { padding: 44px 28px; }
}
@media (max-width: 560px) {
	.kdf-features { grid-template-columns: 1fr; }
	.kdf-stats { gap: 24px; }
}

/* ==========================================================================
   8) PRIHLÁSENIE (frontend)
   ========================================================================== */
.kdf-login-box { max-width: 440px; margin: 40px auto 80px; padding: 40px; background: #fff; border: 1px solid var(--kdf-border); border-radius: 24px; box-shadow: var(--kdf-shadow); }
.kdf-login-box h2 { margin-bottom: 20px; color: var(--kdf-dark); }
.kdf-login-box label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--kdf-dark); }
.kdf-login-box input[type="text"], .kdf-login-box input[type="password"] { width: 100%; border: 1px solid var(--kdf-border); border-radius: 10px; padding: 12px 14px; background: var(--kdf-bg-light); margin-bottom: 0; }
.kdf-login-box input[type="text"]:focus, .kdf-login-box input[type="password"]:focus { border-color: var(--kdf-teal); outline: none; box-shadow: 0 0 0 3px rgba(0, 151, 178, .15); }
.kdf-login-box .login-remember label { display: inline; font-weight: 400; }
.kdf-login-box input[type="submit"] { width: 100%; background: var(--kdf-teal); color: #fff; border: 0; border-radius: 999px; padding: 14px; font-weight: 600; cursor: pointer; }
.kdf-login-box input[type="submit"]:hover { background: var(--kdf-orange); }
.kdf-login-links { margin-top: 18px; text-align: center; font-size: 14px; }
.kdf-notice { padding: 12px 16px; border-radius: 10px; background: rgba(0, 151, 178, .12); color: var(--kdf-dark); }
.kdf-notice-error { background: rgba(214, 69, 65, .1); color: #a3302c; }

/* ==========================================================================
   9) REGISTRÁCIA (BuddyPress) + spoločný vzhľad formulárov účtu
   ========================================================================== */
#buddypress .register-page { max-width: 880px; margin: 30px auto 80px; padding: 44px; background: #fff; border: 1px solid var(--kdf-border); border-radius: 24px; box-shadow: var(--kdf-shadow); }
#buddypress .register-page > aside, #buddypress .register-page .bp-feedback { margin-bottom: 26px; }
#buddypress .register-page #signup-form > p:first-child, #buddypress .register-page .register-intro { color: var(--kdf-text-light); }
#buddypress .register-page .layout-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; border: 0; }
#buddypress .register-page .register-section { float: none; width: auto; margin: 0; padding: 0; }
#buddypress .register-page .bp-heading { font-size: 22px; margin: 0 0 18px; padding: 0; background: none; border: 0; color: var(--kdf-dark); }
#buddypress .register-page label, #buddypress .register-page legend { display: block; font-weight: 600; font-size: 14px; color: var(--kdf-dark); margin: 16px 0 6px; padding: 0; }
#buddypress .register-page input[type="text"], #buddypress .register-page input[type="email"], #buddypress .register-page input[type="password"] { width: 100%; box-sizing: border-box; margin: 0; border: 1px solid var(--kdf-border); border-radius: 10px; padding: 12px 14px; background: var(--kdf-bg-light); font-size: 15px; }
#buddypress .register-page input:focus { border-color: var(--kdf-teal); outline: none; box-shadow: 0 0 0 3px rgba(0, 151, 178, .15); background: #fff; }
#buddypress .register-page fieldset { border: 0; padding: 0; margin: 0; }
#buddypress .register-page .field-visibility-settings-header, #buddypress .register-page .description { font-size: 13px; color: var(--kdf-text-light); margin-top: 6px; }
#buddypress .register-page .password-input-wrapper { position: relative; display: block; }
#buddypress .register-page .password-input-wrapper input { padding-right: 52px; }
#buddypress .register-page .wp-hide-pw { position: absolute !important; top: 50% !important; right: 6px !important; bottom: auto !important; left: auto !important; transform: translateY(-50%) !important; transition: color .2s ease !important; width: 40px; height: 40px; min-width: 0; padding: 0 !important; margin: 0 !important; border-radius: 8px !important; background: transparent !important; color: var(--kdf-text-light) !important; box-shadow: none; display: grid; place-items: center; }
#buddypress .register-page .wp-hide-pw:hover { color: var(--kdf-teal) !important; transform: translateY(-50%) !important; }
#buddypress .register-page .wp-hide-pw .dashicons { font-size: 20px; width: 20px; height: 20px; line-height: 20px; }
.caps-warning { display: none; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: #a3302c; }
.caps-warning .caps-icon { display: inline-flex; width: 16px; height: 16px; }
.caps-warning .caps-icon svg { width: 16px !important; height: 16px !important; fill: currentColor; }
#buddypress .register-page #pass-strength-result { display: block; margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; text-align: center; background: var(--kdf-bg-light); border: 0; color: var(--kdf-text-light); width: auto; }
#buddypress .register-page #pass-strength-result.short { background: #fbe3e2; color: #a3302c; }
#buddypress .register-page #pass-strength-result.bad { background: #fdecd9; color: #a35a12; }
#buddypress .register-page #pass-strength-result.good { background: #fff4d6; color: #8a6510; }
#buddypress .register-page #pass-strength-result.strong { background: rgba(0, 151, 178, .15); color: #16736e; }
#buddypress .register-page .pw-weak label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
#buddypress .register-page .pw-weak input { width: auto; }
#buddypress .register-page .user-pass2-wrap br { display: none; }
#buddypress .register-page .submit { margin-top: 34px; text-align: center; }
#buddypress .register-page #submit { min-width: 260px; padding: 15px 30px; font-size: 16px; }
@media (max-width: 767px) {
	#buddypress .register-page { padding: 26px 20px; margin-top: 10px; }
	#buddypress .register-page .layout-wrap { grid-template-columns: 1fr; gap: 10px; }
	#buddypress .register-page #submit { width: 100%; min-width: 0; }
}

.kdf-login-box .kdf-login-logo { display: block; width: 72px; height: 72px; margin: 0 auto 14px; }
.kdf-login-box h2 { text-align: center; }
.kdf-login-box .kdf-login-sub { text-align: center; color: var(--kdf-text-light); margin: -10px 0 24px; font-size: 15px; }
.kdf-login-box p { margin-bottom: 16px; }
.kdf-login-box input[type="email"] { width: 100%; border: 1px solid var(--kdf-border); border-radius: 10px; padding: 12px 14px; background: var(--kdf-bg-light); }

@media (max-width: 767px) {
	.kdf-community-wrap {
		padding: 24px 16px;
	}
	.rtmedia-list {
		grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	}
}

/* ==========================================================================
   10) PROFILY V ŠTÝLE INSTAGRAMU
   ========================================================================== */

:root { --ig-line: #e6e6e6; --ig-muted: #8e8e8e; --ig-soft: #f4f5f6; }

/* --- Spoločné: BP navigácie bez bublín --- */
body #buddypress .bp-navs,
body #buddypress .bp-navs ul,
body #buddypress .bp-navs li { background: none !important; border: 0 !important; box-shadow: none !important; float: none !important; margin: 0 !important; padding: 0 !important; }
body #buddypress .bp-navs li a .count { display: none !important; }

/* --- ADRESÁR ČLENOV / SKUPÍN --- */
body #buddypress .dir-navs { margin: 0 0 22px !important; border-bottom: 1px solid var(--ig-line) !important; }
body #buddypress .dir-navs ul { display: flex !important; gap: 28px; justify-content: center; }
body #buddypress .dir-navs li a {
	display: block !important; padding: 12px 0 !important; margin-bottom: -1px !important; background: none !important; border: 0 !important;
	border-bottom: 2px solid transparent !important; border-radius: 0 !important; color: var(--ig-muted) !important;
	font-size: 13px !important; font-weight: 600 !important; letter-spacing: .06em; text-transform: uppercase;
}
body #buddypress .dir-navs li.selected a,
body #buddypress .dir-navs li.current a { color: var(--kdf-dark) !important; border-bottom-color: var(--kdf-dark) !important; }

body #buddypress .subnav-filters {
	display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	margin: 0 0 32px !important; padding: 0 !important; border: 0 !important; background: none !important;
}
body #buddypress .subnav-filters > div { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
body #buddypress .subnav-search { flex: 1 1 280px; max-width: 420px; }
body #buddypress .bp-dir-search-form,
body #buddypress .dir-search,
body #buddypress .dir-search form { position: relative; border: 0 !important; background: none !important; box-shadow: none !important; margin: 0 !important; padding: 0 !important; width: 100% !important; }
body #buddypress .dir-search input[type="search"] {
	width: 100% !important; height: 44px !important; padding: 0 18px 0 44px !important; margin: 0 !important;
	border: 0 !important; border-radius: 999px !important; background: var(--ig-soft) !important; box-shadow: none !important; font-size: 14px !important;
}
body #buddypress .dir-search input[type="search"]:focus { background: #fff !important; box-shadow: 0 0 0 2px var(--kdf-teal) !important; outline: 0; }
body #buddypress .dir-search button.nouveau-search-submit {
	position: absolute !important; left: 6px; top: 6px; width: 32px !important; height: 32px !important; padding: 0 !important; margin: 0 !important;
	border: 0 !important; border-radius: 50% !important; background: transparent !important; color: var(--ig-muted) !important; box-shadow: none !important;
	display: flex !important; align-items: center; justify-content: center;
}
body #buddypress .dir-search button.nouveau-search-submit .dashicons { font-size: 18px; width: 18px; height: 18px; color: var(--ig-muted); }
body #buddypress .component-filters { flex: 0 0 auto; }
body #buddypress .component-filters .select-wrap { position: relative; border: 0 !important; background: none !important; }
body #buddypress .component-filters select {
	height: 44px !important; padding: 0 40px 0 18px !important; border: 0 !important; border-radius: 999px !important; margin: 0 !important;
	background: var(--ig-soft) !important; font-size: 14px !important; color: var(--kdf-dark) !important; appearance: none; -webkit-appearance: none; cursor: pointer; box-shadow: none !important;
}
body #buddypress .component-filters .select-arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }
body #buddypress .component-filters .select-arrow { z-index: 2; }
body #buddypress .component-filters select { text-indent: 0 !important; }
body #buddypress .component-filters .select-arrow::before { content: "\f347"; font-family: dashicons; font-size: 14px; color: var(--ig-muted); }
body #buddypress .component-filters .select-wrap:focus-within { box-shadow: none; }

body #buddypress .bp-pagination.top { display: none !important; }
body #buddypress .bp-pagination.bottom { border: 0 !important; margin: 36px 0 0 !important; padding: 0 !important; background: none !important; text-align: center; }
body #buddypress .bp-pagination .pag-count { float: none !important; width: 100% !important; text-align: center; color: var(--ig-muted); font-size: 13px; }

body #buddypress #members-list,
body #buddypress #groups-list {
	display: grid !important; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px 24px;
	margin: 0 !important; padding: 0 !important; list-style: none; border: 0 !important;
}
body #buddypress #members-list::before, body #buddypress #members-list::after,
body #buddypress #groups-list::before, body #buddypress #groups-list::after { display: none !important; }
body #buddypress #members-list > li,
body #buddypress #groups-list > li {
	width: auto !important; max-width: none !important; float: none !important; margin: 0 !important; padding: 0 !important;
	border: 0 !important; box-shadow: none !important; background: transparent !important; min-height: 0 !important;
}
body #buddypress #members-list .list-wrap,
body #buddypress #groups-list .list-wrap {
	display: flex !important; flex-direction: column; align-items: center; text-align: center; gap: 0;
	border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; margin: 0 !important; height: auto !important;
}
body #buddypress #members-list .item-avatar,
body #buddypress #groups-list .item-avatar { float: none !important; width: auto !important; margin: 0 0 14px !important; padding: 0 !important; text-align: center; }
body #buddypress #members-list .item-avatar img,
body #buddypress #groups-list .item-avatar img {
	display: block; width: 116px !important; height: 116px !important; max-width: none !important; border-radius: 50% !important; object-fit: cover; margin: 0 auto !important;
	border: 3px solid #fff !important; box-shadow: 0 0 0 2px var(--kdf-teal) !important; padding: 0 !important; transition: transform .2s;
}
body #buddypress #members-list .item-avatar a:hover img { transform: scale(1.04); }
body #buddypress #members-list .item,
body #buddypress #members-list .item-block,
body #buddypress #groups-list .item,
body #buddypress #groups-list .item-block {
	display: flex !important; flex-direction: column; align-items: center; text-align: center !important;
	width: 100% !important; float: none !important; padding: 0 !important; margin: 0 !important; border: 0 !important;
}
body #buddypress #members-list .member-name,
body #buddypress #groups-list .list-title { order: 1; font-size: 16px !important; font-weight: 700 !important; margin: 0 !important; line-height: 1.3 !important; text-align: center !important; width: 100%; }
body #buddypress #members-list .member-name a,
body #buddypress #groups-list .list-title a { color: var(--kdf-dark) !important; text-decoration: none !important; }
body #buddypress #members-list .item-extra-content { order: 2; margin: 0 !important; padding: 0 !important; }
body #buddypress #members-list .kdf-handle { color: var(--ig-muted); font-size: 14px; margin: 2px 0 0 !important; line-height: 1.3; }
body #buddypress #members-list .item-meta,
body #buddypress #groups-list .item-meta { order: 3; color: #b3b3b3 !important; font-size: 12px !important; margin: 6px 0 0 !important; text-align: center !important; }
body #buddypress #members-list .action,
body #buddypress #groups-list .action { order: 4; display: flex !important; justify-content: center; gap: 8px; margin: 14px 0 0 !important; padding: 0 !important; float: none !important; position: static !important; width: 100%; }
body #buddypress #members-list .action ul,
body #buddypress #groups-list .action ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none; }
body #buddypress #members-list .action li,
body #buddypress #groups-list .action li { margin: 0 !important; }

/* --- TLAČIDLÁ (IG) --- */
body #buddypress .generic-button a,
body #buddypress .generic-button button,
body #buddypress a.button,
body #buddypress button.button,
body #buddypress .member-header-actions a,
body #buddypress .member-header-actions button,
.kdf-edit-profile {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
	min-height: 34px; padding: 0 18px !important; border-radius: 8px !important; font-size: 13px !important; font-weight: 600 !important;
	line-height: 1 !important; border: 0 !important; box-shadow: none !important; text-decoration: none !important; text-transform: none !important;
	background: #efefef !important; color: var(--kdf-dark) !important; transition: background .15s, color .15s; cursor: pointer;
}
body #buddypress .generic-button a:hover,
body #buddypress .generic-button button:hover,
body #buddypress a.button:hover,
.kdf-edit-profile:hover { background: #dedede !important; }
body #buddypress .friendship-button.not_friends,
body #buddypress .generic-button .not_friends,
body #buddypress .generic-button.not_friends a,
body #buddypress .generic-button.not_friends button,
body #buddypress .group-button.join-group,
body #buddypress .send-message { background: var(--kdf-teal) !important; color: #fff !important; }
body #buddypress .friendship-button.not_friends:hover,
body #buddypress .group-button.join-group:hover,
body #buddypress .send-message:hover { background: #007c93 !important; }

/* --- PROFIL: skryť subheader témy (meno je v hlavičke) --- */
body.bp-user #Subheader,
body.bp-user .subheader { display: none !important; }
body.bp-user #Content { padding-top: 40px !important; }

/* --- HLAVIČKA PROFILU --- */
body #buddypress #item-header { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 auto !important; max-width: 935px; }
body #buddypress #cover-image-container { padding: 0 !important; min-height: 0 !important; background: none !important; position: static !important; }
body #buddypress #header-cover-image { display: none !important; }
body #buddypress #item-header-cover-image {
	display: grid !important; grid-template-columns: 290px 1fr; align-items: center; gap: 0 24px;
	max-width: 935px; margin: 0 auto !important; padding: 10px 20px 44px !important; position: static !important;
	border-bottom: 1px solid var(--ig-line); background: none !important; min-height: 0 !important;
}
body #buddypress #item-header-avatar { float: none !important; position: static !important; margin: 0 !important; width: auto !important; text-align: center; top: auto !important; left: auto !important; }
body #buddypress #item-header-avatar a { display: inline-block; border-radius: 50%; padding: 4px; background: linear-gradient(135deg, var(--kdf-teal), var(--kdf-orange)); }
body #buddypress #item-header-avatar img {
	display: block; width: 150px !important; height: 150px !important; max-width: none !important; border-radius: 50% !important; object-fit: cover;
	border: 4px solid #fff !important; box-shadow: none !important; background: #fff; padding: 0 !important; margin: 0 !important;
}
body #buddypress #item-header-content {
	float: none !important; position: static !important; margin: 0 !important; padding: 0 !important; width: auto !important; min-width: 0;
	text-align: left !important; display: flex !important; flex-wrap: wrap; align-items: center; column-gap: 20px; background: none !important;
}
body #buddypress #item-header-content .user-nicename {
	order: 1; font-size: 22px !important; font-weight: 400 !important; color: var(--kdf-dark) !important; margin: 0 !important; padding: 0 !important;
	background: none !important; line-height: 1.3 !important; text-shadow: none !important; display: block !important;
}
/* Typ člena – len decentná poznámka za @nickom */
body #buddypress #item-header-content .bp-member-type-list { order: 1; margin: 0 0 0 10px !important; padding: 0 !important; background: none !important; border: 0 !important; font-size: 13px !important; line-height: 1.3 !important; color: var(--ig-muted, #8e8e8e) !important; align-self: center; }
body #buddypress #item-header-content .bp-member-type-list strong { display: none !important; }
body #buddypress #item-header-content .bp-member-type-list span,
body #buddypress #item-header-content .bp-member-type-list a { display: inline !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; font-size: inherit !important; font-weight: 400 !important; color: inherit !important; text-decoration: none !important; }
body #buddypress #item-header-content .bp-member-type-list a::before { content: "· "; }
body #buddypress #item-header-content .member-header-actions { order: 2; display: flex !important; flex-wrap: wrap; gap: 8px; margin: 0 !important; padding: 0 !important; float: none !important; position: static !important; }
body #buddypress #item-header-content .member-header-actions:not(:has(*)) { display: none !important; }
body #buddypress #item-header-content .item-meta { order: 3; flex: 0 0 100%; display: flex; flex-direction: column; align-items: flex-start; padding: 0 !important; margin: 0 !important; text-align: left !important; }
body #buddypress #item-header-content .item-meta .activity { order: 9; color: #b3b3b3; font-size: 12px; margin-top: 10px; }

.kdf-profile-stats { display: flex; gap: 40px; margin: 20px 0 18px; }
body #buddypress .kdf-profile-stats a {
	display: inline-flex !important; gap: 5px; align-items: baseline; color: var(--kdf-dark) !important; text-decoration: none !important; font-size: 16px; line-height: 1.3;
	border: 0 !important; background: none !important; padding: 0 !important; box-shadow: none !important; border-radius: 0 !important; min-width: 0 !important;
}
.kdf-profile-stats strong { font-weight: 700; }
.kdf-profile-stats span { color: var(--kdf-dark); }
.kdf-profile-bio .kdf-profile-name { font-size: 15px !important; font-weight: 700 !important; margin: 0 0 4px !important; line-height: 1.4 !important; color: var(--kdf-dark) !important; padding: 0 !important; background: none !important; text-align: left !important; }
.kdf-profile-bio p { font-size: 14px; line-height: 1.55; margin: 0 !important; max-width: 520px; color: #262626; white-space: normal; }
.kdf-profile-bio .kdf-edit-profile { margin-top: 16px; }

/* --- ZÁLOŽKY PROFILU --- */
body #buddypress #object-nav.main-navs { max-width: 100%; margin: 0 auto 28px !important; border-top: 0 !important; }
body #buddypress #object-nav ul {
	display: flex !important; justify-content: safe center; flex-wrap: nowrap; overflow-x: auto; gap: 0 22px; scrollbar-width: none;
	margin-top: -1px !important;
}
body #buddypress #object-nav ul::-webkit-scrollbar { display: none; }
/* šípky na posúvanie záložiek (js/kdf-mobile.js) */
body #buddypress #object-nav.kdf-nav-scroll { position: relative; }
body #buddypress #object-nav .kdf-nav-arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 32px; height: 32px; padding: 0; margin: 0;
	display: flex; align-items: center; justify-content: center; border: 1px solid #dfe3e8; border-radius: 50%;
	background: #fff !important; color: #1d2327 !important; box-shadow: 0 2px 6px rgba(0,0,0,.12); cursor: pointer;
}
body #buddypress #object-nav .kdf-nav-arrow:hover { background: #f1f3f6 !important; }
body #buddypress #object-nav .kdf-nav-arrow[hidden] { display: none; }
body #buddypress #object-nav .kdf-nav-arrow svg { width: 16px; height: 16px; }
body #buddypress #object-nav .kdf-nav-prev { left: 0; }
body #buddypress #object-nav .kdf-nav-next { right: 0; }
body #buddypress #object-nav.kdf-nav-scroll::before,
body #buddypress #object-nav.kdf-nav-scroll::after {
	content: ""; position: absolute; top: 0; bottom: 0; width: 56px; z-index: 2; pointer-events: none;
}
body #buddypress #object-nav.kdf-nav-scroll::before { left: 0; background: linear-gradient(to left, rgba(241,243,246,0), var(--kdf-bg-light, #f1f3f6) 60%); }
body #buddypress #object-nav.kdf-nav-scroll::after { right: 0; background: linear-gradient(to right, rgba(241,243,246,0), var(--kdf-bg-light, #f1f3f6) 60%); }
body #buddypress #object-nav.kdf-at-start::before,
body #buddypress #object-nav.kdf-at-end::after { display: none; }
body #buddypress #object-nav li a {
	display: inline-flex !important; align-items: center; gap: 6px; padding: 16px 0 !important; white-space: nowrap;
	background: none !important; border: 0 !important; border-top: 1px solid transparent !important; border-radius: 0 !important; box-shadow: none !important;
	font-size: 12px !important; font-weight: 600 !important; letter-spacing: .06em; text-transform: uppercase; color: var(--ig-muted) !important;
}
body #buddypress #object-nav li a:hover { color: var(--kdf-dark) !important; }
body #buddypress #object-nav li.current a,
body #buddypress #object-nav li.selected a { color: var(--kdf-dark) !important; border-top-color: var(--kdf-dark) !important; }
body #buddypress #object-nav li a::before { font-family: dashicons; font-size: 15px; font-weight: 400; line-height: 1; letter-spacing: 0; }
#object-nav #activity-personal-li a::before { content: "\f130"; }
#object-nav #xprofile-personal-li a::before { content: "\f110"; }
#object-nav #notifications-personal-li a::before { content: "\f16d"; }
#object-nav #messages-personal-li a::before { content: "\f466"; }
#object-nav #friends-personal-li a::before { content: "\f307"; }
#object-nav #groups-personal-li a::before { content: "\f483"; }
#object-nav #forums-personal-li a::before { content: "\f125"; }
#object-nav #media-personal-li a::before { content: "\f161"; }
#object-nav #settings-personal-li a::before { content: "\f111"; }

/* podzáložky */
body.bp-user #buddypress #item-body { max-width: 935px; margin: 0 auto; }
body #buddypress #subnav.bp-navs, body #buddypress .bp-subnavs { margin: 0 0 28px !important; }
body #buddypress #subnav ul, body #buddypress .bp-subnavs ul { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 8px; }
body #buddypress #subnav li a, body #buddypress .bp-subnavs li a {
	display: block !important; padding: 8px 16px !important; border-radius: 999px !important; background: var(--ig-soft) !important; color: #555 !important;
	font-size: 13px !important; font-weight: 600 !important; border: 0 !important; line-height: 1.2 !important;
}
body #buddypress #subnav li a:hover, body #buddypress .bp-subnavs li a:hover { background: #e9eaeb !important; }
body #buddypress #subnav li.current a, body #buddypress #subnav li.selected a,
body #buddypress .bp-subnavs li.current a, body #buddypress .bp-subnavs li.selected a { background: var(--kdf-dark) !important; color: #fff !important; }
body.bp-user #buddypress #item-body > h2,
body.bp-user #buddypress #item-body .screen-heading,
body.bp-user #buddypress #item-body h2.bp-screen-title,
body.bp-user #buddypress .rtmedia-container > h2 { font-size: 20px !important; font-weight: 700 !important; margin: 0 0 20px !important; padding: 0 !important; border: 0 !important; text-align: left; }

/* --- rtMedia: štvorcový grid --- */
.rtmedia-container ul.rtmedia-list,
body #buddypress .rtmedia-container ul.rtmedia-list {
	display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 3px !important; margin: 0 !important; padding: 0 !important;
}
.rtmedia-container ul.rtmedia-list > li.rtmedia-list-item {
	width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; float: none !important;
	border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: var(--ig-soft) !important; position: relative; overflow: hidden;
}
.rtmedia-container ul.rtmedia-list li.rtmedia-list-item > a { display: block; position: relative; aspect-ratio: 1 / 1; }
.rtmedia-container ul.rtmedia-list li.rtmedia-list-item .rtmedia-item-thumbnail {
	width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0 !important;
	border: 0 !important; border-radius: 0 !important; background: none !important; overflow: hidden;
}
.rtmedia-container ul.rtmedia-list li.rtmedia-list-item .rtmedia-item-thumbnail img {
	width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: cover; display: block; border-radius: 0 !important;
}
.rtmedia-container ul.rtmedia-list li.rtmedia-list-item .rtmedia-item-title,
.rtmedia-container ul.rtmedia-list li.rtmedia-list-item .rtmedia-list-item-footer,
.rtmedia-container ul.rtmedia-list li.rtmedia-list-item .rtmedia-gallery-item-actions,
.rtmedia-container ul.rtmedia-list li.rtmedia-list-item h4 { display: none !important; }
.rtmedia-container ul.rtmedia-list li.rtmedia-list-item > a::after {
	content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.32) center / 30px no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
	opacity: 0; transition: opacity .2s;
}
.rtmedia-container ul.rtmedia-list li.rtmedia-list-item:hover > a::after { opacity: 1; }

/* --- FORMULÁRE: úprava profilu a nastavenia --- */
body.bp-user #buddypress .standard-form,
body.bp-user #buddypress #settings-form,
body.bp-user #buddypress #profile-edit-form,
body.bp-user #buddypress #avatar-upload-form {
	max-width: 620px; margin: 0 auto !important; padding: 32px !important; background: #fff !important;
	border: 1px solid var(--ig-line) !important; border-radius: 16px !important; box-shadow: none !important;
}
/* formuláre s tabuľkou (pozvánky, správy, upozornenia...) - plná šírka profilu */
body.bp-user #buddypress .standard-form:has(table),
body.bp-user #buddypress #settings-form:has(table),
body.bp-user #buddypress #item-body form:has(table),
body.bp-user #buddypress #item-body div:has(> form table),
body.bp-user #buddypress #item-body div:has(> table) { max-width: 935px !important; width: 100% !important; }
body.bp-user #buddypress #item-body table { width: 100% !important; table-layout: auto; }
body.bp-user #buddypress #item-body table th,
body.bp-user #buddypress #item-body table td { word-break: normal; overflow-wrap: break-word; hyphens: none; }
body #buddypress .standard-form fieldset { border: 0 !important; padding: 0 !important; margin: 0 !important; background: none !important; }
body #buddypress .standard-form .editfield { border: 0 !important; padding: 0 !important; margin: 0 0 22px !important; background: none !important; }
body #buddypress .standard-form label,
body #buddypress .standard-form legend {
	display: block; font-size: 13px !important; font-weight: 600 !important; color: #262626 !important; margin: 0 0 8px !important; padding: 0 !important; float: none !important; width: auto !important;
}
body #buddypress .standard-form input[type="text"],
body #buddypress .standard-form input[type="email"],
body #buddypress .standard-form input[type="url"],
body #buddypress .standard-form input[type="number"],
body #buddypress .standard-form input[type="tel"],
body #buddypress .standard-form input[type="password"],
body #buddypress .standard-form input[type="date"],
body #buddypress .standard-form select,
body #buddypress .standard-form textarea {
	display: block; width: 100% !important; max-width: none !important; min-height: 46px; margin: 0 !important;
	border: 1px solid transparent !important; border-radius: 12px !important; background: var(--ig-soft) !important;
	padding: 12px 16px !important; font-size: 15px !important; color: var(--kdf-dark) !important; box-shadow: none !important; transition: border-color .15s, background .15s;
}
body #buddypress .standard-form textarea { min-height: 120px; resize: vertical; }
body #buddypress .standard-form input:focus,
body #buddypress .standard-form select:focus,
body #buddypress .standard-form textarea:focus { border-color: var(--kdf-teal) !important; background: #fff !important; outline: 0; }
body #buddypress .standard-form input[type="checkbox"],
body #buddypress .standard-form input[type="radio"] { accent-color: var(--kdf-teal); width: 18px; height: 18px; vertical-align: middle; margin: 0 8px 0 0 !important; }

/* skryť nápovedy a zbytočné texty */
body #buddypress .standard-form p.description,
body #buddypress .standard-form .description,
body #buddypress .standard-form .field-visibility-settings-notoggle,
body #buddypress .standard-form .field-visibility-settings-toggle,
body #buddypress .standard-form .field-visibility-settings,
body #buddypress #profile-edit-form > h2,
body #buddypress #profile-edit-form .button-nav,
body #buddypress p.bp-help-text,
body #buddypress .bp-feedback.info .bp-help-text,
body #buddypress .standard-form .bp-screen-reader-text + p.description,
body #buddypress .standard-form p.bp-required-field-label,
body #buddypress .standard-form .bp-required-field-label { display: none !important; }
body #buddypress #profile-edit-form .wp-profile-fields { display: none !important; }

/* tlačidlo uložiť */
body #buddypress .standard-form input[type="submit"],
body #buddypress .standard-form button[type="submit"],
body #buddypress .standard-form .submit input,
body #buddypress #settings-form input[type="submit"] {
	display: block; width: 100% !important; height: 48px; margin: 8px 0 0 !important; padding: 0 26px !important;
	background: var(--kdf-teal) !important; color: #fff !important; border: 0 !important; border-radius: 12px !important;
	font-size: 15px !important; font-weight: 600 !important; box-shadow: none !important; cursor: pointer; text-transform: none !important;
}
body #buddypress .standard-form input[type="submit"]:hover { background: #007c93 !important; }
body #buddypress .standard-form .submit { margin: 0 !important; padding: 0 !important; }

/* tabuľky nastavení upozornení */
body #buddypress table.notification-settings,
body #buddypress table.profile-settings,
body #buddypress table.data-export-settings { width: 100%; border: 0 !important; border-collapse: collapse; margin: 0 0 24px !important; background: none !important; }
body #buddypress table.notification-settings th,
body #buddypress table.notification-settings td,
body #buddypress table.profile-settings th,
body #buddypress table.profile-settings td {
	border: 0 !important; border-bottom: 1px solid var(--ig-line) !important; padding: 14px 8px !important; background: none !important; font-size: 14px; text-align: left; vertical-align: middle;
}
body #buddypress table.notification-settings th,
body #buddypress table.profile-settings th { font-size: 12px !important; text-transform: uppercase; letter-spacing: .05em; color: var(--ig-muted) !important; font-weight: 600 !important; }
body #buddypress table.notification-settings td.yes,
body #buddypress table.notification-settings td.no,
body #buddypress table.notification-settings th.yes,
body #buddypress table.notification-settings th.no { text-align: center; width: 70px; }
body #buddypress table .icon { display: none; }

/* zmena profilovej fotky */
body #buddypress .bp-avatar-nav ul { display: flex !important; gap: 8px; border: 0 !important; margin: 0 0 20px !important; }
body #buddypress .bp-avatar-nav li { border: 0 !important; background: none !important; margin: 0 !important; float: none !important; }
body #buddypress .bp-avatar-nav li a { display: block; padding: 8px 16px; border-radius: 999px; background: var(--ig-soft); color: #555 !important; font-size: 13px; font-weight: 600; border: 0 !important; }
body #buddypress .bp-avatar-nav li.current a { background: var(--kdf-dark); color: #fff !important; }
/* bez webkamery; prázdny no-js formulár (JS uploader je mimo neho) nezobrazovať ako kartu */
body #buddypress .bp-avatar-nav #bp-avatar-camera { display: none !important; }
body #buddypress .bp-avatar-nav ul { flex-wrap: wrap; }
body #buddypress .bp-avatar-nav li a { white-space: nowrap; }
html body.bp-user #buddypress #avatar-upload-form:not(:has(> :not(input[type="hidden"]))) { display: none !important; }
body #buddypress .drag-drop .drag-drop-inside { border: 0 !important; padding: 0 !important; background: none !important; }
body #buddypress #bp-avatar-uploader .drag-drop-area,
body #buddypress .bp-uploader-window .drag-drop-area { border: 2px dashed #d9d9d9 !important; border-radius: 16px !important; background: #fafafa !important; padding: 40px 20px !important; }
body #buddypress .drag-drop-buttons input[type="button"],
body #buddypress #bp-browse-button { background: var(--kdf-teal) !important; color: #fff !important; border: 0 !important; border-radius: 10px !important; padding: 10px 22px !important; font-weight: 600 !important; }
body #buddypress #avatar-upload-form > p,
body #buddypress .bp-avatar-status p.warning { color: var(--ig-muted); font-size: 14px; }

/* hlásenia */
body #buddypress .bp-feedback { border: 0 !important; border-radius: 12px !important; background: var(--ig-soft) !important; box-shadow: none !important; padding: 14px 18px !important; margin: 0 0 20px !important; }
body #buddypress .bp-feedback .bp-icon { display: none !important; }
body #buddypress .bp-feedback p { margin: 0 !important; font-size: 14px; color: #444; }
body #buddypress .bp-feedback.success, body #buddypress .bp-feedback.updated { background: #e6f6f5 !important; }
body #buddypress .bp-feedback.error { background: #fdecea !important; }

/* poradie v hlavičke */
body #buddypress #item-header-content .kdf-profile-stats { order: 3; flex: 0 0 100%; }
body #buddypress #item-header-content .kdf-profile-bio { order: 4; flex: 0 0 100%; }
body #buddypress #item-header-content .item-meta { order: 5; }

body #buddypress #profile-edit-form .profile-group-title,
body #buddypress .standard-form .screen-heading { display: none !important; }
body #buddypress .standard-form legend .bp-required-field-label { display: inline !important; font-weight: 400; color: var(--ig-muted); font-size: 12px; }

body.bp-user #buddypress #item-body p.info { display: none !important; }
body.settings #buddypress #item-body > .screen-heading,
body.settings #buddypress #item-body > h2,
body.xprofile #buddypress #item-body .profile > h2,
body.xprofile #buddypress #item-body > h2 { max-width: 620px; margin-left: auto !important; margin-right: auto !important; }

/* Súkromie (rtMedia) a Export údajov - karta ako ostatné nastavenia (obalí JS vo functions.php) */
/* Nadpisy stránok profilu sú zbytočné - aktívna záložka v lište hovorí, kde som. */
body.bp-user #buddypress #item-body > h2,
body.bp-user #buddypress #item-body > .screen-heading,
body.bp-user #buddypress #item-body > .profile > h2.screen-heading,
body.bp-user #buddypress #item-body .rtm-gallery-title,
body.bp-user #buddypress #item-body #bbpress-forums > div:not(.bbp-user-subscriptions) > h2.entry-title { display: none !important; }

/* Jednotná šírka a karta: veľké formuláre/obsah ako karta 620 px na stred */
body.bp-user #buddypress #item-body > .profile > .bp-widget,
body.bp-user #buddypress #item-body > aside.bp-feedback { max-width: 620px; margin-left: auto !important; margin-right: auto !important; }
body.bp-user #buddypress #item-body > .profile.change-avatar {
	max-width: 620px; margin: 0 auto !important; padding: 32px !important; background: #fff !important; border: 1px solid var(--ig-line) !important; border-radius: 16px !important;
}
body.bp-user #buddypress #item-body > .profile.change-avatar > #avatar-upload-form { padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; }
body.bp-user #buddypress #item-body > .profile > .bp-widget {
	padding: 24px 32px !important; background: #fff !important; border: 1px solid var(--ig-line) !important; border-radius: 16px !important; margin-bottom: 16px !important;
}
body.bp-user #buddypress #item-body > .profile > .bp-widget h3.profile-group-title { display: block !important; font-size: 16px !important; font-weight: 700 !important; text-align: left !important; margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; }
body.bp-user #buddypress #item-body > .profile > .bp-widget table { width: 100% !important; margin: 0 !important; border: 0 !important; }
body.bp-user #buddypress #item-body > .profile > .bp-widget td { border: 0 !important; border-bottom: 1px solid var(--ig-line) !important; padding: 10px 0 !important; background: none !important; }
body.bp-user #buddypress #item-body > .profile > .bp-widget tr:last-child td { border-bottom: 0 !important; }
body.bp-user #buddypress #item-body > .profile > .bp-widget td.label { width: 40%; font-weight: 600; color: #262626; }
body #buddypress .kdf-privacy-form .rtm-privacy-levels br { display: none; }
body #buddypress .kdf-privacy-form .rtm-privacy-levels label { display: flex !important; align-items: center; gap: 10px; font-weight: 400 !important; margin: 0 0 14px !important; }
body #buddypress .kdf-privacy-form .rtm-privacy-levels input { margin: 0 !important; }
body #buddypress .kdf-data-card p { font-size: 14px; line-height: 1.6; margin: 0 0 14px !important; }
body #buddypress .kdf-data-card ul { margin: 0 0 18px !important; padding-left: 22px !important; }
body #buddypress .kdf-data-card ul li { margin: 0 0 2px !important; padding: 0 !important; font-size: 13px !important; line-height: 1.5 !important; color: #777; }
body #buddypress .kdf-data-card #bp-data-export { margin: 0 0 8px !important; }
body #buddypress .kdf-data-card #bp-data-export button { width: 100% !important; }
body #buddypress .kdf-data-card h2.screen-heading { display: block !important; font-size: 16px !important; text-align: left; margin: 28px 0 10px !important; padding-top: 24px !important; border-top: 1px solid var(--ig-line) !important; }

body #buddypress .standard-form table select { width: auto !important; min-width: 150px; display: inline-block; }

/* --- adresár: tlačidlo Vytvoriť skupinu, šípka selectu --- */
body #buddypress .dir-navs ul { flex-wrap: nowrap; align-items: center; }
body #buddypress .dir-navs li a { white-space: nowrap; }
body #buddypress .dir-navs li.create-button a {
	padding: 8px 18px !important; margin: 0 !important; border: 0 !important; border-radius: 999px !important;
	background: var(--kdf-teal) !important; color: #fff !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important;
}
body #buddypress .dir-navs li.create-button a:hover { background: #007c93 !important; }
body #buddypress .component-filters .select-arrow::before {
	content: "" !important; display: block; width: 8px; height: 8px; border-right: 2px solid var(--ig-muted); border-bottom: 2px solid var(--ig-muted);
	transform: rotate(45deg) translate(-2px, -2px); font-family: inherit;
}
@media (max-width: 767px) {
	.kdf-community-wrap { padding: 20px 0 !important; }
	body #buddypress .dir-navs ul { gap: 14px; justify-content: space-between; }
	body #buddypress .dir-navs li a { font-size: 12px !important; }
}

/* --- DETAIL SKUPINY --- */
body.single-item.groups #Subheader { display: none !important; }
body.single-item.groups #Content { padding-top: 40px !important; }
body #buddypress .groups-header #item-header-content .kdf-group-name { order: 1; font-size: 24px !important; font-weight: 700 !important; margin: 0 !important; padding: 0 !important; line-height: 1.25 !important; color: var(--kdf-dark) !important; }
body #buddypress .groups-header #item-header-content .group-status { order: 2; margin: 0 !important; padding: 0 !important; background: none !important; }
body #buddypress .groups-header #item-header-content .group-status strong {
	display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--ig-soft) !important; color: #555 !important;
	font-size: 12px !important; font-weight: 600 !important; line-height: 1.4; box-shadow: none !important;
}
body #buddypress .groups-header #item-header-content .kdf-profile-stats { order: 3; flex: 0 0 100%; margin: 16px 0 12px; }
body #buddypress .groups-header #item-header-content .kdf-profile-bio { order: 4; flex: 0 0 100%; }
body #buddypress .groups-header #item-header-content .activity { order: 5; flex: 0 0 100%; color: #b3b3b3; font-size: 12px; margin: 10px 0 0 !important; padding: 0 !important; }
body #buddypress .groups-header #item-header-content .group-button,
body #buddypress .groups-header #item-header-content .generic-button { order: 6; margin-top: 14px !important; }
body #buddypress .groups-header .desc-wrap { display: none !important; }
body #buddypress .groups-header #item-actions {
	grid-column: 2; float: none !important; width: auto !important; margin: 18px 0 0 !important; padding: 0 !important; text-align: left !important; background: none !important; border: 0 !important;
}
body #buddypress .groups-header #item-actions dl { display: flex; align-items: center; gap: 10px; margin: 0 !important; }
body #buddypress .groups-header #item-actions dt { font-size: 12px !important; font-weight: 600 !important; color: var(--ig-muted) !important; text-transform: uppercase; letter-spacing: .05em; margin: 0 !important; padding: 0 !important; }
body #buddypress .groups-header #item-actions dd { margin: 0 !important; padding: 0 !important; }
body #buddypress .groups-header #item-actions ul { display: flex; gap: 0; margin: 0 !important; padding: 0 !important; list-style: none; }
body #buddypress .groups-header #item-actions li { margin: 0 0 0 -6px !important; padding: 0 !important; float: none !important; }
body #buddypress .groups-header #item-actions li:first-child { margin-left: 0 !important; }
body #buddypress .groups-header #item-actions img { width: 30px !important; height: 30px !important; border-radius: 50% !important; border: 2px solid #fff !important; box-shadow: none !important; margin: 0 !important; display: block; }
#object-nav #home-groups-li a::before { content: "\f102"; }
#object-nav #nav-forum-groups-li a::before { content: "\f125"; }
#object-nav #members-groups-li a::before { content: "\f307"; }
#object-nav #invite-groups-li a::before { content: "\f132"; }
#object-nav #media-groups-li a::before { content: "\f161"; }
#object-nav #admin-groups-li a::before { content: "\f111"; }
body.single-item.groups #buddypress #item-body { max-width: 935px; margin: 0 auto; }

/* adresár skupín: popis bez rámčeka */
body #buddypress #groups-list .group-desc {
	order: 5; border: 0 !important; background: none !important; padding: 0 !important; margin: 8px 0 0 !important; box-shadow: none !important;
	font-size: 13px; color: #666; line-height: 1.45; max-width: 220px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body #buddypress #groups-list .group-desc p { margin: 0 !important; }
body #buddypress #groups-list .group-desc p:empty { display: none; }
body #buddypress #groups-list .item-avatar img { border-radius: 24px !important; }

/* --- AKTIVITA: formulár, filtre, nadpisy (profil aj skupina) --- */
body #buddypress #item-body h2.bp-screen-title,
body #buddypress #item-body > h2,
body #buddypress #item-body .screen-heading { font-size: 20px !important; font-weight: 700 !important; line-height: 1.3 !important; margin: 0 0 18px !important; padding: 0 !important; border: 0 !important; }
body #buddypress #bp-nouveau-activity-form { margin: 0 0 20px !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
body #buddypress #whats-new-form {
	display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; padding: 16px !important; margin: 0 !important;
	background: #fff !important; border: 1px solid var(--ig-line) !important; border-radius: 16px !important; box-shadow: none !important;
}
body #buddypress #whats-new-avatar { float: none !important; margin: 0 !important; padding: 0 !important; }
body #buddypress #whats-new-avatar img { width: 42px !important; height: 42px !important; border-radius: 50% !important; border: 0 !important; box-shadow: none !important; margin: 0 !important; }
body #buddypress #whats-new-content { flex: 1 1 0; min-width: 0; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
body #buddypress #whats-new-textarea { border: 0 !important; background: none !important; padding: 0 !important; }
body #buddypress #whats-new {
	width: 100% !important; min-height: 44px; margin: 0 !important; padding: 11px 16px !important; border: 1px solid transparent !important; border-radius: 22px !important;
	background: var(--ig-soft) !important; font-size: 15px !important; box-shadow: none !important; color: var(--kdf-dark) !important;
}
body #buddypress #whats-new:focus { background: #fff !important; border-color: var(--kdf-teal) !important; outline: 0; border-radius: 14px !important; }
body #buddypress #whats-new-form .rtmedia-uploader-div,
body #buddypress #whats-new-form #whats-new-options,
body #buddypress #whats-new-form #whats-new-submit { flex: 1 1 100%; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
body #buddypress #whats-new-form #whats-new-submit,
body #buddypress #whats-new-form .whats-new-submit { display: flex; justify-content: flex-end; gap: 8px; }
body #buddypress #whats-new-form input[type="submit"],
body #buddypress #whats-new-form #aw-whats-new-submit {
	height: 40px; padding: 0 22px !important; border: 0 !important; border-radius: 10px !important; background: var(--kdf-teal) !important; color: #fff !important; font-weight: 600 !important; font-size: 14px !important; box-shadow: none !important; width: auto !important;
}
body #buddypress #whats-new-form #aw-whats-new-reset,
body #buddypress #whats-new-form .button.reset { height: 40px; padding: 0 18px !important; border: 0 !important; border-radius: 10px !important; background: #efefef !important; color: var(--kdf-dark) !important; font-weight: 600 !important; }
body #buddypress #whats-new-form select { height: 40px; border: 0 !important; border-radius: 10px !important; background: var(--ig-soft) !important; padding: 0 12px !important; }
body #buddypress .rtmedia-add-media-button,
body #buddypress #rtmedia-add-media-button-post-update {
	display: inline-flex !important; align-items: center; gap: 6px; height: 36px; padding: 0 14px !important; border: 0 !important; border-radius: 999px !important;
	background: var(--ig-soft) !important; color: #555 !important; font-size: 13px !important; font-weight: 600 !important; box-shadow: none !important;
}
body #buddypress .rtm-upload-button-wrapper .rtm-file-size-limit,
body #buddypress #rtmedia-action-update .rtm-file-size-limit { display: none !important; }

/* filtre aktivity */
body #buddypress #item-body .subnav-filters { display: flex !important; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin: 0 0 20px !important; }
body #buddypress #item-body .subnav-filters > ul { display: flex !important; align-items: center; gap: 10px; flex: 1 1 280px; margin: 0 !important; padding: 0 !important; list-style: none; }
body #buddypress #item-body .subnav-filters > ul > li { margin: 0 !important; padding: 0 !important; float: none !important; list-style: none; }
body #buddypress #item-body .subnav-filters li.feed a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ig-soft); color: var(--kdf-orange) !important; }
body #buddypress #item-body .subnav-filters li.feed a::before { font-family: dashicons; content: "\f303"; font-size: 16px; }
body #buddypress #item-body .subnav-filters li[class*="search"] { flex: 1 1 auto; max-width: 380px; }
body #buddypress #item-body .bp-search form { position: relative; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
body #buddypress #item-body .bp-search input[type="search"] {
	width: 100% !important; height: 42px !important; padding: 0 16px 0 42px !important; margin: 0 !important; border: 0 !important; border-radius: 999px !important;
	background: var(--ig-soft) !important; font-size: 14px !important; box-shadow: none !important;
}
body #buddypress #item-body .bp-search input[type="search"]:focus { background: #fff !important; box-shadow: 0 0 0 2px var(--kdf-teal) !important; outline: 0; }
body #buddypress #item-body .bp-search button.nouveau-search-submit {
	position: absolute !important; left: 6px; top: 5px; width: 32px !important; height: 32px !important; padding: 0 !important; margin: 0 !important; border: 0 !important;
	border-radius: 50% !important; background: transparent !important; color: var(--ig-muted) !important; box-shadow: none !important; display: flex !important; align-items: center; justify-content: center;
}
body #buddypress #item-body .bp-search button.nouveau-search-submit .dashicons { color: var(--ig-muted); font-size: 18px; width: 18px; height: 18px; }
body #buddypress #item-body .component-filters { margin: 0 !important; }
body #buddypress #item-body .component-filters select { height: 42px !important; }

/* hlavička skupiny: správcovia v jednom riadku */
body #buddypress .groups-header #item-actions dt { white-space: nowrap; width: auto !important; float: none !important; }
body #buddypress .groups-header #item-actions dd { float: none !important; width: auto !important; }

body #buddypress form.standard-form ul li { margin: 0 0 3px !important; padding: 0 !important; font-size: 13px !important; line-height: 1.5 !important; color: #777; list-style: disc; }

/* správa skupiny: formuláre ako karta */
body.group-admin #buddypress #item-body form.standard-form,
body.single-item.groups #buddypress #item-body #send-invite-form {
	max-width: 620px; margin: 0 auto !important; padding: 32px !important; background: #fff !important;
	border: 1px solid var(--ig-line) !important; border-radius: 16px !important; box-shadow: none !important;
}
body.group-admin #buddypress #item-body form.standard-form > input:not([type="hidden"]):not([type="submit"]),
body.group-admin #buddypress #item-body form.standard-form > textarea { margin-bottom: 22px !important; }
body.group-admin #buddypress #item-body form.standard-form > h2.bp-screen-title { display: block !important; font-size: 18px !important; margin: 0 0 20px !important; }
body.group-admin #buddypress #item-body form.standard-form .bp-controls-wrap { margin: 0 0 18px !important; font-size: 14px; }
body.group-admin #buddypress #item-body form.standard-form fieldset { margin: 0 0 22px !important; }
body.group-admin #buddypress #item-body form.standard-form .radio label,
body.group-admin #buddypress #item-body form.standard-form fieldset label { font-weight: 400 !important; display: flex !important; align-items: center; gap: 8px; }
body.group-admin #buddypress #item-body form.standard-form ul { padding-left: 26px; margin: 4px 0 14px; color: #777; font-size: 13px; }
@media (max-width: 767px) {
	body.group-admin #buddypress #item-body form.standard-form { padding: 20px !important; }
}

@media (max-width: 767px) {
	body #buddypress #item-body .subnav-filters { flex-direction: column; align-items: stretch; }
	body #buddypress #item-body .subnav-filters li[class*="search"] { max-width: none; }
	body #buddypress #item-body .component-filters select { width: 100% !important; }
	body #buddypress .groups-header #item-actions { grid-column: 1 / -1; }
	body #buddypress #whats-new-form { padding: 12px !important; }
}

/* --- FÓRUM (bbPress) - globálne aj v skupine --- */
body #buddypress #item-body .kdf-community-wrap { padding: 0 !important; margin: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; max-width: none !important; }
body #buddypress #item-body #bbpress-forums > h2:first-child,
body.single-item.groups #bbpress-forums.bbpress-wrapper > h2 { display: none !important; }
#bbpress-forums { font-size: 15px; }
#bbpress-forums .bbp-search-form { float: right; margin: 0 0 16px 12px !important; }
#bbpress-forums .bbp-search-form input[type="text"] {
	height: 40px !important; width: 240px; max-width: 100%; padding: 0 16px !important; border: 0 !important; border-radius: 999px !important; background: var(--ig-soft) !important; box-shadow: none !important; font-size: 14px !important; margin: 0 !important;
}
#bbpress-forums .bbp-search-form input[type="text"]:focus { background: #fff !important; box-shadow: 0 0 0 2px var(--kdf-teal) !important; outline: 0; }
#bbpress-forums #subscription-toggle,
#bbpress-forums #favorite-toggle { float: left; margin: 0 0 16px !important; }
#bbpress-forums .subscription-toggle,
#bbpress-forums .favorite-toggle {
	display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 8px; background: #efefef; color: var(--kdf-dark) !important; font-size: 13px; font-weight: 600; text-decoration: none !important;
}
#bbpress-forums .subscription-toggle:hover { background: #dedede; }
#bbpress-forums .bbp-search-form + #subscription-toggle + * ,
#bbpress-forums .kdf-community-wrap { clear: both; }
#bbpress-forums .bbp-template-notice {
	clear: both; border: 0 !important; border-radius: 12px !important; background: var(--ig-soft) !important; color: #555 !important;
	padding: 14px 18px !important; margin: 0 0 16px !important; font-size: 14px !important; box-shadow: none !important;
}
#bbpress-forums .bbp-template-notice ul { margin: 0 !important; padding: 0 !important; list-style: none; }
#bbpress-forums .bbp-template-notice li, #bbpress-forums .bbp-template-notice p { margin: 0 !important; padding: 0 !important; font-size: 14px !important; }
#bbpress-forums .bbp-template-notice.error { background: #fdecea !important; color: #a33 !important; }
#bbpress-forums .bbp-template-notice.info + .bbp-template-notice:not(.error),
#bbpress-forums fieldset.bbp-form > .bbp-template-notice:not(.error),
#bbpress-forums fieldset.bbp-form > div > .bbp-template-notice:not(.error) { display: none !important; }

/* formulár novej témy / odpovede */
#bbpress-forums fieldset.bbp-form {
	border: 1px solid var(--ig-line) !important; border-radius: 16px !important; background: #fff !important; padding: 28px !important; margin: 0 0 20px !important; box-shadow: none !important;
}
#bbpress-forums fieldset.bbp-form legend {
	float: left; width: 100%; padding: 0 !important; margin: 0 0 20px !important; border: 0 !important; font-size: 18px !important; font-weight: 700 !important; color: var(--kdf-dark) !important;
}
#bbpress-forums fieldset.bbp-form legend + * { clear: both; }
#bbpress-forums fieldset.bbp-form p { margin: 0 0 18px !important; }
#bbpress-forums fieldset.bbp-form label { display: block; font-size: 13px !important; font-weight: 600 !important; color: #262626 !important; margin: 0 0 8px !important; }
#bbpress-forums fieldset.bbp-form label + br { display: none; }
#bbpress-forums fieldset.bbp-form input[type="text"],
#bbpress-forums fieldset.bbp-form input[type="email"],
#bbpress-forums fieldset.bbp-form input[type="url"],
#bbpress-forums fieldset.bbp-form select,
#bbpress-forums fieldset.bbp-form textarea {
	display: block; width: 100% !important; max-width: none !important; min-height: 46px; margin: 0 !important; padding: 12px 16px !important;
	border: 1px solid transparent !important; border-radius: 12px !important; background: var(--ig-soft) !important; box-shadow: none !important; font-size: 15px !important; color: var(--kdf-dark) !important;
}
#bbpress-forums fieldset.bbp-form select { width: auto !important; min-width: 200px; display: inline-block; }
#bbpress-forums fieldset.bbp-form input:focus,
#bbpress-forums fieldset.bbp-form select:focus,
#bbpress-forums fieldset.bbp-form textarea:focus { border-color: var(--kdf-teal) !important; background: #fff !important; outline: 0; }
#bbpress-forums .bbp-the-content-wrapper { margin: 0 0 18px !important; }
#bbpress-forums .wp-editor-container { border: 0 !important; background: none !important; }
#bbpress-forums .quicktags-toolbar {
	display: flex; flex-wrap: wrap; gap: 4px; padding: 6px !important; margin: 0 0 8px !important; border: 0 !important; border-radius: 12px !important; background: var(--ig-soft) !important;
}
#bbpress-forums .quicktags-toolbar input.ed_button {
	min-height: 30px; padding: 0 10px !important; margin: 0 !important; border: 0 !important; border-radius: 8px !important; background: #fff !important;
	color: #444 !important; font-size: 12px !important; box-shadow: none !important; text-transform: none !important; line-height: 30px !important;
}
#bbpress-forums .quicktags-toolbar input.ed_button:hover { background: #e9eaeb !important; }
#bbpress-forums .wp-editor-container textarea.wp-editor-area { min-height: 180px; border-radius: 12px !important; }
#bbpress-forums fieldset.bbp-form input[type="checkbox"] { accent-color: var(--kdf-teal); width: 18px; height: 18px; margin: 0 8px 0 0 !important; vertical-align: middle; }
#bbpress-forums fieldset.bbp-form input[type="checkbox"] + label { display: inline; font-weight: 400 !important; }
#bbpress-forums .bbp-submit-wrapper { float: none !important; display: flex; justify-content: flex-end; margin: 8px 0 0 !important; }
#bbpress-forums .bbp-submit-wrapper button.submit,
#bbpress-forums button#bbp_topic_submit,
#bbpress-forums button#bbp_reply_submit {
	height: 46px; padding: 0 28px !important; border: 0 !important; border-radius: 12px !important; background: var(--kdf-teal) !important; color: #fff !important;
	font-size: 15px !important; font-weight: 600 !important; box-shadow: none !important; cursor: pointer; text-transform: none !important;
}
#bbpress-forums .bbp-submit-wrapper button.submit:hover { background: #007c93 !important; }

@media (max-width: 767px) {
	#bbpress-forums .bbp-search-form { float: none; margin: 0 0 12px !important; }
	#bbpress-forums .bbp-search-form input[type="text"] { width: 100% !important; }
	#bbpress-forums #subscription-toggle { float: none; display: block; }
	#bbpress-forums fieldset.bbp-form { padding: 18px !important; border-radius: 14px !important; }
	#bbpress-forums fieldset.bbp-form select { width: 100% !important; }
	#bbpress-forums .bbp-submit-wrapper button.submit { width: 100%; }
}

/* --- VYTVORENIE SKUPINY: sprievodca --- */
body.group-create #buddypress { max-width: 760px; margin: 0 auto; padding: 0 16px; }
body.group-create #buddypress .bp-subhead { text-align: center; font-size: 26px !important; font-weight: 700 !important; margin: 0 0 24px !important; border: 0 !important; padding: 0 !important; }
body.group-create #buddypress #create-group-form {
	max-width: none; margin: 0 !important; padding: 0 0 32px !important; background: #fff !important;
	border: 1px solid var(--ig-line) !important; border-radius: 16px !important; box-shadow: none !important; overflow: hidden;
}
body.group-create #buddypress #group-create-body { padding: 0 !important; margin: 0 !important; border: 0 !important; }
body.group-create #buddypress #group-create-body > *:not(#group-create-tabs) { margin-left: 32px !important; margin-right: 32px !important; }
body.group-create #buddypress #group-create-tabs { margin: 0 0 28px !important; border-bottom: 1px solid var(--ig-line) !important; background: #fafafa !important; }
body.group-create #buddypress #group-create-tabs ol {
	display: flex !important; flex-wrap: nowrap; justify-content: safe center; gap: 0 16px; overflow-x: auto; scrollbar-width: none;
	list-style: none; counter-reset: none; margin: 0 !important; padding: 0 20px !important; border: 0 !important; background: none !important;
}
body.group-create #buddypress #group-create-tabs ol::-webkit-scrollbar { display: none; }
body.group-create #buddypress #group-create-tabs li { float: none !important; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; flex: 0 0 auto; list-style: none; }
body.group-create #buddypress #group-create-tabs li a,
body.group-create #buddypress #group-create-tabs li span {
	display: block !important; padding: 16px 0 14px !important; white-space: nowrap; background: none !important; border: 0 !important;
	border-bottom: 2px solid transparent !important; border-radius: 0 !important; margin-bottom: -1px;
	font-size: 11px !important; font-weight: 600 !important; letter-spacing: .04em; text-transform: uppercase; color: #b3b3b3 !important; text-decoration: none !important;
}
body.group-create #buddypress #group-create-tabs li a { color: var(--kdf-teal) !important; }
body.group-create #buddypress #group-create-tabs li.current a,
body.group-create #buddypress #group-create-tabs li.current span { color: var(--kdf-dark) !important; border-bottom-color: var(--kdf-dark) !important; }
body.group-create #buddypress .creation-step-name { font-size: 18px !important; font-weight: 700 !important; margin-top: 0 !important; margin-bottom: 20px !important; padding: 0 !important; border: 0 !important; }
body.group-create #buddypress #create-group-form label,
body.group-create #buddypress #create-group-form legend { display: block; font-size: 13px !important; font-weight: 600 !important; color: #262626 !important; margin-top: 0; margin-bottom: 8px !important; }
body.group-create #buddypress #create-group-form input[type="text"],
body.group-create #buddypress #create-group-form input[type="email"],
body.group-create #buddypress #create-group-form textarea,
body.group-create #buddypress #create-group-form select {
	display: block; width: calc(100% - 64px) !important; max-width: none !important; min-height: 46px; margin-bottom: 22px !important;
	border: 1px solid transparent !important; border-radius: 12px !important; background: var(--ig-soft) !important; padding: 12px 16px !important; font-size: 15px !important; box-shadow: none !important;
}
body.group-create #buddypress #create-group-form textarea { min-height: 130px; }
body.group-create #buddypress #create-group-form input:focus,
body.group-create #buddypress #create-group-form textarea:focus { border-color: var(--kdf-teal) !important; background: #fff !important; outline: 0; }
body.group-create #buddypress #create-group-form fieldset { border: 0 !important; padding: 0 !important; background: none !important; }
body.group-create #buddypress #create-group-form .radio label,
body.group-create #buddypress #create-group-form fieldset label { font-weight: 400 !important; display: flex; align-items: center; gap: 8px; }
body.group-create #buddypress #create-group-form input[type="radio"],
body.group-create #buddypress #create-group-form input[type="checkbox"] { accent-color: var(--kdf-teal); width: 18px; height: 18px; margin: 0 !important; }
body.group-create #buddypress #create-group-form ul { padding-left: 18px; color: #666; font-size: 14px; }
body.group-create #buddypress #previous-next { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px !important; padding: 0 !important; }
body.group-create #buddypress #previous-next input {
	width: auto !important; height: 46px; padding: 0 24px !important; margin: 0 !important; border: 0 !important; border-radius: 12px !important;
	font-size: 15px !important; font-weight: 600 !important; cursor: pointer; box-shadow: none !important; text-transform: none !important;
	background: var(--kdf-teal) !important; color: #fff !important;
}
body.group-create #buddypress #previous-next input#group-creation-previous { background: #efefef !important; color: var(--kdf-dark) !important; }
body.group-create #buddypress #previous-next input:hover { filter: brightness(.95); }
@media (max-width: 767px) {
	body.group-create #buddypress .bp-subhead { font-size: 21px !important; }
	body.group-create #buddypress #group-create-body > *:not(#group-create-tabs) { margin-left: 18px !important; margin-right: 18px !important; }
	body.group-create #buddypress #create-group-form input[type="text"],
	body.group-create #buddypress #create-group-form textarea,
	body.group-create #buddypress #create-group-form select { width: calc(100% - 36px) !important; }
	body.group-create #buddypress #group-create-tabs ol { justify-content: flex-start; gap: 0 18px; padding: 0 18px !important; }
	body.group-create #buddypress #previous-next input { flex: 1 1 100%; width: 100% !important; min-width: 0; padding: 0 12px !important; font-size: 14px !important; white-space: normal; }
}

/* --- TABLET --- */
@media (min-width: 768px) and (max-width: 1024px) {
	body #buddypress #item-header-cover-image { grid-template-columns: 190px 1fr; padding: 10px 16px 32px !important; }
	body #buddypress #item-header-avatar img { width: 130px !important; height: 130px !important; }
	body #buddypress #members-list, body #buddypress #groups-list { grid-template-columns: repeat(3, 1fr); }
	body #buddypress #object-nav ul { justify-content: flex-start; }
}

/* --- MOBIL --- */
@media (max-width: 767px) {
	body #buddypress #item-header-cover-image { grid-template-columns: 96px 1fr; gap: 0 20px; padding: 0 4px 24px !important; align-items: start; }
	body #buddypress #item-header-avatar a { padding: 3px; }
	body #buddypress #item-header-avatar img { width: 86px !important; height: 86px !important; border-width: 3px !important; }
	body #buddypress #item-header-content { column-gap: 12px; row-gap: 8px; }
	body #buddypress #item-header-content .user-nicename { font-size: 18px !important; }
	.kdf-profile-stats { gap: 20px; margin: 10px 0 14px; }
	body #buddypress .kdf-profile-stats a { flex-direction: column; align-items: flex-start; gap: 0; font-size: 13px; }
	.kdf-profile-stats strong { font-size: 17px; }
	body #buddypress #object-nav ul { justify-content: flex-start; gap: 0 22px; padding: 0 4px !important; }
	body #buddypress #object-nav li a { font-size: 11px !important; }
	body #buddypress #members-list, body #buddypress #groups-list { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
	body #buddypress #members-list .item-avatar img, body #buddypress #groups-list .item-avatar img { width: 92px !important; height: 92px !important; }
	body #buddypress .subnav-filters { flex-direction: column; align-items: stretch; }
	body #buddypress .subnav-search { max-width: none; flex: 1 1 auto; }
	body #buddypress .component-filters select { width: 100% !important; }
	.rtmedia-container ul.rtmedia-list, body #buddypress .rtmedia-container ul.rtmedia-list { gap: 2px !important; }
	body.bp-user #buddypress .standard-form, body.bp-user #buddypress #settings-form,
	body.bp-user #buddypress #profile-edit-form, body.bp-user #buddypress #avatar-upload-form { padding: 20px !important; border-radius: 14px !important; }
}

/* ==========================================================================
   11) SKUPINY A FÓRUM V ŠTÝLE FACEBOOKU
   ========================================================================== */
body.single-item.groups #Content,
body.bbp-single-forum #Content,
body.single-forum #Content { background: #f0f2f5 !important; }
body.single-item.groups #Content { padding-top: 0 !important; }

/* --- hlavička skupiny --- */
body.single-item.groups #buddypress #item-header {
	max-width: 1100px; margin: 0 auto 16px !important; padding: 0 !important; background: #fff !important;
	border-radius: 0 0 16px 16px !important; box-shadow: 0 1px 2px rgba(0,0,0,.08) !important; overflow: hidden;
}
body.single-item.groups #buddypress #cover-image-container {
	background: linear-gradient(135deg, #1b1d1f 0%, #00566a 55%, #0097b2 80%, #ffbd59 120%) top / 100% 300px no-repeat !important;
}
body.single-item.groups #buddypress #header-cover-image {
	display: block !important; height: 300px !important; margin: 0 !important; background-color: transparent !important;
	background-size: cover !important; background-position: center !important; border-radius: 0 !important; position: relative !important; top: auto !important;
}
body.single-item.groups #buddypress #item-header-cover-image {
	display: block !important; max-width: none; margin: 0 !important; padding: 22px 32px 0 !important; border: 0 !important; background: #fff !important; position: static !important;
}
body.single-item.groups #buddypress #item-header-avatar,
body.single-item.groups #buddypress #item-header-content > .group-status,
body.single-item.groups #buddypress #item-header-content > .activity,
body.single-item.groups #buddypress .groups-header #item-actions { display: none !important; }
body.single-item.groups #buddypress #item-header-content { display: block !important; margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: none !important; float: none !important; }

.kdf-group-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 0 0 20px; }
.kdf-group-main { min-width: 0; }
body #buddypress .kdf-group-head .kdf-group-name,
.kdf-forum-head .kdf-group-name { font-size: 32px !important; font-weight: 800 !important; line-height: 1.15 !important; margin: 0 0 6px !important; padding: 0 !important; color: var(--kdf-dark) !important; letter-spacing: -.01em; }
.kdf-group-meta { display: flex; align-items: center; gap: 6px; margin: 0 0 12px !important; color: #65676b; font-size: 15px; font-weight: 500; }
.kdf-group-meta .dashicons { font-size: 16px; width: 16px; height: 16px; color: #65676b; }
.kdf-group-meta a { color: #65676b !important; text-decoration: none !important; }
.kdf-group-meta a:hover { text-decoration: underline !important; }
.kdf-group-faces { display: flex; align-items: center; padding-left: 6px; }
.kdf-group-faces a { display: block; margin-left: -6px; border-radius: 50%; transition: transform .15s; }
.kdf-group-faces a:hover { transform: translateY(-2px); z-index: 2; }
.kdf-group-faces img { display: block; width: 34px !important; height: 34px !important; border-radius: 50% !important; border: 2px solid #fff !important; box-shadow: none !important; object-fit: cover; margin: 0 !important; }
.kdf-group-cta { display: flex; gap: 8px; flex-shrink: 0; }
a.kdf-btn-primary,
body #buddypress a.kdf-btn-primary {
	display: inline-flex !important; align-items: center; gap: 6px; height: 38px; padding: 0 16px !important; border-radius: 8px !important;
	background: var(--kdf-teal) !important; color: #fff !important; font-size: 15px !important; font-weight: 600 !important; text-decoration: none !important; border: 0 !important; box-shadow: none !important;
}
a.kdf-btn-primary:hover { background: #007c93 !important; }
a.kdf-btn-primary .dashicons { font-size: 18px; width: 18px; height: 18px; }

/* záložky skupiny - FB štýl */
body.single-item.groups #buddypress #object-nav.main-navs {
	max-width: 1100px !important; margin: -16px auto 16px !important; padding: 0 32px !important; background: #fff !important; border-top: 1px solid #e4e6eb !important;
}
body.single-item.groups #buddypress #item-header + #object-nav,
body.single-item.groups #buddypress #object-nav { max-width: 1100px; margin: -16px auto 16px !important; border-radius: 0 0 16px 16px !important; box-shadow: 0 1px 2px rgba(0,0,0,.08) !important; }
body.single-item.groups #buddypress #item-header { border-radius: 0 !important; box-shadow: none !important; }
body.single-item.groups #buddypress #object-nav ul { justify-content: flex-start !important; gap: 0 4px !important; margin: 0 !important; }
body.single-item.groups #buddypress #object-nav li a {
	padding: 16px 14px 13px !important; margin: 0 !important; border: 0 !important; border-bottom: 3px solid transparent !important; border-top: 0 !important;
	font-size: 15px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important; color: #65676b !important; border-radius: 0 !important;
}
body.single-item.groups #buddypress #object-nav li a::before { display: none !important; }
body.single-item.groups #buddypress #object-nav li a:hover { color: var(--kdf-dark) !important; background: #f2f2f2 !important; }
body.single-item.groups #buddypress #object-nav li.current a,
body.single-item.groups #buddypress #object-nav li.selected a { color: var(--kdf-teal) !important; border-bottom-color: var(--kdf-teal) !important; background: none !important; }

/* telo skupiny */
body.single-item.groups #buddypress #item-body { max-width: 1100px !important; margin: 0 auto !important; }
body.group-home #buddypress #item-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 16px; align-items: start; }
body.group-home #buddypress #item-body > * { grid-column: 1; }
body.group-home #buddypress #item-body > .kdf-group-aside { grid-column: 2; grid-row: 1 / span 30; position: sticky; top: var(--kdf-sticky-top, 90px); }
body.group-home #buddypress #item-body > h2.bp-screen-title { display: none !important; }
.kdf-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.08); padding: 18px 18px 8px; margin: 0 0 16px; }
.kdf-card h3 { font-size: 18px !important; font-weight: 700 !important; margin: 0 0 12px !important; padding: 0 !important; color: var(--kdf-dark); }
.kdf-group-desc { font-size: 15px; line-height: 1.5; color: #1c1e21; margin: 0 0 14px !important; }
.kdf-info-row { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; }
.kdf-info-row .dashicons { font-size: 20px; width: 20px; height: 20px; color: #65676b; margin-top: 1px; flex-shrink: 0; }
.kdf-info-row strong { display: block; font-size: 15px; font-weight: 600; color: var(--kdf-dark); line-height: 1.3; }
.kdf-info-row small { display: block; font-size: 13px; color: #65676b; line-height: 1.4; }
body.single-item.groups #buddypress #whats-new-form { border: 0 !important; border-radius: 12px !important; box-shadow: 0 1px 2px rgba(0,0,0,.08) !important; }
body.single-item.groups #buddypress #item-body .subnav-filters { background: #fff; border-radius: 12px; padding: 10px 12px !important; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
body.single-item.groups #buddypress .activity-list > li,
body.single-item.groups #buddypress #activity-stream .bp-feedback,
body.single-item.groups #buddypress #item-body #bbpress-forums,
body.single-item.groups #buddypress #item-body #members-group-list,
body.single-item.groups #buddypress #item-body .rtmedia-container {
	background: #fff !important; border: 0 !important; border-radius: 12px !important; box-shadow: 0 1px 2px rgba(0,0,0,.08) !important;
}
body.single-item.groups #buddypress #item-body #bbpress-forums,
body.single-item.groups #buddypress #item-body #members-group-list,
body.single-item.groups #buddypress #item-body .rtmedia-container { padding: 20px !important; }
body.single-item.groups #buddypress .activity-list > li { margin: 0 0 16px !important; padding: 16px !important; }
body.single-item.groups #buddypress #item-body #subnav,
body.single-item.groups #buddypress #item-body .bp-subnavs { margin-top: 0 !important; }

/* --- hlavička samostatného fóra --- */
.kdf-forum-head { background: #fff; border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.08); overflow: hidden; margin: 0 0 16px; clear: both; }
.kdf-forum-cover { height: 170px; background: linear-gradient(135deg, #1b1d1f 0%, #00566a 55%, #0097b2 80%, #ffbd59 120%); }
.kdf-forum-head-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 20px 28px 22px; }
.kdf-forum-desc { margin: 0 !important; color: #444; font-size: 15px; line-height: 1.5; max-width: 640px; }
.kdf-forum-head .kdf-group-meta { margin-bottom: 8px !important; }
body.single-forum #Subheader { display: none !important; }
body.single-forum #Content { padding-top: 24px !important; }
body.single-forum #bbpress-forums > .bbp-search-form,
body.single-forum #bbpress-forums > #subscription-toggle { display: none !important; }
body.single-forum #bbpress-forums .kdf-community-wrap { background: none !important; box-shadow: none !important; padding: 0 !important; border: 0 !important; }
body.single-forum #bbpress-forums { max-width: 1100px; margin: 0 auto; }
.kdf-group-cta .subscription-toggle { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 8px; background: #e4e6eb; color: var(--kdf-dark) !important; font-size: 15px; font-weight: 600; text-decoration: none !important; }
.kdf-group-cta .subscription-toggle:hover { background: #d8dadf; }

@media (max-width: 1024px) {
	body.group-home #buddypress #item-body { grid-template-columns: minmax(0, 1fr) 300px; }
	body.single-item.groups #buddypress #header-cover-image { height: 230px !important; }
	body.single-item.groups #buddypress #cover-image-container { background-size: 100% 230px !important; }
}
@media (max-width: 767px) {
	body.single-item.groups #buddypress #header-cover-image { height: 160px !important; }
	body.single-item.groups #buddypress #cover-image-container { background-size: 100% 160px !important; }
	body.single-item.groups #buddypress #item-header-cover-image { padding: 16px 16px 0 !important; }
	.kdf-group-head, .kdf-forum-head-inner { flex-direction: column; align-items: stretch; gap: 14px; }
	body #buddypress .kdf-group-head .kdf-group-name, .kdf-forum-head .kdf-group-name { font-size: 24px !important; }
	.kdf-group-cta a.kdf-btn-primary { flex: 1; justify-content: center; }
	body.single-item.groups #buddypress #object-nav.main-navs { padding: 0 8px !important; }
	body.single-item.groups #buddypress #object-nav ul { flex-wrap: nowrap !important; overflow-x: auto; }
	body.single-item.groups #buddypress #object-nav li a { font-size: 14px !important; padding: 14px 10px 11px !important; }
	body.group-home #buddypress #item-body { display: block; }
	body.group-home #buddypress #item-body > .kdf-group-aside { position: static; }
	.kdf-forum-cover { height: 110px; }
	.kdf-forum-head-inner { padding: 16px; }
}

/* --- prúd aktivity: bez odsadenia, čisté karty --- */
body #buddypress #activity-stream { padding: 0 !important; margin: 0 !important; }
body #buddypress #activity-stream ul.activity-list { padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; list-style: none; }
body #buddypress .activity-list > li.activity-item {
	display: grid !important; grid-template-columns: 44px minmax(0, 1fr); gap: 0 12px; align-items: start;
	padding: 16px !important; margin: 0 0 16px !important; background: #fff !important; border: 0 !important; border-radius: 12px !important; box-shadow: 0 1px 2px rgba(0,0,0,.08) !important;
}
body #buddypress .activity-list > li.activity-item::before,
body #buddypress .activity-list > li.activity-item::after { display: none !important; content: none !important; }
body #buddypress .activity-list .activity-avatar { float: none !important; width: 44px !important; margin: 0 !important; padding: 0 !important; }
body #buddypress .activity-list .activity-avatar img { width: 44px !important; height: 44px !important; border-radius: 50% !important; border: 0 !important; box-shadow: none !important; margin: 0 !important; }
body #buddypress .activity-list .activity-content { margin: 0 !important; padding: 0 !important; min-width: 0; }
body #buddypress .activity-list .activity-header { margin: 2px 0 8px !important; padding: 0 !important; font-size: 15px; line-height: 1.4; color: #444; }
body #buddypress .activity-list .activity-header p { margin: 0 !important; }
body #buddypress .activity-list .activity-header a { color: var(--kdf-dark) !important; font-weight: 600; text-decoration: none !important; }
body #buddypress .activity-list .activity-header img.avatar { width: 18px !important; height: 18px !important; border-radius: 4px !important; vertical-align: -3px; margin: 0 4px 0 2px !important; border: 0 !important; box-shadow: none !important; }
body #buddypress .activity-list .activity-header .time-since,
body #buddypress .activity-list .activity-header a.activity-time-since { display: block; font-size: 12px !important; font-weight: 400 !important; color: #8e8e8e !important; margin-top: 2px; }
body #buddypress .activity-list .activity-inner { margin: 0 0 10px !important; padding: 0 !important; font-size: 15px; line-height: 1.5; background: none !important; border: 0 !important; }
body #buddypress .activity-list .activity-meta {
	display: flex !important; gap: 6px; margin: 8px 0 0 !important; padding: 8px 0 0 !important; background: none !important; border: 0 !important; border-top: 1px solid #eee !important;
}
body #buddypress .activity-list .activity-meta .generic-button { margin: 0 !important; }
body #buddypress .activity-list .activity-meta .generic-button a,
body #buddypress .activity-list .activity-meta .generic-button button,
body #buddypress .activity-list .activity-meta a.button,
body #buddypress .activity-list .activity-meta button.button {
	min-height: 32px; padding: 0 12px !important; background: transparent !important; color: #65676b !important; border-radius: 8px !important; font-size: 13px !important;
}
body #buddypress .activity-list .activity-meta .generic-button a:hover,
body #buddypress .activity-list .activity-meta .generic-button button:hover { background: #f0f2f5 !important; color: var(--kdf-dark) !important; }
body #buddypress .activity-list .activity-comments { grid-column: 2; margin: 8px 0 0 !important; padding: 0 !important; border: 0 !important; }
/* mobil: vedľa avatara len hlavička (meno, čas); text, fotky, tlačidlá a komentáre na celú šírku karty */
@media (max-width: 767px) {
	body #buddypress .activity-list > li.activity-item { align-items: center; }
	body #buddypress .activity-list > li.activity-item > .activity-content { display: contents; }
	body #buddypress .activity-list > li.activity-item > .activity-content > *,
	body #buddypress .activity-list > li.activity-item > .activity-comments { grid-column: 1 / -1; align-self: start; }
	body #buddypress .activity-list > li.activity-item > .activity-content > .activity-header { grid-column: 2; align-self: center; margin: 0 !important; }
	body #buddypress .activity-list > li.activity-item > .activity-content > .activity-header + * { margin-top: 12px !important; }
}
body #buddypress .activity-list li.load-more,
body #buddypress .activity-list li.load-newest {
	display: block !important; padding: 0 !important; margin: 0 0 16px !important; background: #fff !important; border: 0 !important; border-radius: 12px !important; box-shadow: 0 1px 2px rgba(0,0,0,.08) !important; text-align: center;
}
body #buddypress .activity-list li.load-more a,
body #buddypress .activity-list li.load-newest a { display: block; padding: 14px !important; color: var(--kdf-teal) !important; font-weight: 600; text-decoration: none !important; }
body:not(.single-item) #buddypress .activity-list > li.activity-item,
body:not(.single-item) #buddypress .activity-list li.load-more { border: 1px solid var(--ig-line) !important; box-shadow: none !important; }
@media (max-width: 767px) {
	body #buddypress .activity-list > li.activity-item { grid-template-columns: 38px minmax(0, 1fr); padding: 12px !important; gap: 0 10px; }
	body #buddypress .activity-list .activity-avatar, body #buddypress .activity-list .activity-avatar img { width: 38px !important; height: 38px !important; }
}

/* --- skupina: zarovnanie a šírky stĺpcov, nedávne médiá --- */
body.single-item.groups #buddypress #item-body { padding: 0 !important; }
body.group-home #buddypress #item-body { grid-template-columns: minmax(0, 1fr) 320px !important; }
.kdf-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.kdf-card-head h3 { margin: 0 !important; }
.kdf-card-head a { font-size: 14px; font-weight: 600; color: var(--kdf-teal) !important; text-decoration: none !important; }
.kdf-recent-media { padding-bottom: 18px !important; }
.kdf-media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 8px; overflow: hidden; }
.kdf-media-grid a { display: block; aspect-ratio: 1 / 1; position: relative; background: #f0f2f5; overflow: hidden; }
.kdf-media-grid img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; border-radius: 0 !important; transition: transform .25s; }
.kdf-media-grid a:hover img { transform: scale(1.05); }
.kdf-media-grid a.is-video::after { content: "\f236"; font-family: dashicons; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; background: rgba(0,0,0,.25); }
.kdf-media-empty { margin: 0 0 12px !important; color: #65676b; font-size: 14px; }
.kdf-media-upload { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; background: #e4e6eb; color: var(--kdf-dark) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.kdf-media-upload:hover { background: #d8dadf; }
@media (max-width: 1024px) {
	body.group-home #buddypress #item-body { grid-template-columns: minmax(0, 1fr) 280px !important; }
}
@media (max-width: 767px) {
	body.group-home #buddypress #item-body { display: block !important; }
}

/* --- nový príspevok: štýl Facebooku --- */
body #buddypress #whats-new-form { align-items: center; }
body #buddypress #whats-new-form.activity-form-expanded { align-items: flex-start; }
body #buddypress #whats-new-form.activity-form-expanded #whats-new {
	min-height: 110px !important; padding: 8px 2px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important;
	font-size: 20px !important; line-height: 1.4 !important; resize: none !important; box-shadow: none !important;
}
body #buddypress #whats-new-form.activity-form-expanded #whats-new:focus { border: 0 !important; background: transparent !important; box-shadow: none !important; }
body #buddypress #whats-new-form #whats-new::placeholder { color: #8a8d91; }

/* lišta "Pridať k príspevku" */
body #buddypress #whats-new-form .rtmedia-uploader-div,
body #buddypress #whats-new-form .rtmedia-uploader-div .rtmedia-container,
body #buddypress #whats-new-form .rtmedia-plupload-container {
	background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; min-height: 0 !important;
}
body #buddypress #whats-new-form .rtmedia-uploader-div {
	display: block; border: 1px solid #e4e6eb !important; border-radius: 10px !important; padding: 8px 10px 8px 16px !important;
}
body #buddypress #whats-new-form #rtmedia-action-update {
	display: flex !important; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important;
}
body #buddypress #whats-new-form #rtmedia-action-update::before { content: "Pridať k príspevku"; font-size: 15px; font-weight: 600; color: var(--kdf-dark); }
body #buddypress #whats-new-form .rtm-upload-button-wrapper { display: flex; align-items: center; gap: 4px; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
body #buddypress #whats-new-form #rtmedia-add-media-button-post-update {
	width: 40px !important; height: 40px !important; min-height: 0 !important; padding: 0 !important; justify-content: center; border-radius: 50% !important;
	background: transparent !important; color: #45bd62 !important; border: 0 !important; box-shadow: none !important;
}
body #buddypress #whats-new-form #rtmedia-add-media-button-post-update:hover { background: #f0f2f5 !important; }
body #buddypress #whats-new-form #rtmedia-add-media-button-post-update .dashicons { font-size: 24px; width: 24px; height: 24px; color: #45bd62; }
body #buddypress #whats-new-form #rtmedia-add-media-button-post-update span:not(.dashicons),
body #buddypress #whats-new-form .rtm-file-size-limit,
body #buddypress #whats-new-form .rtmedia-upload-not-allowed { display: none !important; }
body #buddypress #whats-new-form #rtmedia_uploader_filelist { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 !important; padding: 0 !important; list-style: none; }
body #buddypress #whats-new-form #rtmedia_uploader_filelist li { width: 72px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 8px; overflow: hidden; background: #f0f2f5; }

/* tlačidlá */
body #buddypress #whats-new-form #whats-new-options,
body #buddypress #whats-new-form #whats-new-submit { margin: 0 !important; }
body #buddypress #whats-new-form #whats-new-submit { display: flex !important; flex-direction: row-reverse; gap: 8px; }
body #buddypress #whats-new-form #aw-whats-new-submit { flex: 1; height: 40px !important; border-radius: 8px !important; font-size: 15px !important; }
body #buddypress #whats-new-form #aw-whats-new-submit:disabled,
body #buddypress #whats-new-form #aw-whats-new-submit[disabled] { background: #e4e6eb !important; color: #bcc0c4 !important; }
body #buddypress #whats-new-form #aw-whats-new-reset { height: 40px !important; border-radius: 8px !important; font-size: 15px !important; background: #e4e6eb !important; padding: 0 18px !important; }
body #buddypress #whats-new-form #whats-new-post-in-box select { height: 40px; }

body.single-item #buddypress #item-body #whats-new-form .rtmedia-container,
body.single-item #buddypress #item-body #whats-new-form .rtmedia-plupload-container { background: none !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
body.single-item #buddypress #item-body #whats-new-form .rtmedia-uploader-div { border: 1px solid #e4e6eb !important; border-radius: 10px !important; padding: 6px 8px 6px 16px !important; }
body #buddypress #whats-new-form .rtm-upload-button-wrapper span:not(.dashicons),
body #buddypress #whats-new-form #rtmedia-action-update > span { display: none !important; }
body #buddypress #whats-new-form #rtmedia-action-update::before { white-space: nowrap; }
/* ==========================================================================
   12) GALÉRIA rtMedia - štýl Instagramu (Všetko / Albumy / Fotky)
   ========================================================================== */
#buddypress .rtmedia-container #rtm-gallery-title-container {
	display: flex !important; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	margin: 0 0 18px !important; padding: 0 0 14px !important; border-bottom: 1px solid var(--ig-line) !important; background: none !important;
}
#buddypress .rtmedia-container h2.rtm-gallery-title {
	float: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
	font-size: 13px !important; font-weight: 700 !important; letter-spacing: .08em; text-transform: uppercase; color: var(--ig-muted) !important; line-height: 1.4 !important;
}
#buddypress .rtmedia-container #rtm-media-options { float: none !important; display: flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 0 !important; border: 0 !important; }
#buddypress .rtmedia-container #rtm-media-options .click-nav,
#buddypress .rtmedia-container #rtm-media-options .js { position: relative; margin: 0 !important; padding: 0 !important; border: 0 !important; float: none !important; }
#buddypress .rtmedia-container #rtm-media-options button.clicker,
#buddypress .rtmedia-container #rtm-media-options #rtm_show_upload_ui {
	display: inline-flex !important; align-items: center; gap: 6px; height: 36px; padding: 0 14px !important; margin: 0 !important;
	border: 0 !important; border-radius: 8px !important; box-shadow: none !important; font-size: 14px !important; font-weight: 600 !important; line-height: 1 !important; cursor: pointer; text-transform: none !important;
}
#buddypress .rtmedia-container #rtm-media-options button.clicker { background: #efefef !important; color: var(--kdf-dark) !important; }
#buddypress .rtmedia-container #rtm-media-options button.clicker:hover { background: #dedede !important; }
#buddypress .rtmedia-container #rtm-media-options #rtm_show_upload_ui { background: var(--kdf-teal) !important; color: #fff !important; }
#buddypress .rtmedia-container #rtm-media-options #rtm_show_upload_ui:hover { background: #007c93 !important; }
#buddypress .rtmedia-container #rtm-media-options .dashicons { font-size: 17px; width: 17px; height: 17px; }
#buddypress .rtmedia-container #rtm-media-options ul.rtm-options {
	position: absolute; right: 0; top: 42px; z-index: 20; min-width: 200px; margin: 0 !important; padding: 6px !important; list-style: none;
	background: #fff !important; border: 1px solid var(--ig-line) !important; border-radius: 12px !important; box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}
#buddypress .rtmedia-container #rtm-media-options ul.rtm-options li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
#buddypress .rtmedia-container #rtm-media-options ul.rtm-options a {
	display: flex !important; align-items: center; gap: 8px; padding: 10px 12px !important; border-radius: 8px; color: var(--kdf-dark) !important; font-size: 14px; text-decoration: none !important; background: none !important; border: 0 !important;
}
#buddypress .rtmedia-container #rtm-media-options ul.rtm-options a:hover { background: #f4f5f6 !important; }

#buddypress .rtmedia-container h2.rtm-gallery-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#buddypress .rtmedia-container #rtm-gallery-title-container { justify-content: flex-end; }

/* nahrávanie */
#buddypress #rtm-media-gallery-uploader .rtmedia-uploader-div,
#buddypress #rtm-media-gallery-uploader .rtmedia-container { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
#buddypress #rtm-media-gallery-uploader #drag-drop-area {
	margin: 0 0 20px !important; padding: 28px 20px !important; border: 2px dashed #d6d9dc !important; border-radius: 16px !important; background: #fafafa !important; text-align: center;
}
#buddypress #rtm-media-gallery-uploader .rtm-album-privacy { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 18px !important; }
#buddypress #rtm-media-gallery-uploader .rtm-album-privacy span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #555; }
#buddypress #rtm-media-gallery-uploader .rtm-album-privacy label { display: inline-flex !important; align-items: center; gap: 4px; margin: 0 !important; font-size: 13px !important; font-weight: 600 !important; }
#buddypress #rtm-media-gallery-uploader select { height: 38px; padding: 0 12px !important; border: 0 !important; border-radius: 10px !important; background: #fff !important; box-shadow: inset 0 0 0 1px #e3e3e3 !important; font-size: 14px !important; }
#buddypress #rtm-media-gallery-uploader .rtm-select-files { display: flex; flex-direction: column; align-items: center; gap: 8px; }
#buddypress #rtm-media-gallery-uploader #rtMedia-upload-button,
#buddypress #rtm-media-gallery-uploader .start-media-upload {
	height: 42px; padding: 0 22px !important; border: 0 !important; border-radius: 10px !important; background: var(--kdf-teal) !important; color: #fff !important;
	font-size: 15px !important; font-weight: 600 !important; box-shadow: none !important; cursor: pointer; text-transform: none !important;
}
#buddypress #rtm-media-gallery-uploader .rtm-seperator,
#buddypress #rtm-media-gallery-uploader .drag-drop-info { font-size: 13px; color: var(--ig-muted); }
#buddypress #rtm-media-gallery-uploader .rtm-file-size-limit { display: none !important; }
#buddypress #rtm-media-gallery-uploader .start-media-upload { margin-top: 14px !important; }

/* prázdny stav */
#buddypress .rtmedia-container p.rtmedia-no-media-found {
	display: flex !important; flex-direction: column; align-items: center; gap: 14px; margin: 30px 0 !important; padding: 40px 20px !important;
	text-align: center; font-size: 20px !important; font-weight: 700 !important; color: var(--kdf-dark) !important; background: none !important; border: 0 !important;
}
#buddypress .rtmedia-container p.rtmedia-no-media-found::before {
	content: "\f306"; font-family: dashicons; font-weight: 400; display: flex; align-items: center; justify-content: center;
	width: 76px; height: 76px; border: 2px solid var(--kdf-dark); border-radius: 50%; font-size: 36px; line-height: 1;
}
#buddypress .rtmedia-container p.rtmedia-no-media-found::after { content: "Keď sem pridáš fotky, zobrazia sa tu."; font-size: 14px; font-weight: 400; color: var(--ig-muted); margin-top: -6px; }

/* albumy */
#buddypress .rtmedia-container ul.rtmedia-list::before,
#buddypress .rtmedia-container ul.rtmedia-list::after { display: none !important; content: none !important; }
#buddypress .rtmedia-container ul.rtmedia-album-list { gap: 16px !important; }
#buddypress .rtmedia-container ul.rtmedia-album-list > li.rtmedia-list-item { background: none !important; overflow: visible !important; }
#buddypress .rtmedia-container ul.rtmedia-album-list li.rtmedia-list-item > a { aspect-ratio: auto; }
#buddypress .rtmedia-container ul.rtmedia-album-list .rtmedia-item-thumbnail { aspect-ratio: 1 / 1; height: auto !important; border-radius: 12px !important; background: #f0f2f5 !important; }
#buddypress .rtmedia-container ul.rtmedia-album-list .rtmedia-item-thumbnail:has(img[src*="image_thumb"]) {
	display: flex !important; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #1b1d1f 0%, #00566a 60%, #0097b2 100%) !important;
}
#buddypress .rtmedia-container ul.rtmedia-album-list .rtmedia-item-thumbnail img[src*="image_thumb"] { display: none !important; }
#buddypress .rtmedia-container ul.rtmedia-album-list .rtmedia-item-thumbnail:has(img[src*="image_thumb"])::before { content: "\f161"; font-family: dashicons; font-size: 44px; color: rgba(255,255,255,.85); }
#buddypress .rtmedia-container ul.rtmedia-album-list li.rtmedia-list-item > a::after { display: none !important; }
#buddypress .rtmedia-container ul.rtmedia-album-list li.rtmedia-list-item .rtmedia-item-title { display: block !important; padding: 8px 2px 0 !important; margin: 0 !important; background: none !important; }
#buddypress .rtmedia-container ul.rtmedia-album-list li.rtmedia-list-item .rtmedia-item-title h4 { display: block !important; margin: 0 !important; padding: 0 !important; font-size: 15px !important; font-weight: 600 !important; color: var(--kdf-dark) !important; text-align: left; }
#buddypress .rtmedia-container ul.rtmedia-album-list .rtmedia-album-media-count {
	position: absolute; top: 10px; right: 10px; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px;
	display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55) !important; color: #fff !important; font-size: 12px; font-weight: 600; line-height: 1;
}
#buddypress .rtm-load-more { text-align: center; margin: 20px 0 0 !important; }
#buddypress .rtm-load-more a { display: inline-flex; height: 38px; align-items: center; padding: 0 18px; border-radius: 8px; background: #efefef; color: var(--kdf-dark) !important; font-weight: 600; text-decoration: none !important; }

/* v skupine: galéria ako biela karta bez dvojitých obalov */
body.single-item.groups #buddypress #item-body #rtm-media-gallery-uploader .rtmedia-container { padding: 0 !important; box-shadow: none !important; }

@media (max-width: 767px) {
	#buddypress .rtmedia-container #rtm-gallery-title-container { flex-direction: row; }
	#buddypress .rtmedia-container #rtm-media-options button.clicker { font-size: 0 !important; width: 36px; padding: 0 !important; justify-content: center; gap: 0; }
	#buddypress .rtmedia-container ul.rtmedia-album-list { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
	#buddypress .rtmedia-container p.rtmedia-no-media-found { padding: 24px 10px !important; font-size: 18px !important; }
}
body #buddypress .kdf-group-meta a { border: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; min-height: 0 !important; }

/* --- profil bez titulného obrázka: hlavička priamo v #item-header --- */
body.bp-user #buddypress #item-header.users-header {
	display: grid !important; grid-template-columns: 290px 1fr; align-items: center; gap: 0 24px;
	max-width: 935px; margin: 0 auto !important; padding: 10px 20px 20px !important; border-bottom: 1px solid var(--ig-line) !important;
}
body.bp-user #buddypress #item-header.users-header > input { display: none; }
body.bp-user #buddypress #item-header.users-header::before,
body.bp-user #buddypress #item-header.users-header::after { display: none !important; content: none !important; }
@media (min-width: 768px) and (max-width: 1024px) {
	body.bp-user #buddypress #item-header.users-header { grid-template-columns: 190px 1fr; padding: 10px 16px 16px !important; }
	/* cudzí profil rovnako ako vlastný: @meno, štatistiky, meno/bio, tlačidlá, aktivita */
	body.bp-user #buddypress #item-header.users-header .kdf-profile-stats { order: 2 !important; }
	body.bp-user #buddypress #item-header.users-header .kdf-profile-bio { order: 3 !important; }
	body.bp-user #buddypress #item-header.users-header .member-header-actions { order: 4 !important; flex-wrap: nowrap !important; gap: 6px !important; width: 100%; max-width: 360px; margin-top: 10px !important; }
	body.bp-user #buddypress #item-header.users-header .item-meta { order: 5 !important; }
	/* tri tlačidlá v jednom riadku s krátkymi popismi ako na mobile (celý text ostáva v title) */
	body.bp-user #buddypress #item-header.users-header .member-header-actions > .generic-button { flex: 1 1 0 !important; min-width: 0 !important; margin: 0 !important; }
	body.bp-user #buddypress #item-header.users-header .member-header-actions > .generic-button > a,
	body.bp-user #buddypress #item-header.users-header .member-header-actions > .generic-button > button { display: flex !important; align-items: center; justify-content: center; width: 100% !important; height: 32px !important; padding: 0 6px !important; font-size: 0 !important; white-space: nowrap; }
	body.bp-user #buddypress #item-header.users-header .member-header-actions > .generic-button > a::after,
	body.bp-user #buddypress #item-header.users-header .member-header-actions > .generic-button > button::after { font-size: 13px; line-height: 1; }
	body.bp-user #buddypress #item-header.users-header .member-header-actions > .generic-button > .friendship-button::after { content: "Priateľstvo"; }
	body.bp-user #buddypress #item-header.users-header .member-header-actions > .generic-button > .is_friend::after { content: "Priatelia ✓"; }
	body.bp-user #buddypress #item-header.users-header .member-header-actions > .generic-button > .not_friends::after { content: "Pridať"; }
	body.bp-user #buddypress #item-header.users-header .member-header-actions > .generic-button > .pending_friend::after { content: "Čaká sa"; }
	body.bp-user #buddypress #item-header.users-header .member-header-actions > .generic-button > .awaiting_response_friend::after { content: "Potvrdiť"; }
	body.bp-user #buddypress #item-header.users-header .member-header-actions > #post-mention > a::after { content: "Zmienka"; }
	body.bp-user #buddypress #item-header.users-header .member-header-actions > #send-private-message > a::after { content: "Správa"; }
}
@media (max-width: 767px) {
	body.bp-user #buddypress #item-header.users-header { grid-template-columns: 96px 1fr; gap: 0 20px; padding: 0 4px 24px !important; align-items: start; }
}
/* ==========================================================================
   13) ZEĎ (Aktivita) - hlavný prúd komunity v štýle Facebooku
   ========================================================================== */

/* stĺpec max. 800px v strede stránky Betheme */
body.directory.activity .kdf-community-wrap { max-width: 800px; padding: 32px 16px 60px; }
body.directory.activity #buddypress { max-width: 800px; margin: 0 auto; }
body.directory.activity #Content { background: #f0f2f5; }
body.directory.activity .sidebar, body.directory.activity .four.columns.sidebar { display: none !important; }
body.directory.activity .sections_group { width: 100% !important; }
body.directory.activity #buddypress .bp-navs.dir-navs { margin-bottom: 16px !important; }
body.directory.activity #buddypress .subnav-filters { margin: 0 0 16px !important; }

/* box "Čo je nové?" - čistá karta */
body.directory.activity #buddypress #whats-new-form { border: 0 !important; border-radius: 16px !important; box-shadow: 0 1px 3px rgba(0,0,0,.08) !important; padding: 16px 18px !important; }
body.directory.activity #buddypress #whats-new-form #whats-new-post-in-box { flex: 1; }
body #buddypress #whats-new-form #rtmedia-add-media-button-post-update { width: auto !important; padding: 0 12px !important; border-radius: 999px !important; gap: 6px; }
body #buddypress #whats-new-form #rtmedia-add-media-button-post-update::after { content: "Fotka"; font-size: 14px; font-weight: 600; color: #444; }
body #buddypress #whats-new-form #aw-whats-new-submit { flex: 0 0 auto !important; border-radius: 999px !important; padding: 0 26px !important; }

/* karty príspevkov */
body.directory.activity #buddypress .activity-list > li.activity-item { border: 0 !important; border-radius: 16px !important; box-shadow: 0 1px 3px rgba(0,0,0,.08) !important; overflow: hidden; }
body #buddypress .activity-list .activity-avatar img { border-radius: 50% !important; object-fit: cover; }

/* fotky z rtMedia: na celú šírku karty */
body #buddypress .activity-list .rtmedia-activity-container { margin: 10px -16px 0 !important; padding: 0 !important; }
body #buddypress .activity-list .rtmedia-activity-container .rtmedia-activity-text { padding: 0 16px 10px; }
body #buddypress .activity-list ul.rtmedia-list.rtm-activity-media-list {
	display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 2px !important; margin: 0 !important; padding: 0 !important; list-style: none; width: 100% !important;
}
body #buddypress .activity-list ul.rtm-activity-media-list > li:only-child { grid-column: 1 / -1; }
body #buddypress .activity-list ul.rtm-activity-media-list > li {
	width: auto !important; max-width: none !important; height: auto !important; margin: 0 !important; padding: 0 !important; float: none !important;
	border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #f0f2f5 !important; aspect-ratio: auto; overflow: hidden;
}
body #buddypress .activity-list ul.rtm-activity-media-list > li:not(:only-child) { aspect-ratio: 1 / 1; }
body #buddypress .activity-list ul.rtm-activity-media-list .rtmedia-item-thumbnail { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
body #buddypress .activity-list ul.rtm-activity-media-list img {
	display: block; width: 100% !important; height: 100% !important; max-width: none !important; max-height: 640px !important; object-fit: cover; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important;
}
body #buddypress .activity-list ul.rtm-activity-media-list .rtmedia-item-title,
body #buddypress .activity-list ul.rtm-activity-media-list > li > a::after { display: none !important; }
body #buddypress .activity-list ul.rtm-activity-media-list video { width: 100% !important; max-height: 640px; display: block; }

/* systémové hlášky - potlačené */
body #buddypress .activity-list > li.activity-item:not(.activity_update):not(.rtmedia_update):not(.bbp_topic_create):not(.bbp_reply_create):not(.kdf_share):not(.new_kdf_event):not(.created_group):not(.bbp_forum_create):not(.new_blog_post) {
	background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 6px 16px !important; margin-bottom: 8px !important; grid-template-columns: 28px minmax(0, 1fr) !important;
}
body #buddypress .activity-list > li.activity-item:not(.activity_update):not(.rtmedia_update):not(.bbp_topic_create):not(.bbp_reply_create):not(.kdf_share):not(.new_kdf_event):not(.created_group):not(.bbp_forum_create):not(.new_blog_post) .activity-avatar,
body #buddypress .activity-list > li.activity-item:not(.activity_update):not(.rtmedia_update):not(.bbp_topic_create):not(.bbp_reply_create):not(.kdf_share):not(.new_kdf_event):not(.created_group):not(.bbp_forum_create):not(.new_blog_post) .activity-avatar img { width: 28px !important; height: 28px !important; }
body #buddypress .activity-list > li.activity-item:not(.activity_update):not(.rtmedia_update):not(.bbp_topic_create):not(.bbp_reply_create):not(.kdf_share):not(.new_kdf_event):not(.created_group):not(.bbp_forum_create):not(.new_blog_post) .activity-header { font-size: 13px; color: #8e8e8e; margin: 4px 0 0 !important; }
body #buddypress .activity-list > li.activity-item:not(.activity_update):not(.rtmedia_update):not(.bbp_topic_create):not(.bbp_reply_create):not(.kdf_share):not(.new_kdf_event):not(.created_group):not(.bbp_forum_create):not(.new_blog_post) .activity-header a { color: #65676b !important; }
body #buddypress .activity-list > li.activity-item:not(.activity_update):not(.rtmedia_update):not(.bbp_topic_create):not(.bbp_reply_create):not(.kdf_share):not(.new_kdf_event):not(.created_group):not(.bbp_forum_create):not(.new_blog_post) .activity-header .time-since { display: inline; margin-left: 4px; }
body #buddypress .activity-list > li.activity-item:not(.activity_update):not(.rtmedia_update):not(.bbp_topic_create):not(.bbp_reply_create):not(.kdf_share):not(.new_kdf_event):not(.created_group):not(.bbp_forum_create):not(.new_blog_post) .activity-meta { display: none !important; }

/* nový článok od admina - karta */
body #buddypress .activity-list > li.activity-item.new_blog_post .activity-header a[href*="/20"],
body #buddypress .activity-list > li.activity-item.new_blog_post .activity-header > p > a:last-of-type { font-weight: 700; color: var(--kdf-teal) !important; }
body #buddypress .activity-list > li.activity-item.new_blog_post .activity-inner { color: #444; }
body #buddypress .activity-list > li.activity-item.new_blog_post .activity-inner img { display: block; width: 100% !important; height: auto !important; max-width: none !important; border-radius: 12px !important; margin: 0 0 12px !important; }
body #buddypress .activity-list > li.activity-item.new_blog_post .activity-inner .activity-read-more a { color: var(--kdf-teal) !important; font-weight: 600; }

/* interakcie - len ikony */
body #buddypress .activity-list .activity-meta { border-top: 0 !important; padding-top: 4px !important; }
body #buddypress .activity-list .activity-meta .button { font-size: 0 !important; gap: 4px; display: inline-flex !important; align-items: center !important; }
body #buddypress .activity-list .activity-meta.action { flex-wrap: nowrap !important; }
/* poradie: Komentáre | Lajky | Zdieľať | Kôš | viditeľnosť */
body #buddypress .activity-list .activity-meta.action > .generic-button:has(.delete-activity) { order: 8; }
body #buddypress .activity-list .activity-meta .button .count { min-width: 8px; line-height: 20px; font-weight: 600; color: #65676b; background: none !important; padding: 0 !important; margin: 0 !important; border: 0 !important; }
body #buddypress .activity-list .activity-meta .button .comment-count,
body #buddypress .activity-list .activity-meta .button .count { font-size: 13px !important; }
body #buddypress .activity-list .activity-meta .button::before { font-family: dashicons; font-size: 20px; line-height: 1; width: 20px; height: 20px; color: #65676b; }
body #buddypress .activity-list .activity-meta .acomment-reply::before { content: "\f101"; }
body #buddypress .activity-list .activity-meta .fav::before { content: "\f487"; color: #b0b3b8; }
body #buddypress .activity-list .activity-meta .unfav::before { content: "\f487"; color: #e0245e; }
body #buddypress .activity-list .activity-meta .delete-activity::before,
body #buddypress .activity-list .activity-meta .acomment-delete::before { content: "\f182"; }
body #buddypress .activity-list .activity-meta .delete-activity { margin-left: auto; }
body #buddypress .activity-list .activity-meta .button:hover::before { color: var(--kdf-teal); }

/* komentáre */
body #buddypress .activity-list .activity-comments ul li { border: 0 !important; padding: 8px 0 0 !important; }
body #buddypress .activity-list .activity-comments .acomment-avatar img { width: 32px !important; height: 32px !important; border-radius: 50% !important; border: 0 !important; }
body #buddypress .activity-list .activity-comments .acomment-content { background: #f0f2f5; border-radius: 16px; padding: 8px 12px !important; margin: 4px 0 0 !important; display: inline-block; font-size: 14px; }
/* fotka v komentári – kompaktný náhled pod textom (Messenger štýl) */
body #buddypress .activity-list .activity-comments .rtmedia-activity-container { margin: 8px 0 2px !important; max-width: min(320px, 100%); }
body #buddypress .activity-list .activity-comments .rtmedia-list { display: block !important; margin: 0 !important; padding: 0 !important; }
body #buddypress .activity-list .activity-comments .rtmedia-list-item { width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important; }
body #buddypress .activity-list .activity-comments .rtmedia-item-thumbnail { width: auto !important; height: auto !important; border-radius: 14px; overflow: hidden; }
body #buddypress .activity-list .activity-comments .rtmedia-item-thumbnail img { display: block; width: 100% !important; height: auto !important; max-height: 320px; object-fit: cover; border-radius: 14px; }
body #buddypress .activity-list .activity-comments .rtmedia-item-title { display: none !important; }
/* zarovnanie: meno, bublina a „Odpovedať“ v jednej línii vedľa avataru (32 + 12 px) */
body #buddypress .activity-list .activity-comments li.comment-item { position: relative; padding-left: 44px !important; }
body #buddypress .activity-list .activity-comments li.comment-item > .acomment-avatar { position: absolute; left: 0; top: 8px; float: none !important; margin: 0 !important; }
body #buddypress .activity-list .activity-comments .acomment-meta { padding-left: 0 !important; }
body #buddypress .activity-list .activity-comments .acomment-content { max-width: 100%; }
body #buddypress .activity-list .activity-comments .activity-meta { margin: 4px 0 0 !important; padding-top: 0 !important; }
/* bublina bez dvojitého paddingu z príspevkov; prázdny zoznam médií skryť */
body #buddypress .activity-list .activity-comments .rtmedia-activity-text { padding: 0 !important; }
body #buddypress .activity-list .activity-comments .rtmedia-activity-text br:last-child { display: none; }
body #buddypress .activity-list .activity-comments .rtmedia-activity-container:not(:has(.rtmedia-list-item)) { margin: 0 !important; }
body #buddypress .activity-list .activity-comments .rtmedia-list:empty { display: none !important; }
/* rtMedia dáva zoznamu clear: both → bublina skočila pod avatar na celú šírku */
body #buddypress .activity-list .activity-comments .rtmedia-list { clear: none !important; }
/* komentár len s fotkou: bez sivej bubliny, len zaoblený náhľad */
body #buddypress .activity-list .activity-comments .acomment-content:not(:has(.rtmedia-activity-text)):has(.rtmedia-list-item) { background: none !important; padding: 0 !important; }
body #buddypress .activity-list .activity-comments .acomment-content:not(:has(.rtmedia-activity-text)) .rtmedia-activity-container { margin-top: 4px !important; }
/* „Odpovedať“ v komentári nemá triedu .button → ikona bez fontu dashicons (štvorček) */
body #buddypress .activity-list .activity-comments .acomment-reply,
body #buddypress .activity-list .activity-comments .acomment-delete { display: inline-flex; align-items: center; gap: 4px; padding: 0 !important; font-size: 13px; font-weight: 600; color: #65676b !important; text-decoration: none !important; }
body #buddypress .activity-list .activity-comments .acomment-reply::before,
body #buddypress .activity-list .activity-comments .acomment-delete::before { font-family: dashicons; font-size: 16px; line-height: 1; width: 16px; height: 16px; }
body #buddypress .activity-list .activity-comments .acomment-reply:hover { color: var(--kdf-teal) !important; }

@media (max-width: 767px) {
	body.directory.activity .kdf-community-wrap { padding: 16px 0 40px; }
	body #buddypress .activity-list .rtmedia-activity-container { margin: 10px -12px 0 !important; }
	body.directory.activity #buddypress .activity-list > li.activity-item { border-radius: 0 !important; }
}

/* ==========================================================================
   14) RESPONZIVITA - audit (ultrawide / desktop / tablet / mobil)
   ========================================================================== */

/* globálne poistky proti pretečeniu */
#buddypress img, #bbpress-forums img, .rtmedia-container img, #buddypress video, #buddypress iframe { max-width: 100%; height: auto; }
#buddypress, #bbpress-forums, .kdf-community-wrap { min-width: 0; overflow-wrap: anywhere; }
#buddypress pre, #bbpress-forums pre { overflow-x: auto; max-width: 100%; }
body #buddypress .activity-list .activity-meta { flex-wrap: wrap; }

/* ultrawide: obsahové kontajnery zastropované a vycentrované */
@media (min-width: 1600px) {
	body #Content .section_wrapper, body .content_wrapper > .sections_group .section_wrapper { max-width: 1440px; margin-left: auto; margin-right: auto; }
	.kdf-community-wrap { max-width: 1280px; }
	/* profil: širší pás pre galériu, hlavička ostáva kompaktná */
	body.bp-user #buddypress #item-body { max-width: 1200px; }
	.rtmedia-container ul.rtmedia-list, body #buddypress .rtmedia-container ul.rtmedia-list { grid-template-columns: repeat(4, 1fr) !important; }
	.kdf-gallery-wrap .rtmedia-list { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 2200px) {
	.rtmedia-container ul.rtmedia-list, body #buddypress .rtmedia-container ul.rtmedia-list { grid-template-columns: repeat(5, 1fr) !important; }
}
/* zeď ostáva čitateľná aj na ultrawide */
body.directory.activity .kdf-community-wrap { max-width: 800px !important; }

/* notebook / desktop 1025-1440: hlavička profilu bez zlomov */
@media (min-width: 1025px) and (max-width: 1440px) {
	body #buddypress #item-header-cover-image,
	body.bp-user #buddypress #item-header.users-header { grid-template-columns: 240px minmax(0, 1fr); }
	.kdf-profile-stats { gap: 28px; flex-wrap: wrap; }
	body #buddypress .kdf-profile-stats a { white-space: nowrap; }
	body.group-home #buddypress #item-body { grid-template-columns: minmax(0, 1fr) 300px !important; }
}

/* tablet 768-1024 */
@media (min-width: 768px) and (max-width: 1024px) {
	.kdf-profile-stats { gap: 24px; flex-wrap: wrap; }
	body #buddypress .kdf-profile-stats a { white-space: nowrap; }
	.rtmedia-container ul.rtmedia-list, body #buddypress .rtmedia-container ul.rtmedia-list { grid-template-columns: repeat(3, 1fr) !important; }
	#buddypress .rtmedia-container ul.rtmedia-album-list { grid-template-columns: repeat(2, 1fr) !important; }
	body #buddypress .activity-list .activity-meta .button,
	body #buddypress .generic-button a, body #buddypress .generic-button button,
	body #buddypress #object-nav li a { min-height: 44px; }
	body #buddypress .activity-list .activity-meta .button { min-width: 44px; justify-content: center; }
	body #buddypress #object-nav ul { flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* mobil do 767 */
@media (max-width: 767px) {
	html, body { overflow-x: hidden; }
	@supports (overflow-x: clip) { html, body { overflow-x: clip; } }

	/* hlavička profilu: avatar centrovaný nad textom */
	body #buddypress #item-header-cover-image { grid-template-columns: 1fr !important; justify-items: center; text-align: center; gap: 14px 0 !important; padding: 0 12px 24px !important; }
	/* profil člena: kompaktné rozloženie ako Instagram (stĺpce a poradie v css/kdf-mobile.css) */
	body.bp-user #buddypress #item-header.users-header { grid-template-columns: 86px 1fr !important; justify-items: stretch; text-align: left; gap: 0 20px !important; padding: 12px 16px 8px !important; }
	body #buddypress #item-header-content { justify-content: center; text-align: center !important; width: 100% !important; }
	body #buddypress #item-header-content .item-meta { align-items: center; text-align: center !important; }
	.kdf-profile-stats { justify-content: center; gap: 28px; width: 100%; }
	body #buddypress .kdf-profile-stats a { align-items: center; }
	.kdf-profile-bio, .kdf-profile-bio .kdf-profile-name { text-align: center !important; }
	.kdf-profile-bio p { margin: 0 auto !important; }
	body #buddypress #item-header-content .member-header-actions { justify-content: center; width: 100%; }

	/* záložky profilu: horizontálne posuvný pruh */
	body #buddypress #object-nav.main-navs { margin-left: -12px !important; margin-right: -12px !important; }
	body #buddypress #object-nav ul { flex-wrap: nowrap !important; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding: 0 12px !important; }
	body #buddypress #object-nav li { flex: 0 0 auto; scroll-snap-align: start; }
	body #buddypress .dir-navs ul, body #buddypress #subnav ul, body #buddypress .bp-subnavs ul { flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; scrollbar-width: none; }
	body #buddypress .dir-navs li, body #buddypress #subnav li, body #buddypress .bp-subnavs li { flex: 0 0 auto; }

	/* dotykové zóny min. 44 px */
	body #buddypress #object-nav li a, body #buddypress .dir-navs li a,
	body #buddypress #subnav li a, body #buddypress .bp-subnavs li a,
	body #buddypress .generic-button a, body #buddypress .generic-button button,
	body #buddypress a.button, body #buddypress button, body #buddypress input[type="submit"],
	body #buddypress .member-header-actions a, .kdf-edit-profile, .kdf-btn, .kdf-group-cta a,
	#bbpress-forums button, #bbpress-forums .button { min-height: 44px !important; }
	body #buddypress #subnav li a, body #buddypress .bp-subnavs li a { display: flex !important; align-items: center; }
	body #buddypress .activity-list .activity-meta .button { min-height: 44px !important; min-width: 44px; justify-content: center; }
	body #buddypress #whats-new-form #rtmedia-add-media-button-post-update { height: 44px !important; }
	body #buddypress input[type="text"], body #buddypress input[type="search"], body #buddypress input[type="email"],
	body #buddypress textarea, body #buddypress select, #bbpress-forums input[type="text"], #bbpress-forums textarea { font-size: 16px !important; } /* iOS bez zoomu */

	/* fluidný jeden stĺpec */
	.kdf-community-wrap { max-width: 100%; }
	body.group-home #buddypress #item-body { display: block !important; }
	#buddypress table { display: block; overflow-x: auto; }
	.rtmedia-container ul.rtmedia-list, body #buddypress .rtmedia-container ul.rtmedia-list { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 380px) {
	.rtmedia-container ul.rtmedia-list, body #buddypress .rtmedia-container ul.rtmedia-list { grid-template-columns: repeat(2, 1fr) !important; }
	.kdf-profile-stats { gap: 16px; }
}

/* ==========================================================================
   15) JEDNOTNÝ SYSTÉM TLAČIDIEL (Betheme, BuddyPress, bbPress, rtMedia)
   primárne = tyrkysová výplň, sekundárne = antracitový obrys,
   rovnaká výška, písmo, zaoblenie a hover (jemné stmavnutie). Bez tieňov/3D.
   ========================================================================== */
:root {
	--kdf-btn-h: 42px; --kdf-btn-px: 20px; --kdf-btn-r: 10px; --kdf-btn-fs: 14px;
	--kdf-teal-dark: #007c93; --kdf-orange-dark: #e9a23b;
}

/* --- základ pre všetky tlačidlá --- */
html body #buddypress input[type="submit"], html body #buddypress input[type="button"], html body #buddypress input[type="reset"],
html body #buddypress button[type="submit"]:not(.nouveau-search-submit),
html body #buddypress .generic-button a, html body #buddypress .generic-button button,
html body #buddypress a.button, html body #buddypress button.button,
html body #buddypress .member-header-actions a, html body #buddypress .member-header-actions button,
html body #buddypress .dir-navs li.create-button a, html body #buddypress #bp-browse-button,
html body #bbpress-forums button, html body #bbpress-forums .button, html body #bbpress-forums input[type="submit"],
html body .rtmedia-container button:not(.mfp-close):not(.rtm-tabs-btn), html body .rtmedia-container input[type="submit"], html body .rtm-load-more a,
html body #rtMedia-upload-button, html body .start-media-upload,
html body .kdf-btn, html body a.kdf-btn-primary, html body .kdf-edit-profile, html body .kdf-media-upload,
html body .kdf-group-cta .subscription-toggle, html body .kdf-login-box input[type="submit"] {
	display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 6px;
	min-height: var(--kdf-btn-h) !important; height: auto !important; padding: 0 var(--kdf-btn-px) !important; margin: 0;
	font-family: inherit !important; font-size: var(--kdf-btn-fs) !important; font-weight: 600 !important; line-height: 1.2 !important;
	letter-spacing: 0 !important; text-transform: none !important; text-decoration: none !important; text-shadow: none !important; white-space: nowrap;
	border-radius: var(--kdf-btn-r) !important; box-shadow: none !important; background-image: none !important; filter: none !important;
	transform: none !important; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease !important;
	/* sekundárny vzhľad ako predvolený */
	background-color: transparent !important; color: var(--kdf-dark) !important; border: 1.5px solid #d5d9db !important;
}
html body #buddypress .generic-button a:hover, html body #buddypress .generic-button button:hover,
html body #buddypress a.button:hover, html body #buddypress button.button:hover,
html body #buddypress input[type="button"]:hover, html body #buddypress input[type="reset"]:hover,
html body #buddypress .member-header-actions a:hover, html body #buddypress .member-header-actions button:hover,
html body #bbpress-forums .button:hover, html body .rtmedia-container button:not(.mfp-close):hover, html body .rtm-load-more a:hover,
html body .kdf-btn:hover, html body .kdf-edit-profile:hover, html body .kdf-media-upload:hover, html body .kdf-group-cta .subscription-toggle:hover {
	background-color: #f0f2f3 !important; border-color: var(--kdf-dark) !important; color: var(--kdf-dark) !important; transform: none !important;
}

/* --- primárne (CTA) --- */
html body #buddypress input[type="submit"], html body #buddypress button[type="submit"]:not(.nouveau-search-submit),
html body #buddypress #bp-browse-button, html body #buddypress .drag-drop-buttons input[type="button"],
html body #buddypress .dir-navs li.create-button a,
html body #buddypress .friendship-button.not_friends, html body #buddypress .generic-button .not_friends,
html body #buddypress .group-button.join-group, html body #buddypress .group-button.request-membership,
html body #buddypress .generic-button a.send-message, html body #buddypress .member-header-actions .send-message,
html body #bbpress-forums button[type="submit"], html body #bbpress-forums button.submit, html body #bbpress-forums input[type="submit"],
html body .rtmedia-container input[type="submit"], html body .rtmedia-container button[type="submit"], html body #rtMedia-upload-button, html body .start-media-upload,
html body .kdf-btn.kdf-btn-primary, html body a.kdf-btn-primary, html body .kdf-login-box input[type="submit"] {
	background-color: var(--kdf-teal) !important; border-color: var(--kdf-teal) !important; color: #fff !important;
}
html body #buddypress input[type="submit"]:hover, html body #buddypress button[type="submit"]:not(.nouveau-search-submit):hover,
html body #buddypress #bp-browse-button:hover, html body #buddypress .dir-navs li.create-button a:hover,
html body #buddypress .friendship-button.not_friends:hover, html body #buddypress .generic-button .not_friends:hover,
html body #buddypress .group-button.join-group:hover, html body #buddypress .group-button.request-membership:hover,
html body #buddypress .generic-button a.send-message:hover, html body #buddypress .member-header-actions .send-message:hover,
html body #bbpress-forums button[type="submit"]:hover, html body #bbpress-forums button.submit:hover, html body #bbpress-forums input[type="submit"]:hover,
html body .rtmedia-container input[type="submit"]:hover, html body #rtMedia-upload-button:hover, html body .start-media-upload:hover,
html body .kdf-btn.kdf-btn-primary:hover, html body a.kdf-btn-primary:hover, html body .kdf-login-box input[type="submit"]:hover {
	background-color: var(--kdf-teal-dark) !important; border-color: var(--kdf-teal-dark) !important; color: #fff !important;
}

/* --- akcent (oranžová) - len pre hlavnú výzvu na úvode --- */
html body .kdf-btn.kdf-btn-accent { background-color: var(--kdf-orange) !important; border-color: var(--kdf-orange) !important; color: var(--kdf-dark) !important; }
html body .kdf-btn.kdf-btn-accent:hover { background-color: var(--kdf-orange-dark) !important; border-color: var(--kdf-orange-dark) !important; }

/* --- stav fokus / disabled --- */
html body #buddypress :is(a.button, button, input[type="submit"], .generic-button a):focus-visible,
html body #bbpress-forums :is(button, .button):focus-visible, html body .kdf-btn:focus-visible {
	outline: 2px solid var(--kdf-orange) !important; outline-offset: 2px;
}
html body #buddypress :is(button, input[type="submit"]):disabled,
html body #bbpress-forums button:disabled { background-color: #e4e6eb !important; border-color: #e4e6eb !important; color: #9aa0a6 !important; cursor: not-allowed; }

/* --- celá šírka tam, kde to dáva zmysel --- */
html body .kdf-login-box input[type="submit"] { width: 100%; }
html body #buddypress .register-page #submit { min-width: 260px; }

/* --- výnimky: ikonové a pomocné ovládače ostávajú bez rámu --- */
html body #buddypress .activity-list .activity-meta .generic-button a,
html body #buddypress .activity-list .activity-meta .generic-button button,
html body #buddypress .activity-list .activity-meta a.button,
html body #buddypress .activity-list .activity-meta button.button,
html body #buddypress button.nouveau-search-submit,
html body #buddypress .wp-hide-pw,
html body #buddypress #whats-new-form #rtmedia-add-media-button-post-update,
html body #bbpress-forums .quicktags-toolbar input.ed_button,
html body #buddypress .kdf-profile-stats a {
	border: 0 !important; background-color: transparent !important; min-height: 0 !important;
}
html body #buddypress .activity-list .activity-meta .button { min-height: 36px !important; padding: 0 10px !important; color: #65676b !important; }
html body #buddypress .activity-list .activity-meta .button:hover { background-color: #f0f2f5 !important; }
html body #buddypress #whats-new-form #rtmedia-add-media-button-post-update { min-height: 40px !important; padding: 0 12px !important; border-radius: 999px !important; }
html body #buddypress #whats-new-form #rtmedia-add-media-button-post-update:hover { background-color: #f0f2f5 !important; }
html body #buddypress .wp-hide-pw { padding: 0 !important; width: 40px; }
html body #buddypress button.nouveau-search-submit { padding: 0 !important; }

@media (max-width: 767px) {
	:root { --kdf-btn-h: 44px; }
	html body #buddypress .activity-list .activity-meta .button { min-height: 44px !important; min-width: 44px; }
	html body #buddypress .register-page #submit { width: 100%; min-width: 0; }
}

/* oprava: clearfix ::before/::after v rtMedia mriežke zaberal prvú (prázdnu) bunku gridu */
.rtmedia-list::before, .rtmedia-list::after,
ul.rtmedia-list.clearfix::before, ul.rtmedia-list.clearfix::after { content: none !important; display: none !important; }

/* ==========================================================================
   16) rtMedia LIGHTBOX - pravý panel (autor, Páči sa mi, komentáre)
   ========================================================================== */
html body .rtm-single-meta, html body .rtmedia-single-meta { background: #fff !important; padding: 0 !important; display: flex; flex-direction: column; }
html body .rtm-single-meta .rtmedia-scroll { flex: 1 1 auto; overflow-y: auto; padding: 0 !important; }
html body .rtm-single-meta-contents { padding: 18px 20px 0 !important; }

/* autor */
html body .rtm-single-meta .rtm-user-meta-details { display: grid !important; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 0 36px 14px 0 !important; margin: 0 !important; border-bottom: 1px solid #eef0f1; }
html body .rtm-single-meta .rtm-user-avatar { grid-row: 1 / span 2; float: none !important; margin: 0 !important; width: 44px !important; }
html body .rtm-single-meta .rtm-user-avatar img { width: 44px !important; height: 44px !important; border-radius: 50% !important; border: 0 !important; box-shadow: 0 0 0 1px #e5e9ea !important; object-fit: cover; margin: 0 !important; }
html body .rtm-single-meta .username { float: none !important; margin: 0 !important; line-height: 1.2; }
html body .rtm-single-meta .username a { font-size: 15px; font-weight: 700; color: var(--kdf-dark) !important; text-decoration: none !important; }
html body .rtm-single-meta .rtm-time-privacy { float: none !important; margin: 2px 0 0 !important; font-size: 12px; color: #8e8e8e; display: flex; align-items: center; gap: 4px; }
html body .rtm-single-meta .rtm-time-privacy::before, html body .rtm-single-meta .rtm-time-privacy::after { display: none !important; }
html body .rtm-single-meta .rtm-time-privacy .dashicons { font-size: 13px; width: 13px; height: 13px; }
html body .rtm-single-meta .rtmedia-media-description:empty, html body .rtm-single-meta .rtmedia-actions-before-description:empty { display: none !important; }
html body .rtm-single-meta .rtmedia-media-description { padding: 12px 0 0 !important; font-size: 14px; line-height: 1.5; }

/* Páči sa mi / Komentovať - dve rovnaké ikonové tlačidlá */
html body .rtm-single-meta .rtmedia-actions-before-comments { display: flex !important; gap: 4px; margin: 0 !important; padding: 6px 0 !important; border-bottom: 1px solid #eef0f1; }
html body .rtm-single-meta .rtmedia-actions-before-comments::before, html body .rtm-single-meta .rtmedia-actions-before-comments::after { display: none !important; }
html body .rtm-single-meta .rtmedia-actions-before-comments > span { flex: 1 1 0; display: flex; margin: 0 !important; }
html body .rtm-single-meta .rtmedia-actions-before-comments form { display: flex; flex: 1; margin: 0 !important; }
html body .rtm-single-meta .rtmedia-actions-before-comments .rtmedia-like,
html body .rtm-single-meta .rtmedia-actions-before-comments .rtmedia-comment-link {
	flex: 1; display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 6px;
	min-height: 40px !important; padding: 0 12px !important; margin: 0 !important; border: 0 !important; border-radius: 8px !important;
	background: transparent !important; color: #65676b !important; font-size: 14px !important; font-weight: 600 !important; text-decoration: none !important; box-shadow: none !important;
}
html body .rtm-single-meta .rtmedia-actions-before-comments .rtmedia-like:hover,
html body .rtm-single-meta .rtmedia-actions-before-comments .rtmedia-comment-link:hover { background: #f0f2f5 !important; color: var(--kdf-dark) !important; }
html body .rtm-single-meta .rtmedia-like::before { content: "\f487"; font-family: dashicons; font-size: 18px; font-weight: 400; }
html body .rtm-single-meta .rtmedia-comment-link::before { content: "\f101"; font-family: dashicons; font-size: 18px; font-weight: 400; }
html body .rtm-single-meta .rtmedia-like.rtmedia-liked, html body .rtm-single-meta .rtmedia-like[title*="Nepáči"] { color: #e0245e !important; }
html body .rtm-single-meta .rtmedia-like-info { font-size: 13px; color: #65676b; padding: 8px 0 0; }

/* komentáre */
html body .rtm-single-meta .rtm-like-comments-info { padding: 0 !important; margin: 0 !important; background: none !important; }
html body .rtm-single-meta .rtm-comment-list { margin: 0 !important; padding: 10px 0 !important; list-style: none; }
html body .rtm-single-meta .rtm-comment-list > li { border: 0 !important; padding: 6px 0 !important; margin: 0 !important; background: none !important; }
html body .rtm-single-meta li.rtmedia-no-comments { background: none !important; padding: 18px 0 !important; text-align: center; color: #8e8e8e; font-size: 13px; }
html body .rtm-single-meta .rtm-comment-list .rtmedia-comment-content { background: #f0f2f5; border-radius: 14px; padding: 8px 12px; font-size: 14px; display: inline-block; }

/* formulár nového komentára - jeden riadok */
html body .rtm-media-single-comments { padding: 12px 20px 16px !important; border-top: 1px solid #eef0f1; background: #fff; margin: 0 !important; }
html body #rt_media_comment_form { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px; position: relative; margin: 0 !important; }
html body #rt_media_comment_form textarea#comment_content {
	order: 1; flex: 1 1 100%; width: 100% !important; min-height: 44px !important; height: 44px; max-height: 140px; margin: 0 !important; resize: none !important;
	padding: 11px 44px 11px 16px !important; border: 1px solid transparent !important; border-radius: 22px !important; background: #f0f2f5 !important; font-size: 14px !important; line-height: 1.4; box-shadow: none !important;
}
html body #rt_media_comment_form textarea#comment_content:focus { background: #fff !important; border-color: var(--kdf-teal) !important; outline: 0; }
html body #rt_media_comment_form .rt-emoji-picker { position: absolute; right: 12px; top: 10px; z-index: 2; line-height: 1; }
html body #rt_media_comment_form .rt-emoji-grid { z-index: 20 !important; border: 1px solid #e5e9ea !important; border-radius: 12px; padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
html body #rt_media_comment_form button.rtmedia-comment-media-upload {
	order: 2; width: 40px !important; min-width: 40px; height: 40px !important; min-height: 40px !important; padding: 0 !important; margin: 0 !important;
	border: 0 !important; border-radius: 50% !important; background: transparent !important; color: #45bd62 !important; box-shadow: none !important;
}
html body #rt_media_comment_form button.rtmedia-comment-media-upload:hover { background: #f0f2f5 !important; }
html body #rt_media_comment_form button.rtmedia-comment-media-upload .dashicons { font-size: 22px; width: 22px; height: 22px; color: #45bd62; }
html body #rt_media_comment_form input.rt_media_comment_submit { order: 3; margin: 0 0 0 auto !important; }
html body #rt_media_comment_form .rtmedia-uploader-div { order: 4; flex: 1 1 100%; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
html body #rt_media_comment_form input[id^="rtMedia-start-upload"] { display: none !important; }
html body #rt_media_comment_form .rtm-plupload-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 !important; padding: 0 !important; }
html body #rt_media_comment_form .rtm-plupload-list:empty { display: none; }

/* zatvorenie a tlačidlá nad fotkou */
html body .rtm-mfp-close.mfp-close {
	width: 36px !important; height: 36px !important; line-height: 36px !important; top: 8px !important; right: 8px !important; opacity: 1 !important;
	border-radius: 50%; background: #f0f2f5 !important; color: var(--kdf-dark) !important; font-family: dashicons !important; font-size: 22px !important; text-align: center; padding: 0 !important; z-index: 1050;
}
html body .rtm-mfp-close.mfp-close:hover { background: #e4e6eb !important; }
html body .rtm-mfp-close.mfp-close::before { content: "\f335" !important; font-family: dashicons !important; }
html body .rtmedia-single-container .rtmedia-actions-before-description .button,
html body .rtmedia-media .rtm-ltb-action-container .button,
html body .rtm-ltb-action-container a, html body .rtm-ltb-action-container button {
	min-height: 34px !important; padding: 0 12px !important; font-size: 13px !important; border: 0 !important;
	background: rgba(0,0,0,.45) !important; color: #fff !important; border-radius: 8px !important; backdrop-filter: blur(4px);
}
html body .rtm-ltb-action-container a:hover, html body .rtm-ltb-action-container button:hover { background: rgba(0,0,0,.65) !important; }

@media (max-width: 767px) {
	html body .rtm-single-meta-contents { padding: 14px 16px 0 !important; }
	html body .rtm-media-single-comments { padding: 10px 16px 14px !important; }
}
html body .rtm-single-meta .rtmedia-actions-before-comments form button.rtmedia-like.button:not(:hover) { background: transparent !important; background-color: transparent !important; }

/* --- Lightbox: rozloženie, responzivita, gestá (Magnific Popup od rtMedia + .kdf-lb) --- */
html.kdf-lb-open, html.kdf-lb-open body { overflow: hidden !important; overscroll-behavior: none; }
.mfp-bg { background: #0b0c0d !important; opacity: .94 !important; }
.mfp-wrap { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
html body .mfp-wrap .mfp-container { padding: 0 !important; max-width: none !important; width: 100% !important; left: 0 !important; } /* rtMedia dáva max-width: 84 % → bočné medzery */
html body .rtm-lightbox-container {
	display: flex !important; width: 100% !important; max-width: 1600px; height: 100vh; height: 100dvh; margin: 0 auto !important; padding: 0 !important; background: #000; overflow: hidden;
}
/* stĺpec s fotkou (obsahuje aj šípky a lištu akcií) */
html body .rtm-lightbox-container > .rtm-single-media {
	flex: 1 1 auto !important; min-width: 0; width: auto !important; height: 100% !important; float: none !important; margin: 0 !important; position: relative; display: flex !important; background: #000;
}
html body .rtm-lightbox-container .rtmedia-media {
	flex: 1 1 auto; min-width: 0; width: 100% !important; height: 100% !important; display: flex !important; align-items: center; justify-content: center; position: relative; background: #000; touch-action: pan-y pinch-zoom;
}
html body .rtm-lightbox-container .rtmedia-media img {
	max-width: 100% !important; max-height: 100% !important; width: auto !important; height: auto !important; object-fit: contain; display: block; margin: 0 auto;
	user-select: none; -webkit-user-drag: none; transition: transform .2s ease, opacity .2s ease;
}
@media (min-width: 1024px) {
	html body .rtm-lightbox-container .rtmedia-media { padding: 0 72px !important; box-sizing: border-box; } /* šípky (12 + 48 px) mimo fotky */
}
html body .rtm-lightbox-container > .rtm-single-meta { flex: 0 0 360px !important; width: 360px !important; height: 100%; float: none !important; }
/* zatvorenie: min. 44×44, mimo výrezu */
html body .rtm-mfp-close.mfp-close, html body .mfp-wrap .mfp-close {
	width: 44px !important; height: 44px !important; line-height: 44px !important;
	top: calc(8px + env(safe-area-inset-top, 0px)) !important; right: calc(8px + env(safe-area-inset-right, 0px)) !important;
}
/* šípky: v stĺpci s fotkou, polopriehľadné kruhy */
html body .mfp-wrap .mfp-arrow {
	top: 50% !important; width: 48px !important; height: 48px !important; margin-top: -24px !important; border-radius: 50%; opacity: 1 !important;
	background: rgba(0,0,0,.45) !important; backdrop-filter: blur(4px); transform: none !important; display: flex; align-items: center; justify-content: center;
}
html body .mfp-wrap .mfp-arrow::before { display: none !important; }
html body .mfp-wrap .mfp-arrow::after { margin: 0 !important; border: 0 !important; position: static !important; width: 12px !important; height: 12px !important; border-top: 3px solid #fff !important; border-left: 3px solid #fff !important; opacity: 1 !important; }
html body .mfp-wrap .mfp-arrow-left { left: calc(12px + env(safe-area-inset-left, 0px)) !important; }
html body .mfp-wrap .mfp-arrow-left::after { transform: translateX(2px) rotate(-45deg); }
html body .mfp-wrap .mfp-arrow-right { right: 12px !important; left: auto !important; }
html body .mfp-wrap .mfp-arrow-right::after { transform: translateX(-2px) rotate(135deg); }
html body .mfp-wrap .mfp-arrow:hover { background: rgba(0,0,0,.7) !important; }

@media (min-width: 2560px) {
	html body .rtm-lightbox-container { max-width: 2200px; }
	html body .rtm-lightbox-container > .rtm-single-meta { flex-basis: 420px !important; width: 420px !important; }
}
@media (max-width: 1366px) {
	html body .rtm-lightbox-container > .rtm-single-meta { flex-basis: 320px !important; width: 320px !important; }
}
/* tablet + mobil: fotka hore cez celú šírku, panel pod ňou (scroll vo wrape) */
@media (max-width: 1023px) {
	html body .rtm-lightbox-container { flex-direction: column; height: auto; min-height: 100dvh; max-width: none; overflow: visible; }
	html body .rtm-lightbox-container > .rtm-single-media { flex: 0 0 auto !important; width: 100% !important; height: 72vh !important; height: 72dvh !important; padding-top: env(safe-area-inset-top, 0px); box-sizing: border-box; }
	html body .rtm-lightbox-container > .rtm-single-meta { flex: 1 0 auto !important; width: 100% !important; height: auto; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px) !important; }
	html body .rtm-single-meta .rtmedia-scroll { overflow: visible; }
	/* lišta akcií (názov, Upraviť/Zmazať/Páči sa mi) pod fotkou, nie vedľa nej */
	html body .rtm-lightbox-container > .rtm-single-media { flex-direction: column !important; }
	html body .rtm-lightbox-container .rtmedia-media { flex: 1 1 auto !important; min-height: 0; height: auto !important; }
	html body .rtm-lightbox-container .rtm-ltb-action-container { position: static !important; flex: 0 0 auto; width: 100% !important; display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px !important; box-sizing: border-box; background: #000; }
	html body .rtm-lightbox-container .rtm-ltb-action-container .rtm-ltb-title { flex: 1 1 100%; float: none !important; color: #ddd; }
	html body .rtm-lightbox-container .rtm-ltb-action-container .rtm-item-actions { float: none !important; display: flex; flex-wrap: wrap; gap: 6px; }
	html body .mfp-wrap .mfp-arrow { position: absolute !important; top: calc(50% - 50px) !important; } /* stred fotky nad lištou */
	html body .mfp-wrap .mfp-arrow-right { right: calc(12px + env(safe-area-inset-right, 0px)) !important; }
	html body .rtm-mfp-close.mfp-close, html body .mfp-wrap .mfp-close { position: fixed !important; background: rgba(0,0,0,.55) !important; color: #fff !important; }
}
@media (max-width: 767px) {
	html body .rtm-lightbox-container > .rtm-single-media { height: 64vh !important; height: 64dvh !important; }
	html body .mfp-wrap .mfp-arrow { width: 40px !important; height: 40px !important; margin-top: -20px !important; background: rgba(0,0,0,.35) !important; }
	html body .mfp-wrap .mfp-arrow-left { left: calc(6px + env(safe-area-inset-left, 0px)) !important; }
	html body .mfp-wrap .mfp-arrow-right { right: calc(6px + env(safe-area-inset-right, 0px)) !important; }
}
/* tablet + mobil: šípky na strede fotky - referencia je oblasť fotky (nie celý wrap), korekcia = (horný odstup 48px - lišta akcií ~103px) / 2 */
@media (max-width: 1023px) {
	html body .rtm-lightbox-container > .rtm-single-media { position: relative !important; }
	/* --kdf-arrow-top = presný stred fotky z kdf-mobile.js; calc je záloha bez JS */
	html body .mfp-wrap .mfp-arrow { top: var(--kdf-arrow-top, calc(50% - 28px - 20px)) !important; margin-top: 0 !important; } /* -20px = polovica 40px šípky (transform prepisuje magnific) */
}
@media (hover: none) { html body .mfp-wrap .mfp-arrow { opacity: .85 !important; } }

/* vlastný jednoduchý lightbox (fotky v komentároch udalostí a pod.) */
.kdf-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(11,12,13,.96); display: flex; align-items: center; justify-content: center; overscroll-behavior: contain; touch-action: none; animation: kdfLbIn .18s ease; }
.kdf-lb[hidden] { display: none; }
.kdf-lb img { max-width: 100vw; max-height: 100vh; max-height: 100dvh; object-fit: contain; transition: transform .2s ease, opacity .2s ease; user-select: none; -webkit-user-drag: none; }
.kdf-lb-close { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.kdf-lb-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes kdfLbIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .kdf-lb, .kdf-lb img, .rtm-lightbox-container .rtmedia-media img { animation: none; transition: none; } }

/* ==========================================================================
   20) ZEĎ - TROJSTĹPCOVÝ LAYOUT (ľavá navigácia | zeď | komunita)
   ========================================================================== */
body.kdf-has-feed .kdf-community-wrap { max-width: none !important; padding: 0 !important; }
body.kdf-has-feed #buddypress { max-width: none !important; }
body.kdf-has-feed .section_wrapper { max-width: 1440px !important; }
body.kdf-has-feed #Content { background: #f0f2f5; }
body.kdf-has-feed .sidebar, body.kdf-has-feed .four.columns.sidebar { display: none !important; }
body.kdf-has-feed .sections_group { width: 100% !important; }
body.kdf-has-feed #bbpress-forums { margin: 0 !important; }
body.kdf-has-feed.bp-user #Content { padding-top: 0 !important; }

/* rtMedia nastavuje body.media.buddypress overflow-y:auto a vytvori dalsi
   scroll kontajner. Panely sa maju ukotvit k oknu ako na nastenke. */
html body.kdf-has-feed.bp-user.media.buddypress { overflow-y: visible; }

body.kdf-has-feed.bp-user #buddypress #item-header,
body.kdf-has-feed.bp-user #buddypress #item-header-cover-image,
body.kdf-has-feed.bp-user #buddypress #item-body { max-width: none; }
.kdf-side-nav a.is-current { background: #e4e6e9; }

.kdf-feed {
	display: grid;
	grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) minmax(220px, 300px);
	justify-content: space-between;
	gap: 32px;
	padding: 24px 16px 60px;
	align-items: start;
}
.kdf-feed-main { min-width: 0; }
.kdf-feed-left,
.kdf-feed-right { position: sticky; top: var(--kdf-sticky-top, 90px); max-height: calc(100vh - var(--kdf-sticky-top, 90px) - 20px); overflow-y: auto; scrollbar-width: thin; }

/* ľavá navigácia */
.kdf-side-nav { display: flex; flex-direction: column; gap: 2px; }
.kdf-side-nav a,
.kdf-side-list a {
	display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px;
	color: var(--kdf-dark) !important; font-weight: 600; font-size: 15px; text-decoration: none !important; transition: background .15s;
}
.kdf-side-nav a:hover,
.kdf-side-list a:hover { background: #e4e6e9; }
.kdf-side-nav img.avatar { width: 36px !important; height: 36px !important; border-radius: 50% !important; border: 0 !important; object-fit: cover; margin: 0 !important; }
.kdf-ico {
	flex: 0 0 36px; width: 36px !important; height: 36px !important; border-radius: 50%;
	display: grid !important; place-items: center; font-size: 20px !important; line-height: 1 !important; color: #fff;
}
.kdf-ico::before { width: 20px; height: 20px; }
.kdf-ico-blue   { background: #1b74e4; }
.kdf-ico-teal   { background: var(--kdf-teal); }
.kdf-ico-orange { background: var(--kdf-orange); }
.kdf-ico-purple { background: #8a5cf6; }
.kdf-ico-red    { background: #e0245e; }
.kdf-ico-green  { background: #31a24c; }
.kdf-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kdf-badge { background: #e41e3f; color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 8px; line-height: 1.4; }

/* pravý panel */
.kdf-side-block { margin: 0 0 22px; padding: 0 0 18px; border-bottom: 1px solid #dadde1; }
.kdf-side-block:last-child { border-bottom: 0; }
.kdf-side-head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.kdf-side-head a { font-size: 13px; color: var(--kdf-teal) !important; text-decoration: none !important; }
.kdf-side-title { font-size: 16px !important; font-weight: 600 !important; color: #65676b !important; margin: 0 0 8px !important; padding: 0 10px; }
.kdf-side-head .kdf-side-title { padding: 0; }
.kdf-side-list { list-style: none; margin: 0 !important; padding: 0 !important; }
.kdf-side-list li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
.kdf-side-list a { font-weight: 500; font-size: 14px; }
.kdf-side-list .kdf-ico { flex-basis: 32px; width: 32px !important; height: 32px !important; font-size: 17px !important; }
.kdf-side-list small { display: block; font-size: 12px; font-weight: 400; color: #65676b; }
.kdf-av { position: relative; flex: 0 0 32px; width: 32px; height: 32px; }
.kdf-av img.avatar { width: 32px !important; height: 32px !important; border-radius: 50% !important; border: 0 !important; box-shadow: none !important; margin: 0 !important; object-fit: cover; display: block; }
.kdf-av-square img.avatar { border-radius: 8px !important; }
.kdf-av.is-online::after {
	content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px;
	border-radius: 50%; background: #31a24c; border: 2px solid #f0f2f5;
}
.kdf-side-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 10px; }
.kdf-side-photos a { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; }
.kdf-side-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.kdf-side-photos a:hover img { transform: scale(1.05); }

/* widgety vložené adminom (BP widgety) - zjednotený vzhľad */
.kdf-feed aside .widget { background: none; border: 0; box-shadow: none; }
.kdf-feed aside .widget ul { list-style: none; margin: 0; padding: 0; }
.kdf-feed aside .widget .avatar-block { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px; }
.kdf-feed aside .widget img.avatar { border: 0 !important; border-radius: 50% !important; }

/* položky hlavného menu len pre mobil */
.kdf-mobile-only { display: none !important; }

/* tablet: ľavý panel len ikony, pravý pod zeďou */
@media (max-width: 1100px) {
	.kdf-feed { grid-template-columns: 64px minmax(0, 1fr); gap: 24px; }
	.kdf-feed-left .kdf-label, .kdf-feed-left .kdf-side-title { display: none; }
	.kdf-feed-left .kdf-side-nav a { justify-content: center; padding: 8px; position: relative; }
	.kdf-feed-left .kdf-badge { position: absolute; top: 2px; right: 2px; font-size: 10px; padding: 0 5px; }
	.kdf-feed-right { grid-column: 2; position: static; max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 24px; }
	.kdf-feed-right .kdf-side-block { border-bottom: 0; }
}

/* mobil: len stredný stĺpec, navigácia v hlavnom menu */
@media (max-width: 767px) {
	.kdf-feed { display: block; padding: 12px 0 40px; }
	.kdf-feed-left, .kdf-feed-right { display: none; }
	.kdf-mobile-only { display: block !important; }
}

/* ==========================================================================
   21) FORMULÁR "ČO JE NOVÉ" - rozbalený stav v rovnakom vizuáli ako zbalený
   (platí na zdi, v skupinách aj na profile)
   ========================================================================== */
html body #buddypress #whats-new-form { display: flex !important; flex-wrap: wrap; gap: 12px 12px; }
html body #buddypress #whats-new-form #whats-new-content { flex: 1 1 0; }

/* textové pole - zbalené aj rozbalené rovnaká sivá "bublina" */
html body #buddypress #whats-new-form #whats-new {
	width: 100% !important; min-height: 44px; padding: 11px 18px !important; margin: 0 !important;
	border: 0 !important; border-radius: 22px !important; background: #f0f2f5 !important; box-shadow: none !important;
	font-size: 15px !important; line-height: 1.45 !important; color: var(--kdf-dark) !important; resize: none; transition: border-radius .15s, min-height .15s;
}
html body #buddypress #whats-new-form.activity-form-expanded #whats-new,
html body #buddypress #whats-new-form.activity-form-expanded #whats-new:focus {
	min-height: 110px; border-radius: 16px !important; background: #f0f2f5 !important; box-shadow: none !important; outline: 0;
}
html body #buddypress #whats-new-form.activity-form-expanded #whats-new:focus { box-shadow: 0 0 0 2px rgba(0, 151, 178, .35) !important; }

/* lišta "Pridať k príspevku": popis | Fotka | súkromie - v jednom riadku */
html body #buddypress #whats-new-form .rtmedia-uploader-div {
	flex: 1 1 100%; margin: 0 !important; padding: 8px 10px 8px 16px !important;
	border: 1px solid #e4e6eb !important; border-radius: 12px !important; background: #fff !important; box-shadow: none !important;
}
html body #buddypress #whats-new-form .rtmedia-plupload-container {
	display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important;
}
html body #buddypress #whats-new-form #rtmedia-action-update { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 0 !important; }
html body #buddypress #whats-new-form #rtmedia-action-update::before { font-size: 14px !important; font-weight: 600; }
html body #buddypress #whats-new-form #rtmedia-add-media-button-post-update { min-height: 36px !important; height: 36px !important; margin: 0 !important; }
html body #buddypress #whats-new-form .rtm-upload-button-wrapper { align-self: center; }
html body #buddypress #whats-new-form #rtSelectPrivacy {
	margin: 0 0 0 auto !important; width: auto !important; max-width: 230px; height: 36px !important; padding: 0 32px 0 14px !important;
	border: 0 !important; border-radius: 999px !important; background: #f0f2f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2365676b'%3E%3Cpath d='M5 7l5 6 5-6z'/%3E%3C/svg%3E") right 12px center / 12px no-repeat !important;
	font-size: 13px !important; color: var(--kdf-dark) !important; appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis;
}
html body #buddypress #whats-new-form .rtmedia-plupload-notice { flex: 1 1 100%; }
html body #buddypress #whats-new-form #rtmedia_uploader_filelist:empty { display: none !important; }
/* "Nahrať" sa zobrazí až keď sú vybrané súbory */
html body #buddypress #whats-new-form:not(:has(#rtmedia_uploader_filelist li)) #rtMedia-start-upload { display: none !important; }
html body #buddypress #whats-new-form #rtMedia-start-upload { height: 36px !important; margin: 8px 0 0 !important; border-radius: 999px !important; font-size: 14px !important; }

/* spodný riadok: "Uverejniť v" vľavo, tlačidlá vpravo */
html body #buddypress #whats-new-form #whats-new-options {
	flex: 1 1 100%; display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
	margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
}
html body #buddypress #whats-new-form #whats-new-post-in-box { flex: 0 1 auto !important; margin: 0 !important; padding: 0 !important; }
html body #buddypress #whats-new-form #whats-new-post-in-box select {
	height: 40px !important; padding: 0 32px 0 14px !important; border: 0 !important; border-radius: 999px !important;
	background: #f0f2f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2365676b'%3E%3Cpath d='M5 7l5 6 5-6z'/%3E%3C/svg%3E") right 12px center / 12px no-repeat !important;
	font-size: 13px !important; color: var(--kdf-dark) !important; appearance: none; -webkit-appearance: none; cursor: pointer;
}
html body #buddypress #whats-new-form #whats-new-submit { display: flex !important; flex-direction: row-reverse; gap: 8px; margin: 0 0 0 auto !important; flex: 0 0 auto !important; }
html body #buddypress #whats-new-form #aw-whats-new-submit,
html body #buddypress #whats-new-form #aw-whats-new-reset {
	flex: 0 0 auto !important; height: 40px !important; min-height: 40px; padding: 0 24px !important; margin: 0 !important;
	border: 0 !important; border-radius: 999px !important; box-shadow: none !important; font-size: 14px !important; font-weight: 600 !important; cursor: pointer;
}
html body #buddypress #whats-new-form #aw-whats-new-submit { background: var(--kdf-teal) !important; color: #fff !important; }
html body #buddypress #whats-new-form #aw-whats-new-submit:hover { background: #007c93 !important; }
html body #buddypress #whats-new-form #aw-whats-new-submit:disabled { background: #e4e6eb !important; color: #bcc0c4 !important; cursor: default; }
html body #buddypress #whats-new-form #aw-whats-new-reset { background: transparent !important; color: #65676b !important; }
html body #buddypress #whats-new-form #aw-whats-new-reset:hover { background: #f0f2f5 !important; color: var(--kdf-dark) !important; }

@media (max-width: 767px) {
	html body #buddypress #whats-new-form #rtSelectPrivacy { margin-left: 0 !important; max-width: 100%; }
	html body #buddypress #whats-new-form #whats-new-post-in-box,
	html body #buddypress #whats-new-form #whats-new-post-in-box select { width: 100% !important; flex: 1 1 100% !important; }
	html body #buddypress #whats-new-form #whats-new-submit { width: 100%; }
	html body #buddypress #whats-new-form #aw-whats-new-submit { flex: 1 1 auto !important; }
}
/* ==========================================================================
   22) Odsadenie obsahu + aktívna položka menu
   (Subheader je vypnutý v Theme Options, child téma ho neskrýva)
   ========================================================================== */
html body:not(.page) #Content { padding-top: 30px !important; } /* stránky z BeBuildera riadi odsadenie samy */
html body.home #Content { padding-top: 0 !important; }

.kdf-side-nav a.is-current { background: #e4e6e9; position: relative; }
.kdf-side-nav a.is-current .kdf-label { color: var(--kdf-teal); }
.kdf-side-nav a.is-current::before {
	content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--kdf-teal);
}
@media (max-width: 1100px) {
	.kdf-feed-left .kdf-side-nav a.is-current::before { left: -6px; }
}
/* ==========================================================================
   23) DETAIL SKUPINY v trojstĺpcovom layoute (Informácie sú v pravom paneli)
   ========================================================================== */
body.kdf-has-feed.single-item.groups #buddypress #item-body,
body.kdf-has-feed.group-home #buddypress #item-body { display: block !important; max-width: none !important; }
.kdf-feed-right .kdf-group-aside .kdf-card { box-shadow: none; padding: 0 10px 8px; background: none; border-radius: 0; margin: 0 0 22px; border-bottom: 1px solid #dadde1; }
.kdf-feed-right .kdf-group-aside .kdf-card h3 { font-size: 16px !important; font-weight: 600 !important; color: #65676b !important; }
.kdf-feed-right .kdf-card-head { display: flex; justify-content: space-between; align-items: center; }
.kdf-feed-right .kdf-card-head a { font-size: 13px; color: var(--kdf-teal) !important; }
.kdf-feed-right .kdf-media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.kdf-feed-right .kdf-media-grid a { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; display: block; }
.kdf-feed-right .kdf-media-grid img { width: 100%; height: 100%; object-fit: cover; }
/* ==========================================================================
   24) PLNÁ ŠÍRKA trojstĺpcového layoutu (panely pri okrajoch, stred sa roztiahne)
   ========================================================================== */
html body.kdf-has-feed .section_wrapper,
html body.kdf-has-feed .the_content_wrapper {
	max-width: none !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important;
}
html body.kdf-has-feed .kdf-feed {
	width: 100%; box-sizing: border-box;
	grid-template-columns: minmax(220px, 20%) minmax(0, 1fr) minmax(240px, 20%);
	justify-content: stretch; gap: clamp(20px, 2vw, 40px);
	padding: 24px clamp(16px, 2vw, 40px) 60px;
}
/* panely: obsah drží pri vonkajšom okraji, nenaťahuje sa do absurdnej šírky */
html body.kdf-has-feed .kdf-feed-left > * { max-width: 340px; }
html body.kdf-has-feed .kdf-feed-right > * { max-width: 380px; margin-left: auto; }

/* čitateľnosť v širokom strede: prúd príspevkov max. ~860px na strede stĺpca,
   adresáre (členovia, skupiny, fotky, profil) využijú celú šírku */
body.kdf-has-feed.directory.activity .kdf-feed-main #buddypress,
body.kdf-has-feed.bp-user.activity .kdf-feed-main #item-body,
body.kdf-has-feed.group-home .kdf-feed-main #item-body { max-width: 860px !important; margin-left: auto !important; margin-right: auto !important; }
/* fórum na celú šírku stredného stĺpca ako Udalosti */
html body.kdf-has-feed.bbpress .kdf-feed-main #bbpress-forums { max-width: none !important; margin: 0 !important; }
html body.kdf-has-feed #bbpress-forums > .kdf-community-wrap { width: 100% !important; max-width: none !important; align-self: stretch !important; margin-left: 0 !important; margin-right: 0 !important; }
body.kdf-has-feed .activity-list .activity-inner p { max-width: 70ch; }

/* jednotná horná medzera na všetkých stránkach sociálnej siete (nástenka, členovia, skupiny,
   fórum, udalosti, profil, detail príspevku...). Betheme dáva #Content raz 30px, raz 0 -
   medzeru drží len .kdf-feed: na desktope stĺpce začínajú na 90px (= sticky top bočných panelov). */
html body.kdf-has-feed #Content { padding-top: 0 !important; }
html body.kdf-has-feed .kdf-feed-main > :first-child { margin-top: 0 !important; }
@media (min-width: 768px) {
	html body.kdf-has-feed .kdf-feed { padding-top: 80px !important; }
}
@media (max-width: 767px) {
	html body.kdf-has-feed .kdf-feed { padding-top: 16px !important; }
}

/* tablet: späť na ikonový ľavý panel (prepíše plnú šírku vyššie) */
@media (max-width: 1100px) {
	html body.kdf-has-feed .kdf-feed { grid-template-columns: 64px minmax(0, 1fr); }
	html body.kdf-has-feed .kdf-feed-right > * { margin-left: 0; max-width: none; }
}
/* mobil: jeden stĺpec */
@media (max-width: 767px) {
	html body.kdf-has-feed .kdf-feed { display: block; padding: 12px 12px 40px; }
}
/* ==========================================================================
   25) PROFIL: lokálne záložky ako Instagram (oddelené od globálneho menu vľavo)
   ========================================================================== */
/* ľavý panel = globálna navigácia, jemne oddelená od stredu */
@media (min-width: 1101px) {
	html body.kdf-has-feed .kdf-feed-left { padding-right: clamp(12px, 1.5vw, 24px); border-right: 1px solid #dadde1; }
}

/* hlavné záložky profilu: text + ikona, bez pozadia, aktívna = tmavá linka hore + tučné */
html body.bp-user #buddypress #object-nav.main-navs {
	display: block !important; margin: 0 0 0 !important; padding: 0 !important;
	border-top: 1px solid #dadde1 !important; border-bottom: 0 !important; background: none !important;
}
html body.bp-user #buddypress #object-nav ul { display: flex !important; justify-content: safe center; gap: 0 36px; margin: -1px 0 0 !important; }
html body.bp-user #buddypress #object-nav li a {
	display: inline-flex !important; align-items: center; gap: 6px; padding: 16px 0 !important;
	background: none !important; border: 0 !important; border-top: 1px solid transparent !important; border-radius: 0 !important;
	font-size: 12px !important; font-weight: 500 !important; letter-spacing: .08em; text-transform: uppercase; color: #8e8e8e !important;
}
html body.bp-user #buddypress #object-nav li a:hover { color: var(--kdf-dark) !important; background: none !important; }
html body.bp-user #buddypress #object-nav li.current a,
html body.bp-user #buddypress #object-nav li.selected a { color: var(--kdf-dark) !important; font-weight: 700 !important; border-top-color: var(--kdf-dark) !important; }
/* Nastavenia nie sú záložka obsahu - sú pri tlačidle Upraviť profil */
html body.bp-user #buddypress #object-nav #settings-personal-li { display: none !important; }

/* podzáložky (Osobné, Zmienky, Obľúbené...): čistý text, aktívna podčiarknutá */
html body.bp-user #buddypress #subnav.bp-navs,
html body.bp-user #buddypress .bp-subnavs {
	margin: 0 0 8px !important; padding: 0 !important; border-bottom: 1px solid #dadde1 !important; background: none !important;
}
html body.bp-user #buddypress #subnav ul,
html body.bp-user #buddypress .bp-subnavs ul { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 0 26px; }
html body.bp-user #buddypress #subnav li a,
html body.bp-user #buddypress .bp-subnavs li a {
	display: block !important; padding: 12px 0 !important; margin-bottom: -1px; background: none !important; border: 0 !important;
	border-bottom: 2px solid transparent !important; border-radius: 0 !important; color: #65676b !important; font-size: 14px !important; font-weight: 500 !important;
}
html body.bp-user #buddypress #subnav li a:hover,
html body.bp-user #buddypress .bp-subnavs li a:hover { color: var(--kdf-dark) !important; background: none !important; }
html body.bp-user #buddypress #subnav li.current a,
html body.bp-user #buddypress #subnav li.selected a,
html body.bp-user #buddypress .bp-subnavs li.current a,
html body.bp-user #buddypress .bp-subnavs li.selected a { background: none !important; color: var(--kdf-dark) !important; font-weight: 700 !important; border-bottom-color: var(--kdf-dark) !important; }

/* tlačidlá Upraviť profil + Nastavenia účtu pri štatistikách */
.kdf-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.kdf-profile-bio .kdf-profile-actions .kdf-edit-profile { margin-top: 0; }
.kdf-settings-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }

/* režim úprav: bez záložiek profilu, len formulár a návrat */
html body.kdf-edit-mode #buddypress #object-nav.main-navs { display: none !important; }
html body.kdf-edit-mode #buddypress #item-header { display: none !important; }
.kdf-back-profile {
	display: inline-flex; align-items: center; gap: 4px; margin: 0 0 18px; padding: 8px 14px 8px 8px; border-radius: 999px;
	color: var(--kdf-dark) !important; font-weight: 600; font-size: 14px; text-decoration: none !important; background: #e4e6e9;
}
.kdf-back-profile:hover { background: #d8dadf; }

@media (max-width: 767px) {
	html body.bp-user #buddypress #object-nav ul { justify-content: flex-start; gap: 0 22px; padding: 0 4px !important; }
	html body.bp-user #buddypress #object-nav li a .kdf-label { display: none; }
	html body.bp-user #buddypress #subnav ul, html body.bp-user #buddypress .bp-subnavs ul { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
	html body.bp-user #buddypress #subnav li a, html body.bp-user #buddypress .bp-subnavs li a { white-space: nowrap; }
}
/* ==========================================================================
   26) QA OPRAVY - UX a dotykové ovládanie
   ========================================================================== */
/* úvodná galéria je prezentačná: bez tlačidiel Upraviť/Zmazať (správa fotiek je v profile) */
.kdf-gallery-wrap .rtmedia-gallery-item-actions,
.kdf-gallery-wrap .rtmedia-list-item-footer,
.kdf-gallery-wrap a[href$="/edit"],
.kdf-gallery-wrap .rtmedia-delete-media { display: none !important; }

/* ľavý panel pre neprihláseného: výzva na prihlásenie / registráciu */
.kdf-side-cta { display: flex; flex-direction: column; gap: 8px; margin: 18px 10px 0; padding-top: 18px; border-top: 1px solid #dadde1; }
.kdf-side-nav .kdf-side-cta a.kdf-btn { justify-content: center; padding: 11px 18px; font-size: 14px; }
.kdf-side-nav .kdf-side-cta a.kdf-btn-primary { color: #fff !important; }
.kdf-side-nav .kdf-side-cta a.kdf-btn:hover { background: inherit; }
.kdf-side-nav .kdf-side-cta a.kdf-btn-primary:hover { background: var(--kdf-orange); }
@media (max-width: 1100px) and (min-width: 768px) { .kdf-side-cta { display: none; } }

/* tablet + mobil: dotykové ciele min. 44 px, nič nepreteká */
@media (max-width: 1100px) {
	body #buddypress .dir-search button.nouveau-search-submit { width: 44px !important; height: 44px !important; top: 0; left: 0; }
	body #buddypress .dir-search input[type="search"] { padding-left: 46px !important; }
	body #buddypress .feed a, body #buddypress li.feed a { display: inline-flex !important; align-items: center; min-height: 44px; min-width: 44px; }
	.kdf-profile-stats a { min-height: 44px; align-items: center !important; }
	#bbpress-forums li.bbp-forum-info a.bbp-forum-title,
	#bbpress-forums li.bbp-topic-title a.bbp-topic-permalink,
	body #buddypress .item-list .list-title a { display: inline-block; padding: 10px 0; }
	.kdf-login-links a { display: inline-block; padding: 12px 4px; }
	.kdf-login-box .login-remember label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
	.kdf-login-box .login-remember input[type="checkbox"] { width: 20px; height: 20px; }
	body #buddypress .kdf-group-meta a, .kdf-group-faces a { display: inline-block; padding: 6px 0; }
}
@media (max-width: 767px) {
	/* záložky adresárov (Všetky skupiny / Moje / Vytvoriť) sa posúvajú do strany */
	body #buddypress .dir-navs ul { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; gap: 22px; padding: 0 4px !important; scrollbar-width: none; }
	body #buddypress .dir-navs ul::-webkit-scrollbar { display: none; }
	body #buddypress .dir-navs li a { white-space: nowrap; min-height: 44px; display: flex !important; align-items: center; }
	/* záložky profilu */
	html body.bp-user #buddypress #object-nav li a { min-height: 44px; }
	html body.bp-user #buddypress #subnav li a, html body.bp-user #buddypress .bp-subnavs li a { min-height: 44px; display: flex !important; align-items: center; }
	/* formuláre na celú šírku, bez pretečenia */
	.kdf-login-box { margin: 16px 0 40px; padding: 28px 20px; max-width: none; }
	.kdf-login-box input, body #buddypress #whats-new-form textarea, body #buddypress input, body #buddypress select, #bbpress-forums input, #bbpress-forums textarea { max-width: 100% !important; box-sizing: border-box; }
	#bbpress-forums .quicktags-toolbar input.button { min-height: 40px; min-width: 40px; }
	.kdf-profile-actions { width: 100%; }
	.kdf-profile-actions .kdf-edit-profile { flex: 1; min-height: 44px; }
	.kdf-back-profile { min-height: 44px; }
}
/* ==========================================================================
   27) POISTKA: skryté texty pre čítačky obrazovky (aj keď by sa štýl BuddyPress nenačítal)
   ========================================================================== */
.bp-screen-reader-text, .screen-reader-text, #buddypress .bp-screen-reader-text {
	position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important;
	overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; border: 0 !important; white-space: nowrap !important;
}
/* ==========================================================================
   28) "Čítať ďalej" v príspevkoch - rovnaké tlačidlo ako ostatné sekundárne akcie
   ========================================================================== */
html body #buddypress .activity-read-more,
html body #buddypress .activity-read-more span { display: block; margin: 10px 0 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
html body #buddypress .activity-read-more a {
	display: inline-flex !important; align-items: center; gap: 4px; min-height: 36px; padding: 0 16px !important; margin: 0 !important;
	border: 0 !important; border-radius: 999px !important; background: #f0f2f5 !important; box-shadow: none !important;
	color: var(--kdf-dark) !important; font-size: 14px !important; font-weight: 600 !important; text-decoration: none !important; line-height: 1 !important;
	transition: background .15s, color .15s;
}
html body #buddypress .activity-read-more a::after { content: "\f347"; font-family: dashicons; font-size: 14px; font-weight: 400; }
html body #buddypress .activity-read-more a:hover { background: var(--kdf-teal) !important; color: #fff !important; }
@media (max-width: 767px) { html body #buddypress .activity-read-more a { min-height: 44px; } }
/* ==========================================================================
   29) KOMPAKTNÁ LIŠTA ZÁLOŽIEK A FILTROV (zeď, členovia, skupiny)
   ========================================================================== */
html body.kdf-has-feed #buddypress .bp-navs.dir-navs { margin: 0 0 12px !important; }
html body.kdf-has-feed #buddypress .dir-navs li a { padding: 10px 0 !important; font-size: 12px !important; }
html body.kdf-has-feed #buddypress .subnav-filters {
	display: flex !important; flex-wrap: nowrap; align-items: center; gap: 8px; margin: 0 0 14px !important;
}
html body.kdf-has-feed #buddypress .subnav-filters .subnav-search {
	display: flex !important; align-items: center; gap: 4px; flex: 1 1 auto; max-width: none; min-width: 0;
}
html body.kdf-has-feed #buddypress .subnav-filters .feed { order: 2; flex: 0 0 auto; margin: 0 !important; }
html body.kdf-has-feed #buddypress .subnav-filters .feed a {
	display: inline-flex !important; align-items: center; justify-content: center; width: 38px; height: 38px; min-height: 0; border-radius: 50%; color: var(--kdf-teal) !important;
}
html body.kdf-has-feed #buddypress .subnav-filters .feed a:hover { background: #e4e6e9; }
html body.kdf-has-feed #buddypress .subnav-filters .dir-search { flex: 1 1 auto; min-width: 0; }
html body.kdf-has-feed #buddypress .dir-search input[type="search"] { height: 38px !important; font-size: 14px !important; padding-left: 40px !important; }
html body.kdf-has-feed #buddypress .dir-search button.nouveau-search-submit { width: 38px !important; height: 38px !important; top: 0; left: 2px; }
html body.kdf-has-feed #buddypress .component-filters select { height: 38px !important; font-size: 13px !important; padding: 0 34px 0 14px !important; }
html body.kdf-has-feed #buddypress .component-filters .select-arrow { right: 12px; }

@media (max-width: 767px) {
	html body.kdf-has-feed #buddypress .subnav-filters { gap: 6px; }
	html body.kdf-has-feed #buddypress .component-filters { flex: 0 0 auto; } /* stĺpec: 120px by bola výška = prázdne miesto */
	html body.kdf-has-feed #buddypress .component-filters select { width: 100% !important; }
	html body.kdf-has-feed #buddypress .dir-search input[type="search"],
	html body.kdf-has-feed #buddypress .component-filters select { height: 44px !important; }
	html body.kdf-has-feed #buddypress .dir-search button.nouveau-search-submit,
	html body.kdf-has-feed #buddypress .subnav-filters .feed a { width: 44px !important; height: 44px !important; }
}
/* ==========================================================================
   30) FÓRUM - prehľad fór a tém ako karty (štýl Facebook skupín)
   ========================================================================== */
body.kdf-has-feed #bbpress-forums { display: flex; flex-direction: column; font-size: 15px; }
body.kdf-has-feed #bbpress-forums > .kdf-community-wrap { order: 1; }
body.kdf-has-feed #bbpress-forums > .bbp-search-form { order: 2; }
body.kdf-has-feed #bbpress-forums > * { order: 3; }
body.kdf-has-feed #bbpress-forums > .bbp-breadcrumb { order: 0; font-size: 13px; color: #65676b; margin: 0 0 10px; }
/* pás v hlavičke: rovnaká výška ako Udalosti, farba podľa ikony v ľavom menu (fórum oranžová, udalosti červená) */
.kdf-forums-index-head .kdf-forum-cover { height: 170px; }
#bbpress-forums .kdf-forum-cover { background: linear-gradient(135deg, #1b1d1f 0%, #7a4a12 50%, #ffbd59 90%, #ffd27a 120%); }
.kdf-ev-index-head .kdf-forum-cover,
.kdf-forum-cover.kdf-ev-cover:not([style]) { background: linear-gradient(135deg, #1b1d1f 0%, #7a1636 50%, #e0245e 90%, #ff7a9a 120%); }
@media (max-width: 767px) { .kdf-forums-index-head .kdf-forum-cover { height: 110px; } }

/* vyhľadávanie: jedna "pilulka" s lupou */
#bbpress-forums .bbp-search-form { float: none !important; margin: 0 0 16px !important; width: 100%; }
#bbpress-forums .bbp-search-form form > div { display: flex; align-items: center; gap: 0; position: relative; }
#bbpress-forums .bbp-search-form #bbp_search {
	flex: 1; height: 42px; margin: 0 !important; padding: 0 120px 0 44px !important; border: 0 !important; border-radius: 999px !important;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2365676b'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") 16px center / 20px no-repeat !important;
	box-shadow: 0 1px 2px rgba(0,0,0,.08) !important; font-size: 15px;
}
#bbpress-forums .bbp-search-form #bbp_search:focus { box-shadow: 0 0 0 2px rgba(0, 151, 178,.4) !important; }
#bbpress-forums .bbp-search-form #bbp_search_submit {
	position: absolute; right: 4px; top: 4px; height: 34px !important; min-height: 0; padding: 0 18px !important; margin: 0 !important;
	border-radius: 999px !important; font-size: 14px !important; transform: none !important;
}

/* zoznam fór / tém */
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics { border: 0 !important; background: none !important; margin: 0 0 20px !important; overflow: visible; font-size: 15px; }
#bbpress-forums li.bbp-header {
	background: none !important; border: 0 !important; padding: 0 18px 8px !important;
	font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8a8d91;
}
#bbpress-forums li.bbp-header .bbp-forum-info, #bbpress-forums li.bbp-header .bbp-topic-title { visibility: hidden; }
#bbpress-forums li.bbp-body { display: flex; flex-direction: column; gap: 10px; }
#bbpress-forums li.bbp-body > ul.forum,
#bbpress-forums li.bbp-body > ul.topic {
	display: flex; align-items: center; margin: 0 !important; padding: 16px 18px !important;
	background: #fff !important; border: 0 !important; border-radius: 14px !important; box-shadow: 0 1px 2px rgba(0,0,0,.08);
	transition: box-shadow .15s, transform .15s;
}
#bbpress-forums li.bbp-body > ul.forum:hover,
#bbpress-forums li.bbp-body > ul.topic:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-1px); }
#bbpress-forums li.bbp-forum-info, #bbpress-forums li.bbp-topic-title { flex: 1 1 auto; width: auto !important; min-width: 0; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; }
#bbpress-forums li.bbp-body li.bbp-forum-info::before,
#bbpress-forums li.bbp-body li.bbp-topic-title::before {
	content: "\f125"; font-family: dashicons; grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: 12px;
	display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--kdf-teal);
}
#bbpress-forums li.bbp-body > ul:nth-child(4n+2) li.bbp-forum-info::before { background: var(--kdf-orange); }
#bbpress-forums li.bbp-body > ul:nth-child(4n+3) li.bbp-forum-info::before { background: #1b74e4; }
#bbpress-forums li.bbp-body > ul:nth-child(4n+4) li.bbp-forum-info::before { background: #8a5cf6; }
#bbpress-forums li.bbp-body li.bbp-topic-title::before { content: "\f101"; background: #f0f2f5; color: #65676b; }
#bbpress-forums a.bbp-forum-title, #bbpress-forums a.bbp-topic-permalink { font-size: 16px; font-weight: 600; color: var(--kdf-dark) !important; text-decoration: none !important; padding: 0 !important; }
#bbpress-forums a.bbp-forum-title:hover, #bbpress-forums a.bbp-topic-permalink:hover { color: var(--kdf-teal) !important; }
#bbpress-forums .bbp-forum-content {
	margin: 2px 0 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
	font-size: 14px; color: #65676b; line-height: 1.4;
}
#bbpress-forums .bbp-forum-content:empty { display: none; }
#bbpress-forums .bbp-topic-meta, #bbpress-forums .bbp-topic-started-by { font-size: 13px; color: #8a8d91; }
#bbpress-forums li.bbp-forum-topic-count, #bbpress-forums li.bbp-forum-reply-count,
#bbpress-forums li.bbp-topic-voice-count, #bbpress-forums li.bbp-topic-reply-count {
	width: 96px !important; flex: 0 0 96px !important; text-align: center; font-size: 17px; font-weight: 700; color: var(--kdf-dark);
}
#bbpress-forums li.bbp-forum-freshness, #bbpress-forums li.bbp-topic-freshness { width: 170px !important; flex: 0 0 170px; text-align: right; font-size: 13px; color: #65676b; }
#bbpress-forums li.bbp-forum-freshness a, #bbpress-forums li.bbp-topic-freshness a { color: #65676b !important; }
#bbpress-forums li.bbp-forum-freshness p, #bbpress-forums li.bbp-topic-freshness p { margin: 2px 0 0 !important; }
#bbpress-forums li.bbp-header ul { display: flex; }
#bbpress-forums li.bbp-header ul li { float: none !important; }
#bbpress-forums li.bbp-header .bbp-forum-info, #bbpress-forums li.bbp-header .bbp-topic-title { flex: 1 1 auto; width: auto !important; }
#bbpress-forums li.bbp-header .bbp-forum-topic-count, #bbpress-forums li.bbp-header .bbp-forum-reply-count,
#bbpress-forums li.bbp-header .bbp-topic-voice-count, #bbpress-forums li.bbp-header .bbp-topic-reply-count { width: 96px !important; flex: 0 0 96px !important; text-align: center; }
#bbpress-forums li.bbp-header .bbp-forum-freshness, #bbpress-forums li.bbp-header .bbp-topic-freshness { width: 170px !important; text-align: right; }
#bbpress-forums li.bbp-footer { display: none; }
#bbpress-forums li.bbp-header li { white-space: nowrap; }
#bbpress-forums li.bbp-forum-topic-count, #bbpress-forums li.bbp-forum-reply-count, #bbpress-forums li.bbp-topic-voice-count, #bbpress-forums li.bbp-topic-reply-count { width: 96px !important; flex-basis: 96px !important; }

@media (max-width: 767px) {
	#bbpress-forums li.bbp-header { display: none; }
	#bbpress-forums li.bbp-body > ul.forum, #bbpress-forums li.bbp-body > ul.topic { flex-wrap: wrap; padding: 14px !important; row-gap: 8px; }
	#bbpress-forums li.bbp-forum-info, #bbpress-forums li.bbp-topic-title { flex: 1 1 100%; }
	#bbpress-forums li.bbp-forum-topic-count, #bbpress-forums li.bbp-forum-reply-count,
	#bbpress-forums li.bbp-topic-voice-count, #bbpress-forums li.bbp-topic-reply-count { width: auto !important; flex: 0 0 auto; font-size: 13px; font-weight: 600; color: #65676b; margin-left: 58px; text-align: left; }
	#bbpress-forums li.bbp-forum-topic-count::after { content: " tém"; font-weight: 400; }
	#bbpress-forums li.bbp-forum-reply-count::after { content: " príspevkov"; font-weight: 400; }
	#bbpress-forums li.bbp-forum-reply-count, #bbpress-forums li.bbp-topic-reply-count { margin-left: 14px; }
	#bbpress-forums li.bbp-forum-freshness, #bbpress-forums li.bbp-topic-freshness { flex: 1 1 100%; width: auto !important; text-align: left; margin-left: 58px; }
}
/* ==========================================================================
   31) CHAT (Better Messages) - vzhľad Facebook Messengera
   Plugin kreslí všetko cez CSS premenné (--bm-*, farby ako "R,G,B"),
   prepíšeme ich na :root (vyššia špecificita), lebo z nich plugin odvádza ďalšie --bm-zone-* premenné.
   ========================================================================== */
html:root {
	/* bubliny: moje modré vpravo, cudzie svetlosivé vľavo */
	--bm-color-bubble-self-bg: 0,132,255;
	--bm-color-bubble-self-text: 255,255,255;
	--bm-color-bubble-self-link: 255,255,255;
	--bm-color-bubble-self-outline: 0,132,255;
	--bm-color-bubble-other-bg: 240,242,245;
	--bm-color-bubble-other-text: 5,5,5;
	--bm-color-bubble-other-link: 0,100,209;
	--bm-color-bubble-other-outline: 240,242,245;
	--bm-color-mc-self-bg: 0,132,255;
	--bm-color-mc-other-bg: 240,242,245;
	--bm-color-mob-self-bg: 0,132,255;
	--bm-color-mob-other-bg: 240,242,245;
	--bm-radius-bubble: 18px;
	--bm-bubble-max-width: 75%;
	/* akcent (tlačidlá, aktívna záložka, odoslať) */
	--bm-color-inbox-accent: 0,132,255;
	--bm-color-list-accent: 0,132,255;
	--bm-color-reply-accent: 0,132,255;
	--bm-color-mc-reply-accent: 0,132,255;
	--bm-color-mob-tabs-accent: 0,132,255;
	--bm-color-bubble-button-bg: 0,132,255;
	--bm-color-bubble-button-border: 0,132,255;
	/* online bodka - zelená ako na FB */
	--bm-color-online: 49,162,76;
	--bm-color-online-text: 49,162,76;
	/* červený odznak neprečítaných */
	--bm-color-bubble-button-badge-bg: 228,30,63;
	--bm-color-bubble-button-badge-text: 255,255,255;
	/* písmo webu, zaoblenie */
	--bm-messenger-font: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--bm-radius: 10px;
	--bm-radius-mini-widget: 12px;
	--bm-mini-widget-width: 300px;
	--bm-mini-chat-width: min(328px, calc(100vw - 16px));
	--bm-mini-chat-height: 455px;
}

/* lišta vpravo dole: bez rámikov, jemný tieň ako FB */
.bm-mini-widgets-wrap .bm-mini { font-family: var(--bm-messenger-font); }
.bm-mini-widgets-wrap .bm-mini__tabs { border: 0 !important; box-shadow: 0 -1px 0 rgba(0,0,0,.06), 0 4px 18px rgba(0,0,0,.12) !important; }
.bm-mini-widgets-wrap .bm-mini__tab-label { font-weight: 600; }

/* odznaky neprečítaných: výrazné červené kolieska s číslom */
.bm-menu-unread,
.bm-mini [class*="unread"][class*="count"],
.bm-mini [class*="__badge"],
.bm-mini-chats-wrap [class*="__badge"],
#bm-mini-chats-wrap-mobile-container [class*="__badge"] {
	background: #e41e3f !important; color: #fff !important; border-radius: 999px !important;
	min-width: 18px; height: 18px; padding: 0 5px !important; font-size: 11px !important; font-weight: 700 !important;
	line-height: 18px !important; text-align: center; box-shadow: 0 0 0 2px #fff;
}

/* tlačidlo Betheme "hore" nesmie byť pod lištou chatu */
body.bm-initialized #back_to_top { bottom: 64px !important; }

/* mobil: chat na celú obrazovku (zapnuté v nastaveniach), tlačidlo Späť dostatočne veľké */
@media (max-width: 767px) {
	.bm-wrap [class*="back"] button, .bm-wrap button[class*="back"] { min-width: 44px; min-height: 44px; }
}
/* ==========================================================================
   32) FORMULÁR KOMENTÁRA k príspevku (zeď, skupiny, profil, detail príspevku)
   avatar | sivá bublina na text
          | [fotka]                     Zrušiť  [Uverejniť]
   ========================================================================== */
html body #buddypress form.ac-form {
	display: grid !important; grid-template-columns: 32px minmax(0, 1fr); column-gap: 8px; align-items: start;
	margin: 10px 0 4px !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important;
}
html body #buddypress form.ac-form .ac-reply-avatar { grid-column: 1; float: none !important; width: 32px; height: 32px; margin: 4px 0 0 !important; }
html body #buddypress form.ac-form .ac-reply-avatar img {
	width: 32px !important; height: 32px !important; border-radius: 50% !important; border: 0 !important; box-shadow: none !important; margin: 0 !important; object-fit: cover; display: block;
}
/* font-size 0 skryje "&nbsp;" medzi tlačidlami, ktoré vkladá šablóna BuddyPress */
html body #buddypress form.ac-form .ac-reply-content {
	grid-column: 2; display: flex !important; flex-wrap: wrap; align-items: center; margin: 0 !important; padding: 0 !important; font-size: 0; float: none !important; width: auto !important;
}
html body #buddypress form.ac-form .ac-textarea { flex: 1 1 100%; order: 0; margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; background: none !important; }
html body #buddypress form.ac-form textarea.ac-input {
	display: block; width: 100% !important; min-height: 40px !important; height: 40px; max-height: 160px; margin: 0 !important; resize: none !important;
	padding: 9px 16px !important; border: 1px solid transparent !important; border-radius: 20px !important; background: #f0f2f5 !important; box-shadow: none !important;
	font-size: 14px !important; line-height: 1.45 !important; color: var(--kdf-dark) !important; transition: background .15s, border-color .15s, height .15s;
}
html body #buddypress form.ac-form textarea.ac-input:focus { height: 72px; background: #fff !important; border-color: var(--kdf-teal) !important; outline: 0; box-shadow: 0 0 0 3px rgba(0, 151, 178, .15) !important; }
html body #buddypress form.ac-form textarea.ac-input::placeholder { color: #8a8d91; }

/* priložiť fotku - ikonka vľavo */
html body #buddypress form.ac-form button.rtmedia-comment-media-upload {
	order: 1; display: inline-flex !important; align-items: center; justify-content: center;
	width: 36px !important; min-width: 36px; height: 36px !important; min-height: 36px !important; padding: 0 !important; margin: 0 !important;
	border: 0 !important; border-radius: 50% !important; background: transparent !important; box-shadow: none !important; cursor: pointer;
}
html body #buddypress form.ac-form button.rtmedia-comment-media-upload:hover { background: #f0f2f5 !important; }
html body #buddypress form.ac-form button.rtmedia-comment-media-upload .dashicons { font-size: 20px; width: 20px; height: 20px; color: #45bd62; }
html body button.rtmedia-comment-media-upload.kdf-is-disabled { opacity: .45; cursor: not-allowed !important; }
html body #buddypress form.ac-form button.rtmedia-comment-media-upload.kdf-is-disabled:hover { background: transparent !important; }
/* nahrávanie fotky ku komentáru: náhľad stlmený + točiaci sa kruh, pod ním priebeh (rtMedia .plupload_file_progress) */
html body form.ac-form li.upload-progress,
html body #rt_media_comment_form li.upload-progress { position: relative; }
html body form.ac-form li.upload-progress:not(.upload-success) img,
html body #rt_media_comment_form li.upload-progress:not(.upload-success) img { opacity: .45; }
html body form.ac-form li.upload-progress:not(.upload-success)::after,
html body #rt_media_comment_form li.upload-progress:not(.upload-success)::after {
	content: ""; position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
	border: 3px solid rgba(255, 255, 255, .7); border-top-color: var(--kdf-teal); border-radius: 50%;
	animation: kdf-rtm-spin .8s linear infinite; z-index: 2; pointer-events: none;
}
html body form.ac-form .plupload_file_status,
html body #rt_media_comment_form .plupload_file_status { display: block; height: 4px; margin-top: 4px; background: #e4e6eb; border-radius: 2px; overflow: hidden; }
html body form.ac-form .plupload_file_progress,
html body #rt_media_comment_form .plupload_file_progress { height: 100%; background: var(--kdf-teal) !important; border: 0 !important; transition: width .2s; }
@keyframes kdf-rtm-spin { to { transform: rotate(360deg); } }

/* Zrušiť (textové) + Uverejniť (hlavné) vpravo */
html body #buddypress form.ac-form .ac-reply-cancel,
html body #buddypress form.ac-form input[name="ac_form_submit"] {
	height: 34px !important; min-height: 34px !important; padding: 0 16px !important; margin: 0 !important;
	border: 0 !important; border-radius: 999px !important; box-shadow: none !important; line-height: 34px !important;
	font-size: 14px !important; font-weight: 600 !important; cursor: pointer; transform: none !important; width: auto !important;
}
html body #buddypress form.ac-form .ac-reply-cancel { order: 2; margin-left: auto !important; background: transparent !important; color: #65676b !important; }
html body #buddypress form.ac-form .ac-reply-cancel:hover { background: #f0f2f5 !important; color: var(--kdf-dark) !important; }
html body #buddypress form.ac-form input[name="ac_form_submit"] { order: 3; margin-left: 4px !important; background: var(--kdf-teal) !important; color: #fff !important; }
html body #buddypress form.ac-form input[name="ac_form_submit"]:hover { background: #007c93 !important; }

/* náhľady priložených fotiek pod poľom; tlačidlo "Nahrať" netreba - fotky sa odošlú s komentárom */
html body #buddypress form.ac-form .rtmedia-uploader-div { grid-column: 2; margin: 4px 0 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
html body #buddypress form.ac-form .rtmedia-uploader-div:not(:has(.rtm-plupload-list li)) { display: none !important; }
html body #buddypress form.ac-form .rtmedia-plupload-container { padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; }
html body #buddypress form.ac-form .rtm-plupload-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 !important; padding: 0 !important; }
html body #buddypress form.ac-form input[id^="rtMedia-start-upload"] { display: none !important; }

@media (max-width: 767px) {
	html body #buddypress form.ac-form .ac-reply-cancel,
	html body #buddypress form.ac-form input[name="ac_form_submit"],
	html body #buddypress form.ac-form button.rtmedia-comment-media-upload { height: 44px !important; min-height: 44px !important; line-height: 44px !important; }
	html body #buddypress form.ac-form button.rtmedia-comment-media-upload { width: 44px !important; }
	html body #buddypress form.ac-form textarea.ac-input { font-size: 16px !important; } /* iOS nezoomuje */
}
/* --- HLAVIČKA: #Header, #Top_bar, logo, menu a hamburger riadi VÝHRADNE Betheme (Theme Options).
   Child téma ich neprepisuje; do lišty len vkladá vlastné ikony (.kdf-hdr-icons, kdf-notifications.css). --- */

/* ==========================================================================
   RESPONZÍVNY AUDIT (2026-10) - opravy podľa meraní 2560 / 1024 / 768 / 375
   ========================================================================== */
/* ultra-wide: bočné panely neodchádzajú k okrajom 30" monitora */
@media (min-width: 2000px) {
	html body.kdf-has-feed .kdf-feed { max-width: 1920px; margin-left: auto !important; margin-right: auto !important; }
}
/* tablet + mobil: dotykové plochy min. 44px */
@media (max-width: 1100px) {
	html body #buddypress .activity-meta .button { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; }
}
@media (max-width: 767px) {
	html body #buddypress .subnav-filters { margin-bottom: 8px !important; }
}
/* krátke stránky: Betheme "footer-stick" prilepí pätičku na spodok okna, medzera nad ňou
   ukazovala svetlé pozadie html (#fcfcfc) / #Wrapper (#fff) namiesto sivej sociálnej siete */
html:has(body.kdf-has-feed),
html body.kdf-has-feed,
html body.kdf-has-feed #Wrapper { background-color: #f0f2f5 !important; }
/* tablet: pravý panel pod feedom v dvoch stĺpcoch */
@media (min-width: 768px) and (max-width: 1100px) {
	html body.kdf-has-feed .kdf-feed-right { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	html body.kdf-has-feed .kdf-feed-right > * { min-width: 0; }
}
/* albumy (všetky šírky): plynulé stĺpce v šírke obsahu; dlaždica nie je štvorec (pod obrázkom je názov),
   inak názov pretečie pod "Načítať ďalšie" */
html body #buddypress .rtmedia-container ul.rtmedia-list.rtmedia-album-list {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)) !important; gap: 12px !important;
	width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important;
}
html body #buddypress .rtmedia-container ul.rtmedia-list.rtmedia-album-list > li.rtmedia-list-item { aspect-ratio: auto !important; height: auto !important; width: auto !important; min-width: 0; }
html body #buddypress .rtmedia-container ul.rtmedia-list.rtmedia-album-list .rtmedia-item-title h4 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #buddypress .rtmedia-container .rtm-load-more { clear: both; margin-top: 12px !important; }

/* ==========================================================================
   34) MOBIL: kompaktný blok nad prvým príspevkom (zeď)
   pred: formulár +20, záložky +16, filtre 106 px (2 riadky) +16 = 202 px
   teraz: hľadanie | výber | RSS v jednom riadku, medzery 8-12 px
   ========================================================================== */
@media (max-width: 767px) {
	html body #buddypress #bp-nouveau-activity-form { margin: 0 0 12px !important; }
	/* body.directory.activity ... (sekcia vyššie) má vyššiu špecificitu - preto .dir-navs.main-navs a #subnav-filters */
	html body.kdf-has-feed #buddypress .bp-navs.dir-navs.main-navs,
	html body.kdf-has-feed #buddypress .bp-navs.dir-navs { margin: 0 0 8px !important; }
	html body.kdf-has-feed #buddypress .subnav-filters,
	html body.kdf-has-feed #buddypress #subnav-filters.subnav-filters {
		flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important;
		gap: 6px !important; margin: 0 0 12px !important; padding: 0 !important;
	}
	html body.kdf-has-feed #buddypress .subnav-filters .subnav-search { flex: 1 1 auto !important; min-width: 0; margin: 0 !important; }
	html body.kdf-has-feed #buddypress .subnav-filters .dir-search,
	html body.kdf-has-feed #buddypress .subnav-filters .dir-search form,
	html body.kdf-has-feed #buddypress .subnav-filters .dir-search input[type="search"] { width: 100% !important; margin: 0 !important; }
	html body.kdf-has-feed #buddypress .subnav-filters .component-filters { flex: 0 0 116px !important; width: 116px !important; margin: 0 !important; order: 1; }
	html body.kdf-has-feed #buddypress .subnav-filters .component-filters select { width: 100% !important; padding: 0 26px 0 10px !important; }
	html body.kdf-has-feed #buddypress .subnav-filters .component-filters .select-arrow { right: 8px; }
}


/* ==========================================================================
   Profil: menšie medzery medzi hlavičkou profilu a fotkami (desktop aj mobil)
   ========================================================================== */
html body #buddypress #item-header.users-header { padding-bottom: 8px !important; margin-bottom: 0 !important; }
html body #buddypress #item-header.users-header .item-meta { margin: 4px 0 0 !important; padding: 0 !important; min-height: 0 !important; line-height: 1.4 !important; }
html body #buddypress #item-header.users-header .item-meta .activity { margin: 0 !important; padding: 0 !important; }
html body.bp-user #buddypress #subnav { margin: 0 0 8px !important; }
html body.bp-user #buddypress #rtm-gallery-title-container { margin: 0 0 8px !important; padding: 0 !important; min-height: 0 !important; }
html body.bp-user #buddypress #rtm-gallery-title-container .rtm-gallery-title { margin: 0 !important; }
html body #buddypress #item-header.users-header .member-header-actions:not(:has(*)) { display: none !important; }

/* ==========================================================================
   Lightbox fotky (rtMedia) - kompaktne, bez prázdnych plôch
   ========================================================================== */
/* duplicitné "Páči sa mi" v tmavej časti - rovnaké tlačidlo je pod autorom */
html body .rtm-lightbox-container .rtm-ltb-action-container .rtmedia-author-actions form:has(.rtmedia-like) { display: none !important; }
html body .rtm-lightbox-container .rtm-ltb-title { display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 13px !important; line-height: 1.3 !important; }
html body .rtm-lightbox-container .rtm-ltb-title > span { width: auto !important; max-width: 100%; float: none !important; margin: 0 !important; padding: 0 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .rtm-lightbox-container .rtm-ltb-title a { padding: 0 !important; font-size: 13px !important; }
html body .rtm-lightbox-container .rtm-ltb-action-container { padding: 8px 12px !important; min-height: 0 !important; height: auto !important; }
/* pod autorom: like/komentovať a "žiadne komentáre" tesnejšie */
html body .rtm-lightbox-container .rtm-single-meta-contents { padding-top: 10px !important; }
html body .rtm-lightbox-container .rtm-user-meta-details { padding-bottom: 8px !important; min-height: 0 !important; }
html body .rtm-lightbox-container .rtmedia-media-description:empty { display: none !important; }
html body .rtm-lightbox-container .rtmedia-media-description { padding-top: 0 !important; }
html body .rtm-lightbox-container .rtmedia-actions-before-comments { padding: 4px 0 !important; }
html body .rtm-lightbox-container .rtmedia-actions-before-comments .rtmedia-like,
html body .rtm-lightbox-container .rtmedia-actions-before-comments .rtmedia-comment-link { min-height: 36px !important; height: 36px !important; }
html body .rtm-lightbox-container .rtmedia-no-comments { padding: 10px 0 !important; margin: 0 !important; font-size: 13px !important; }
html body .rtm-lightbox-container .rtm-media-single-comments { padding: 8px 16px 10px !important; }

/* samostatná stránka fotky (/members/x/media/N/, nie popup): karta - fotka vľavo, biely panel vpravo, titulok cez spodok fotky */
html body #item-body .rtm-lightbox-container { height: auto !important; align-items: stretch !important; background: #fff !important; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.08); margin-top: 8px; }
html body #item-body .rtm-lightbox-container > .rtm-single-media { flex-direction: column !important; height: auto !important; background: #111 !important; position: relative; }
html body #item-body .rtm-lightbox-container .rtmedia-media-title { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; width: auto !important; height: auto !important; margin: 0 !important; padding: 28px 16px 12px !important; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff !important; font-size: 14px; text-align: left !important; pointer-events: none; }
html body #item-body .rtm-lightbox-container .rtmedia-media { padding: 0 !important; height: auto !important; flex: 1 1 auto; background: #111 !important; }
html body #item-body .rtm-lightbox-container .rtmedia-media img { width: 100% !important; max-height: 80vh !important; }
html body #item-body .rtm-lightbox-container > .rtm-single-meta { height: auto !important; background: #fff !important; }
html body #item-body .rtm-single-meta .rtmedia-scroll { padding: 16px !important; box-sizing: border-box; }
html body #item-body .rtm-single-meta .rtm-single-actions { display: flex !important; flex-wrap: wrap; gap: 8px; padding: 0 0 12px !important; margin: 0 !important; border-bottom: 1px solid #eef0f3; }
html body #item-body .rtm-single-meta .rtm-single-actions > * { margin: 0 !important; float: none !important; }
html body #item-body .rtm-single-meta .rtmedia-actions-before-comments { display: flex !important; gap: 8px; padding: 12px 0 !important; }
html body #item-body .rtm-single-meta .rtmedia-like-info { background: none !important; padding: 0 0 8px !important; font-size: 13px; color: #6b7280; }
html body #item-body .rtm-single-meta .rtmedia-comment-form { margin-top: 8px; }
html body #item-body .rtm-lightbox-container { min-height: 0 !important; max-height: none !important; }
html body #item-body .rtm-lightbox-container #rtmedia-single-media-container { padding-top: 0 !important; } /* mobil: 48px pre šípky popupu tu netreba */
/* tlačidlá ako na profile: Upraviť/Zmazať/Do albumu obrysové, Páči sa mi/Komentovať ako na zdi */
html body #item-body .rtm-single-meta .rtm-single-actions { gap: 6px; }
html body #item-body .rtm-single-meta .rtm-single-actions form { padding: 0 !important; height: auto !important; }
html body #item-body .rtm-single-meta .rtm-single-actions .rtmedia-action-buttons { height: 32px !important; min-height: 0 !important; line-height: 30px !important; padding: 0 14px !important; background: transparent !important; color: #1b1d1f !important; border: 1px solid #d5d9db !important; border-radius: 8px !important; font-size: 13px !important; font-weight: 600 !important; box-shadow: none !important; display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; }
html body #item-body .rtm-single-meta .rtm-single-actions .rtmedia-action-buttons:hover { background: #f3f5f6 !important; }
html body #item-body .rtm-single-meta .rtm-single-actions .rtmedia-delete-media:hover { color: #d63638 !important; border-color: #f0c4c4 !important; background: #fdf3f3 !important; }
html body #item-body .rtm-single-meta .rtmedia-actions-before-comments { gap: 4px; padding: 8px 0 !important; border-bottom: 1px solid #eef0f3; align-items: center; }
html body #item-body .rtm-single-meta .rtmedia-actions-before-comments > span { flex: 1 1 0; height: auto !important; }
html body #item-body .rtm-single-meta .rtmedia-actions-before-comments .rtmedia-like,
html body #item-body .rtm-single-meta .rtmedia-actions-before-comments .rtmedia-comment-link { width: 100% !important; height: 36px !important; padding: 0 12px !important; background: transparent !important; color: #65676b !important; border: 0 !important; border-radius: 8px !important; font-size: 14px !important; font-weight: 600 !important; box-shadow: none !important; display: flex !important; align-items: center; justify-content: center; gap: 6px; }
html body #item-body .rtm-single-meta .rtmedia-actions-before-comments .rtmedia-like:hover,
html body #item-body .rtm-single-meta .rtmedia-actions-before-comments .rtmedia-comment-link:hover { background: #f0f2f5 !important; color: var(--kdf-dark, #1b1d1f) !important; opacity: 1 !important; }
html body #item-body .rtm-single-meta .rtm-single-actions .rtmedia-action-buttons:hover { color: #1b1d1f !important; opacity: 1 !important; }
html body #item-body .rtm-single-meta .rtmedia-like.rtmedia-liked, html body #item-body .rtm-single-meta .rtmedia-like.liked { color: #007c93 !important; }
html body #item-body .rtm-single-meta .rtmedia-like-info { padding: 10px 0 0 !important; }
html body #item-body .rtm-single-meta .rt_media_comment_submit { height: 34px !important; min-height: 0 !important; line-height: 1 !important; padding: 0 16px !important; border-radius: 8px !important; font-size: 13px !important; font-weight: 600 !important; box-shadow: none !important; }

@media (max-width: 767px) {
	/* fotka cez celú šírku, výška podľa obrazovky; šípky a krížik nad fotkou */
	html body .rtm-lightbox-container #rtmedia-single-media-container { height: auto !important; min-height: 0 !important; padding-top: 48px !important; }
	html body .rtm-lightbox-container .rtmedia-media { margin: 0 !important; height: auto !important; max-height: none !important; display: flex !important; justify-content: center; }
	html body .rtm-lightbox-container .rtmedia-media img { width: 100% !important; max-width: 100% !important; height: auto !important; max-height: 72vh !important; object-fit: contain; margin: 0 !important; }
	/* šípky na zvislom strede fotky - --kdf-arrow-top dopočíta kdf-mobile.js podľa skutočnej výšky fotky */
	/* display: rtMedia na telefónoch skrýva šípky pri :hover - po ťuknutí na fotku by zmizli */
	html body .rtm-lightbox-container .mfp-arrow { display: flex !important; top: var(--kdf-arrow-top, calc(48px + 36vh)) !important; margin-top: 0 !important; }
	/* Upraviť / Zmazať / Do albumu menšie a v jednom riadku */
	html body #buddypress .rtm-lightbox-container :is(.rtmedia-author-actions, .rtm-single-actions) { flex-wrap: nowrap !important; }
	html body #buddypress .rtm-lightbox-container :is(.rtmedia-author-actions, .rtm-single-actions) button.rtmedia-action-buttons {
		height: 30px !important; min-height: 30px !important; padding: 0 10px !important; border-radius: 8px !important;
		font-size: 12px !important; line-height: 1 !important; white-space: nowrap;
	}
	html body #buddypress .rtm-lightbox-container :is(.rtmedia-author-actions, .rtm-single-actions) .kdf-alb-single.is-ltb { gap: 4px; }
	html body #buddypress .rtm-lightbox-container :is(.rtmedia-author-actions, .rtm-single-actions) .kdf-alb-single.is-ltb .dashicons { font-size: 13px; width: 13px; height: 13px; }
}
/* Tlačidlá autora fotky (lightbox aj detail): rovnaké medzery. rtMedia medzi Upraviť a Zmazať vkladá prázdny
   <form id="rtmedia-media-view-form"> a formulárom dáva margin-right - vo flex riadku to robilo nerovnaké medzery. */
html body #buddypress .rtm-lightbox-container :is(.rtmedia-author-actions, .rtm-single-actions) { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px !important; }
html body #buddypress .rtm-lightbox-container :is(.rtmedia-author-actions, .rtm-single-actions) > form { margin: 0 !important; }
html body #buddypress .rtm-lightbox-container :is(.rtmedia-author-actions, .rtm-single-actions) > form:empty { display: none !important; }
/* Lištu v lightboxe zmenšiť a všetky tlačidlá (Upraviť, Zmazať, Vlastnosti, Do albumu, otočiť) v jednom štýle */
html body .mfp-wrap #buddypress .rtm-lightbox-container :is(.rtmedia-author-actions, .rtm-single-actions) { gap: 4px !important; }
html body .mfp-wrap #buddypress .rtm-lightbox-container :is(.rtmedia-author-actions, .rtm-single-actions) :is(.rtmedia-action-buttons, a.button, button) {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 4px;
	height: 28px !important; min-height: 28px !important; min-width: 0 !important; margin: 0 !important; padding: 0 10px !important;
	border: 1px solid rgba(255,255,255,.28) !important; border-radius: 7px !important;
	background: rgba(0,0,0,.45) !important; color: #fff !important; opacity: 1 !important; box-shadow: none !important;
	font-size: 12px !important; font-weight: 600 !important; line-height: 1 !important; white-space: nowrap; text-shadow: none !important;
}
html body .mfp-wrap #buddypress .rtm-lightbox-container :is(.rtmedia-author-actions, .rtm-single-actions) :is(.rtmedia-action-buttons, a.button, button):hover { background: var(--kdf-teal, #0097b2) !important; border-color: var(--kdf-teal, #0097b2) !important; }
html body .mfp-wrap #buddypress .rtm-lightbox-container :is(.rtmedia-author-actions, .rtm-single-actions) :is(.rtmedia-action-buttons, a.button, button) * { color: inherit !important; opacity: 1 !important; }
html body .mfp-wrap #buddypress .rtm-lightbox-container :is(.rtmedia-author-actions, .rtm-single-actions) .dashicons { font-size: 14px !important; width: 14px !important; height: 14px !important; }
html body .mfp-wrap #buddypress .rtm-lightbox-container :is(.rtmedia-author-actions, .rtm-single-actions) .kdf-rot-single { width: 28px !important; padding: 0 !important; }


/* menu "Klub KDF" (Betheme header > custom dropdown) len pre neprihlásených */
body.logged-in #Top_bar .top_bar_right .wpml-languages.custom,
body.logged-in #Side_slide .extras .extras-wrapper .lang-active,
body.logged-in #Side_slide .extras .extras-wrapper .wpml-languages,
body.logged-in #Side_slide .lang-wrapper { display: none !important; }

/* ==========================================================================
   28) AKČNÁ LIŠTA HLAVIČKY - skupina, fórum (udalosť má .kdf-ev-toolbar)
   jedna kompaktná lišta pod názvom a členmi, štýl ako tlačidlá profilu
   ========================================================================== */
.kdf-group-head,
.kdf-forum-head:not(.kdf-ev-hero) .kdf-forum-head-inner { flex-direction: column !important; align-items: stretch !important; justify-content: flex-start !important; gap: 14px !important; }
.kdf-group-head { padding: 0 0 18px !important; }
.kdf-group-head .kdf-group-meta { margin-bottom: 10px !important; }
/* Tokeny presne ako .kdf-profile-actions v profile: výška 32, písmo 13/600, zaoblenie 8, rámik 1 px, padding 0 16 (mobil 0 12), medzera 8.
   Prefix s :not(#id) prebíja staršie pravidlá s dvomi ID (#buddypress #item-header-content ...), ktoré posúvali tlačidlá. */
.kdf-group-cta, .kdf-ev-toolbar, .kdf-ev-tools, .kdf-ev-rsvp { --kdf-btn-h: 32px; --kdf-btn-r: 8px; --kdf-btn-px: 16px; --kdf-btn-fs: 13px; }
.kdf-group-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* udalosť: RSVP vľavo, nástroje vpravo - medzi skupinami min. 24 px, riadky 8 px (inak sa na tablete takmer dotýkali) */
html body .kdf-ev-toolbar { gap: 8px 24px !important; }
html body .kdf-ev-tools, html body .kdf-ev-rsvp { gap: 8px !important; }
.kdf-group-cta .groups-meta, .kdf-group-cta .generic-button,
.kdf-group-cta #subscription-toggle, .kdf-group-cta #subscription-toggle > span { display: contents !important; }
html body:not(#kdf-a):not(#kdf-b):not(#kdf-c) .kdf-group-cta :is(a, button),
html body:not(#kdf-a):not(#kdf-b):not(#kdf-c) .kdf-ev-toolbar :is(a, button).kdf-btn {
	box-sizing: border-box !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 6px !important;
	height: 32px !important; min-height: 32px !important; margin: 0 !important; padding: 0 16px !important; position: static !important; top: auto !important; vertical-align: middle !important;
	font-size: 13px !important; font-weight: 600 !important; line-height: 1 !important; white-space: nowrap !important;
	border-radius: 8px !important; border-width: 1px !important; border-style: solid !important;
}
html body:not(#kdf-a):not(#kdf-b):not(#kdf-c) .kdf-ev-toolbar .kdf-btn.kdf-ev-icon-btn { width: 32px !important; padding: 0 !important; }
html body:not(#kdf-a):not(#kdf-b):not(#kdf-c) :is(.kdf-group-cta, .kdf-ev-toolbar) .dashicons { font-size: 16px !important; width: 16px !important; height: 16px !important; line-height: 1 !important; margin: 0 !important; }
/* primárne: Pozvať / Nová téma / Pridať sa / Požiadať - tyrkysová, rámik rovnakej farby (rovnaká výška ako sekundárne) */
html body:not(#kdf-a):not(#kdf-b):not(#kdf-c) .kdf-group-cta :is(.kdf-btn-primary, .join-group, .request-membership, .accept-invite) { background-color: var(--kdf-teal) !important; border-color: var(--kdf-teal) !important; color: #fff !important; }
html body:not(#kdf-a):not(#kdf-b):not(#kdf-c) .kdf-group-cta :is(.kdf-btn-primary, .join-group, .request-membership, .accept-invite):hover { background-color: var(--kdf-teal-dark) !important; border-color: var(--kdf-teal-dark) !important; }
/* sekundárne: Opustiť / Nastavenia / Odoberať - svetlý obrys */
html body:not(#kdf-a):not(#kdf-b):not(#kdf-c) .kdf-group-cta :is(.leave-group, .kdf-btn, .subscription-toggle) { background-color: transparent !important; border-color: #d5d9db !important; color: var(--kdf-dark) !important; }
html body:not(#kdf-a):not(#kdf-b):not(#kdf-c) .kdf-group-cta :is(.leave-group, .kdf-btn, .subscription-toggle):hover { background-color: #f0f2f3 !important; border-color: var(--kdf-dark) !important; }
/* pôvodné miesto tlačidiel BP pod hlavičkou (ak by ostal prázdny obal) */
body.single-item.groups #buddypress #item-header-content > .groups-meta.action:not(:has(*)),
body.single-item.groups #buddypress .kdf-group-head:has(.kdf-action-bar) ~ .groups-meta.action { display: none !important; }

@media (max-width: 767px) {
	/* jeden riadok, rovnako široké tlačidlá na celú šírku */
	.kdf-group-cta { flex-wrap: nowrap; width: 100%; }
	html body:not(#kdf-a):not(#kdf-b):not(#kdf-c) .kdf-group-cta :is(a, button) { flex: 1 1 0 !important; min-width: 0 !important; padding: 0 12px !important; overflow: hidden; }
	html body:not(#kdf-a):not(#kdf-b):not(#kdf-c) .kdf-ev-toolbar :is(a, button).kdf-btn:not(.kdf-ev-icon-btn) { padding: 0 12px !important; }
	/* kratšie popisy, aby sa nič nezalamovalo (celý text ostáva v title) */
	html body:not(#kdf-a):not(#kdf-b):not(#kdf-c) .kdf-group-cta :is(.leave-group, .join-group) { font-size: 0 !important; }
	html body:not(#kdf-a):not(#kdf-b):not(#kdf-c) .kdf-group-cta .leave-group::after { content: "Opustiť"; font-size: 13px; line-height: 1; }
	html body:not(#kdf-a):not(#kdf-b):not(#kdf-c) .kdf-group-cta .join-group::after { content: "Pridať sa"; font-size: 13px; line-height: 1; }
	/* hlavička témy fóra: 3 tlačidlá - bez ikon, "Pozvať členov" -> "Pozvať" */
	html body:not(#kdf-a):not(#kdf-b):not(#kdf-c) .kdf-topic-head .kdf-group-cta .dashicons { display: none !important; }
	html body:not(#kdf-a):not(#kdf-b):not(#kdf-c) .kdf-topic-head .kdf-topic-invite-btn { font-size: 0 !important; }
	html body:not(#kdf-a):not(#kdf-b):not(#kdf-c) .kdf-topic-head .kdf-topic-invite-btn::after { content: "Pozvať"; font-size: 13px; line-height: 1; }
	html body:not(#kdf-a):not(#kdf-b):not(#kdf-c) .kdf-topic-head .kdf-group-cta :is(a, button) { padding: 0 8px !important; }
}

/* Správy: „Napísať správu“ má v BP Nouveau margin-top -7px - zarovnať s ostatnými záložkami */
body.bp-user #buddypress #subnav li#compose-personal-li a { margin-top: 0 !important; }
/* Odoslané: pod avatarom pretekal text „(a 1 ďalší)“ - meno aj počet príjemcov skryť, stačí avatar */
body #buddypress #message-threads .thread-to .user-name,
body #buddypress #message-threads .thread-to .num-recipients { display: none !important; }

/* Audit 2026-10-15: profilová titulná fotografia a ovládanie chatu. */
body.bp-user #buddypress #header-cover-image {
 display: block !important; position: relative !important;
 height: clamp(140px, 24vw, 280px) !important;
 border-radius: 16px; margin-bottom: 24px; background-position: center;
}
.kdf-chat-win .kdf-chat-btn { min-width:44px; min-height:44px; flex-shrink:0; }
.kdf-chat-win .kdf-chat-send { min-height:44px; }
.kdf-chat-win .kdf-chat-input { min-width:0; }
.kdf-chat-win .kdf-chat-body { overflow-anchor:none; }

/* Feedback must span the form, never the 32px avatar grid column. */
html body #buddypress .bp-feedback,
.kdf-notice,
#bbpress-forums .bbp-template-notice {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    clear: both;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: start;
    font-size: 14px;
    line-height: 1.5;
}
html body #buddypress form.ac-form > .bp-feedback {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
}
html body #buddypress form.ac-form .ac-reply-content > .bp-feedback {
    flex: 0 0 100% !important;
    width: 100% !important;
    order: 4;
    margin: 8px 0 0 !important;
}
html body #buddypress .bp-feedback p,
.kdf-notice p,
#bbpress-forums .bbp-template-notice p {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.5;
}
.kdf-toast { box-sizing: border-box; flex-wrap: wrap; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.kdf-toast > span:not(.dashicons) { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.kdf-toast a { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 767px) {
    .kdf-toast { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

/* Editor na webe: tlačidlo Shortcode z Betheme skryť (pojistka k filtru vo functions.php) */
.mce-toolbar .mce-mfnsc { display: none !important; }
