/*
Theme Name: O4SE Network
Theme URI: https://o4se.cz/
Description: Komunitní motiv O4SE pro BuddyPress, inspirovaný ergonomií moderních sociálních sítí.
Author: O4SE
Version: 0.3.9
Template: twentytwentyfive
Text Domain: o4se-network
*/

:root {
	--o4se-blue: #1769e0;
	--o4se-blue-dark: #0f54bd;
	--o4se-blue-soft: #eaf2ff;
	--o4se-ink: #182230;
	--o4se-muted: #667085;
	--o4se-line: #e4e9f0;
	--o4se-bg: #f3f6fa;
	--o4se-card: #ffffff;
	--o4se-radius: 18px;
	--o4se-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 28px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	background: var(--o4se-bg);
	color: var(--o4se-ink);
	font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
}

body.admin-bar .o4se-site-header { top: 32px; }
a { color: var(--o4se-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--o4se-blue-dark); }
button, input, textarea, select { font: inherit; }

/* Horní lišta */
.o4se-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .94);
	border-bottom: 1px solid rgba(228, 233, 240, .9);
	box-shadow: 0 2px 16px rgba(16, 24, 40, .05);
	backdrop-filter: blur(16px);
}

.o4se-header-inner { min-height: 68px; gap: 24px; }

.o4se-brand {
	position: relative;
	padding-left: 49px;
	font-size: 1.28rem;
	font-weight: 800;
	letter-spacing: -.04em;
	white-space: nowrap;
}

.o4se-brand::before {
	position: absolute;
	left: 0;
	top: 50%;
	width: 38px;
	height: 38px;
	background: url("assets/images/oase-mini.png") center / contain no-repeat;
	content: "";
	filter: drop-shadow(0 4px 6px rgba(23, 105, 224, .18));
	transform: translateY(-50%);
}

.o4se-brand a { color: var(--o4se-ink); text-decoration: none; }
.o4se-main-nav { flex: 1; }

.o4se-main-nav .wp-block-navigation__container {
	width: 100%;
	justify-content: center;
	gap: 4px;
}

.o4se-main-nav .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px !important;
	border-radius: 12px;
	color: #475467;
	font-size: .94rem;
	font-weight: 650;
	text-decoration: none;
	transition: background .18s ease, color .18s ease, transform .18s ease;
}

.o4se-main-nav .wp-block-navigation-item__content:hover,
.o4se-main-nav .current-menu-item > .wp-block-navigation-item__content {
	background: var(--o4se-blue-soft);
	color: var(--o4se-blue);
}

.o4se-notifications-link .wp-block-navigation-item__content { position: relative; }
.o4se-notification-count {
	display: inline-grid;
	place-items: center;
	min-width: 19px;
	height: 19px;
	margin-left: 5px;
	padding: 0 5px;
	border-radius: 10px;
	background: #e5484d;
	color: #fff;
	font-size: .68rem;
	font-weight: 800;
	line-height: 1;
}

.o4se-profile-link .wp-block-navigation-item__content {
	background: var(--o4se-blue) !important;
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(23, 105, 224, .22);
}

.o4se-profile-link .wp-block-navigation-item__content:hover {
	background: var(--o4se-blue-dark) !important;
	transform: translateY(-1px);
}

/* Stránky */
.o4se-main {
	min-height: calc(100vh - 160px);
	margin-top: 0 !important;
	padding: 36px 24px 72px;
}

.o4se-content-shell { width: 100%; }

.o4se-page-heading {
	max-width: 1180px;
	margin: 0 auto 18px;
	font-size: clamp(1.65rem, 3vw, 2.25rem);
	font-weight: 780;
	letter-spacing: -.04em;
}

.o4se-page-content { max-width: 1180px; margin-inline: auto; }

body:not(.buddypress) .o4se-page-content {
	padding: clamp(22px, 4vw, 38px);
	background: var(--o4se-card);
	border: 1px solid var(--o4se-line);
	border-radius: var(--o4se-radius);
	box-shadow: var(--o4se-shadow);
}

.o4se-site-footer {
	padding: 24px;
	border-top: 1px solid var(--o4se-line);
	background: #fff;
	color: var(--o4se-muted);
}

.o4se-site-footer p { margin: 0; font-size: .88rem; }

/* Formuláře a tlačítka */
.o4se-page-content button,
.o4se-page-content input[type="submit"],
.o4se-page-content input[type="button"],
.o4se-page-content .button,
#buddypress .button,
#buddypress button,
#buddypress input[type="submit"] {
	min-height: 40px;
	padding: 9px 17px;
	border: 0;
	border-radius: 11px;
	background: var(--o4se-blue);
	color: #fff;
	font-weight: 700;
	box-shadow: none;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.o4se-page-content button:hover,
.o4se-page-content input[type="submit"]:hover,
#buddypress .button:hover,
#buddypress button:hover,
#buddypress input[type="submit"]:hover {
	background: var(--o4se-blue-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(23, 105, 224, .18);
}

.o4se-page-content input[type="text"],
.o4se-page-content input[type="email"],
.o4se-page-content input[type="password"],
.o4se-page-content input[type="search"],
.o4se-page-content textarea,
.o4se-page-content select,
#buddypress input[type="text"],
#buddypress input[type="email"],
#buddypress input[type="password"],
#buddypress input[type="search"],
#buddypress textarea,
#buddypress select {
	border: 1px solid #d8dee8;
	border-radius: 12px;
	background: #f8fafc;
	color: var(--o4se-ink);
	outline: none;
	transition: border .18s ease, box-shadow .18s ease, background .18s ease;
}

.o4se-page-content input:focus,
.o4se-page-content textarea:focus,
.o4se-page-content select:focus,
#buddypress input:focus,
#buddypress textarea:focus,
#buddypress select:focus {
	border-color: #7eacef;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(23, 105, 224, .11);
}

/* BuddyPress společný rám */
#buddypress.buddypress-wrap {
	max-width: 1180px;
	margin: 0 auto;
	color: var(--o4se-ink);
}

#buddypress a { text-decoration: none; }

#buddypress .bp-feedback,
#buddypress .bp-template-notice {
	padding: 16px 18px;
	border: 1px solid #cfe0fb;
	border-radius: 14px;
	background: var(--o4se-blue-soft);
	color: #29415f;
	box-shadow: none;
}

#buddypress .bp-feedback p,
#buddypress .bp-template-notice p { margin: 0; }

#buddypress .bp-navs {
	margin: 14px 0;
	border: 1px solid var(--o4se-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
	overflow-x: auto;
}

#buddypress .bp-navs ul {
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: max-content;
	padding: 7px;
	border: 0;
}

#buddypress .bp-navs li { float: none; margin: 0; }

#buddypress .bp-navs li a,
#buddypress .bp-navs li span {
	display: block;
	padding: 10px 14px;
	border: 0;
	border-radius: 10px;
	color: #596579;
	font-size: .92rem;
	font-weight: 650;
}

#buddypress .bp-navs li.current a,
#buddypress .bp-navs li.selected a,
#buddypress .bp-navs li a:hover {
	background: var(--o4se-blue-soft);
	color: var(--o4se-blue);
}

#buddypress .bp-navs li.current a::after,
#buddypress .bp-navs li.selected a::after { display: none; }

#buddypress .bp-navs .count {
	padding: 2px 7px;
	border: 0;
	border-radius: 99px;
	background: #e7edf5;
	color: #4b5b70;
	font-size: .72rem;
}

/* Profil */
body.buddypress.bp-user .o4se-page-heading { display: none; }

#buddypress #item-header {
	position: relative;
	min-height: 355px;
	margin-bottom: 18px;
	border: 1px solid var(--o4se-line);
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--o4se-shadow);
	overflow: hidden;
}

#buddypress #header-cover-image {
	height: 220px;
	background-color: #5274db;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

#buddypress #item-header-cover-image { min-height: 340px; padding: 0 28px 22px; }

#buddypress div#item-header #item-header-cover-image #item-header-avatar {
	position: absolute;
	left: 28px;
	top: 148px;
	z-index: 2;
	margin: 0;
	padding: 0;
}

#buddypress #item-header-avatar img.avatar {
	width: 138px;
	height: 138px;
	min-width: 138px;
	max-width: 138px;
	aspect-ratio: 1 / 1;
	margin: 0;
	border: 6px solid #fff;
	border-radius: 50%;
	background: #e9edf4;
	box-shadow: 0 8px 24px rgba(16, 24, 40, .18);
	object-fit: cover;
}

#buddypress div#item-header #item-header-cover-image #item-header-content {
	position: absolute;
	left: 190px;
	top: 228px;
	float: none;
	min-height: 92px;
	margin: 0;
	padding: 0;
	color: var(--o4se-ink);
}

#buddypress #item-header-content .user-nicename {
	margin: 0 0 2px;
	color: var(--o4se-ink);
	font-size: clamp(1.35rem, 3vw, 2rem);
	font-weight: 790;
	letter-spacing: -.035em;
	text-shadow: none;
}

#buddypress #item-header-content .activity { color: var(--o4se-muted); font-size: .84rem; }
#buddypress #item-header-content p { margin: 5px 0 0; color: #48576b; font-size: .92rem; }

/* Psaní příspěvku a feed */
#buddypress .activity-update-form,
#buddypress .activity-list .activity-item,
#buddypress .bp-list > li,
#buddypress .members-list > li,
#buddypress .groups-list > li {
	border: 1px solid var(--o4se-line);
	border-radius: var(--o4se-radius);
	background: #fff;
	box-shadow: var(--o4se-shadow);
}

#buddypress .activity-update-form { margin: 18px 0; padding: 18px; }

#buddypress #whats-new-avatar img,
#buddypress .activity-avatar img.avatar,
#buddypress .item-avatar img.avatar {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background: #edf1f6;
	object-fit: cover;
}

#buddypress #whats-new-content { margin-left: 62px; }

#buddypress #whats-new-textarea textarea {
	min-height: 54px;
	padding: 14px 16px;
	border: 1px solid #e1e6ed;
	border-radius: 16px;
	background: #f3f5f8;
	font-size: 1rem;
	resize: vertical;
}

#buddypress .activity-list { display: grid; gap: 16px; }
#buddypress .activity-list .activity-item { margin: 0; padding: 18px; }
#buddypress .activity-header p { color: #475467; font-size: .92rem; }
#buddypress .activity-header a { color: var(--o4se-ink); font-weight: 700; }

#buddypress .activity-content .activity-inner {
	margin: 14px 0;
	padding: 0;
	border: 0;
	font-size: 1rem;
}

#buddypress .activity-meta.action {
	display: flex;
	gap: 7px;
	padding-top: 10px;
	border-top: 1px solid #edf0f4;
}

#buddypress .activity-meta.action .button { background: transparent; color: #596579; box-shadow: none; }

#buddypress .activity-meta.action .button:hover {
	background: var(--o4se-blue-soft);
	color: var(--o4se-blue);
	transform: none;
}

#buddypress .activity-comments { margin: 14px 0 0 62px; }

/* Adresáře lidí a skupin */
#buddypress .subnav-filters,
#buddypress .bp-directory-type-navs { margin: 0 0 16px; }

#buddypress .subnav-filters {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px;
	border: 1px solid var(--o4se-line);
	border-radius: 14px;
	background: #fff;
}

#buddypress .subnav-search { flex: 1; }
#buddypress .subnav-search input[type="search"] { width: 100%; min-height: 42px; padding: 9px 42px 9px 14px; }

#buddypress .bp-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	border: 0;
}

/* Aktivita je seznam příspěvků, ne třísloupcový adresář členů. */
#buddypress .activity-list { grid-template-columns: minmax(0, 1fr); }

#buddypress .activity-comments .ac-form,
#buddypress .activity-comments .ac-reply-content,
#buddypress .activity-comments .ac-textarea { width: 100%; }

#buddypress .activity-comments textarea.ac-input {
	display: block;
	width: 100%;
	min-height: 88px;
	resize: vertical;
}

#buddypress .bp-list > li {
	min-width: 0;
	margin: 0;
	padding: 18px;
	border-bottom: 1px solid var(--o4se-line);
}

#buddypress .bp-list .item-avatar { float: none; margin-bottom: 12px; }

#buddypress .bp-list .item-avatar img.avatar {
	width: 72px;
	height: 72px;
	min-width: 72px;
	max-width: 72px;
	aspect-ratio: 1 / 1;
	box-shadow: 0 0 0 4px #fff, 0 0 0 6px #dbe8fa;
}

#buddypress .bp-list .item { margin-left: 0; }
#buddypress .bp-list .item-title { font-size: 1.05rem; font-weight: 750; }
#buddypress .bp-list .item-meta { color: var(--o4se-muted); font-size: .82rem; }
#buddypress .bp-list .action { position: static; margin-top: 13px; text-align: left; }

/* O4SE sledování */
.o4se-following-feed,
.o4se-social-feed,
.o4se-empty-state {
	padding: 24px;
	border: 1px solid var(--o4se-line);
	border-radius: var(--o4se-radius);
	background: #fff;
	box-shadow: var(--o4se-shadow);
}

.o4se-follow-button,
[data-o4se-follow] {
	border-radius: 11px !important;
	background: var(--o4se-blue) !important;
	color: #fff !important;
	font-weight: 700 !important;
}

/* Uvítací onboarding */
body:has(.o4se-onboarding) .o4se-page-content,
body:has(.o4se-dashboard) .o4se-page-content,
body:has(.o4se-dashboard-login) .o4se-page-content {
	max-width: 1180px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

body:has(.o4se-onboarding) .o4se-page-heading,
body:has(.o4se-dashboard) .o4se-page-heading { display: none; }

.o4se-onboarding {
	display: grid;
	grid-template-columns: minmax(0, .8fr) minmax(460px, 1.2fr);
	gap: clamp(32px, 6vw, 78px);
	align-items: center;
	max-width: 1060px;
	margin: 12px auto;
}

.o4se-onboarding-intro { padding: 24px 0; }

.o4se-step-label,
.o4se-eyebrow {
	display: block;
	margin-bottom: 8px;
	color: var(--o4se-blue);
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.o4se-onboarding-intro h2 {
	margin: 0;
	font-size: clamp(2.1rem, 4vw, 3.6rem);
	font-weight: 810;
	letter-spacing: -.055em;
	line-height: 1.03;
}

.o4se-onboarding-intro > p {
	margin: 20px 0 30px;
	color: var(--o4se-muted);
	font-size: 1.02rem;
}

.o4se-onboarding-steps {
	display: grid;
	gap: 13px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.o4se-onboarding-steps li {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #7a8799;
	font-size: .9rem;
	font-weight: 650;
}

.o4se-onboarding-steps span {
	display: grid;
	place-items: center;
	width: 31px;
	height: 31px;
	border: 1px solid #d8e0ea;
	border-radius: 50%;
	background: #fff;
	font-size: .8rem;
}

.o4se-onboarding-steps .is-active { color: var(--o4se-ink); }
.o4se-onboarding-steps .is-active span { border-color: var(--o4se-blue); background: var(--o4se-blue); color: #fff; }

.o4se-onboarding-form,
.o4se-onboarding-card {
	padding: clamp(24px, 4vw, 38px);
	border: 1px solid var(--o4se-line);
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--o4se-shadow);
}

.o4se-onboarding-form > label:not(.o4se-rules-check) {
	display: block;
	margin: 18px 0 7px;
	color: #344054;
	font-size: .87rem;
	font-weight: 750;
}

.o4se-onboarding-form label span { color: #8a95a5; font-weight: 500; }

.o4se-onboarding-form > input[type="text"],
.o4se-onboarding-form > textarea {
	display: block;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d8dee8;
	border-radius: 12px;
	background: #f8fafc;
}

.o4se-onboarding-form small {
	display: block;
	margin-top: 6px;
	color: #8490a2;
	font-size: .76rem;
}

.o4se-avatar-field {
	display: flex;
	align-items: center;
	gap: 18px;
	padding-bottom: 20px;
	border-bottom: 1px solid #edf0f4;
}

.o4se-avatar-preview img {
	display: block;
	width: 82px;
	height: 82px;
	border-radius: 50%;
	box-shadow: 0 0 0 4px #fff, 0 0 0 6px #dae6f7;
	object-fit: cover;
}

.o4se-avatar-field label { display: block; margin-bottom: 7px; color: #344054; font-size: .87rem; font-weight: 750; }
.o4se-avatar-field input[type="file"] { max-width: 100%; color: #5f6e82; font-size: .8rem; }
.o4se-avatar-field input::file-selector-button { margin-right: 9px; padding: 7px 10px; border: 0; border-radius: 8px; background: var(--o4se-blue-soft); color: var(--o4se-blue); font-weight: 700; }

.o4se-rules-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 22px 0;
	color: #536176;
	font-size: .84rem;
}

.o4se-rules-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--o4se-blue); }
.o4se-rules-check span { color: #536176 !important; }
.o4se-onboarding-submit { width: 100%; min-height: 49px !important; }

.o4se-form-error,
.o4se-dashboard-welcome {
	margin-bottom: 16px;
	padding: 13px 15px;
	border: 1px solid #f1c9c9;
	border-radius: 12px;
	background: #fff4f4;
	color: #8a3333;
	font-size: .87rem;
}

.o4se-dashboard-welcome {
	border-color: #bfe7d4;
	background: #effbf5;
	color: #246747;
}

.o4se-primary-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 9px 16px;
	border-radius: 11px;
	background: var(--o4se-blue);
	color: #fff !important;
	font-weight: 750;
	text-decoration: none;
}

/* Osobní Přehled */
.o4se-dashboard {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 24px;
	align-items: start;
}

.o4se-dashboard-main { min-width: 0; }

.o4se-composer,
.o4se-feed-card,
.o4se-feed-empty,
.o4se-side-card,
.o4se-dashboard-login {
	border: 1px solid var(--o4se-line);
	border-radius: var(--o4se-radius);
	background: #fff;
	box-shadow: var(--o4se-shadow);
}

.o4se-composer { padding: 18px; }
.o4se-composer-row { display: flex; align-items: flex-start; gap: 12px; }

.o4se-composer-avatar,
.o4se-feed-card header img,
.o4se-suggested-member img {
	flex: 0 0 auto;
	border-radius: 50%;
	object-fit: cover;
}

.o4se-composer textarea {
	width: 100%;
	min-height: 58px;
	padding: 15px 17px;
	border: 1px solid #e1e6ed;
	border-radius: 16px;
	background: #f3f5f8;
	resize: vertical;
}

.o4se-composer-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 13px 0 0 60px;
	padding-top: 12px;
	border-top: 1px solid #edf0f4;
}

.o4se-composer-footer span { color: #7b8797; font-size: .78rem; }
.o4se-composer-footer button { min-width: 112px; }

.o4se-feed-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin: 28px 3px 14px;
}

.o4se-feed-heading h2,
.o4se-side-card h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.035em; }
.o4se-feed-heading a { font-size: .82rem; font-weight: 700; text-decoration: none; }
.o4se-feed { display: grid; gap: 16px; }
.o4se-feed-card { padding: 18px; }
.o4se-feed-card header { display: flex; gap: 12px; align-items: center; }
.o4se-feed-card header img { width: 48px; height: 48px; }
.o4se-feed-action { color: #435066; font-size: .88rem; }
.o4se-feed-action a { color: var(--o4se-ink); font-weight: 750; }
.o4se-demo-badge {
	display: inline-block;
	margin-left: 7px;
	padding: 2px 7px;
	border-radius: 999px;
	background: #eef4ff;
	color: #5274db;
	font-size: .62rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	vertical-align: 1px;
}
.o4se-feed-time { color: #8792a2; font-size: .76rem; text-decoration: none; }
.o4se-feed-content { margin: 17px 0; color: #253044; font-size: 1rem; }
.o4se-feed-content p:last-child { margin-bottom: 0; }
.o4se-feed-content img.o4se-demo-feed-image {
	display: block;
	width: calc(100% + 36px);
	max-width: none;
	aspect-ratio: 16 / 9;
	margin: 16px -18px -17px;
	border-radius: 0;
	object-fit: cover;
}
.o4se-feed-card footer { padding-top: 11px; border-top: 1px solid #edf0f4; }
.o4se-feed-card footer a { color: #637186; font-size: .8rem; font-weight: 700; text-decoration: none; }

.o4se-feed-empty { padding: 44px 28px; text-align: center; }
.o4se-feed-empty > span { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 17px; border-radius: 16px; background: linear-gradient(135deg, var(--o4se-blue), #8c4bd8); color: #fff; font-size: 1.4rem; }
.o4se-feed-empty h3 { margin: 0; font-size: 1.25rem; }
.o4se-feed-empty p { margin: 8px auto 20px; color: var(--o4se-muted); }

.o4se-dashboard-side { position: sticky; top: 112px; display: grid; gap: 16px; }
.o4se-side-card { padding: 20px; }
.o4se-side-card > p { color: var(--o4se-muted); font-size: .86rem; }
.o4se-profile-shortcut__identity { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.o4se-profile-shortcut__identity img { display: block; width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.o4se-profile-shortcut__identity strong { display: block; overflow: hidden; max-width: 200px; color: var(--o4se-ink); font-size: .98rem; text-overflow: ellipsis; white-space: nowrap; }
.o4se-profile-shortcut__button { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 14px; border-radius: 11px; background: var(--o4se-blue-soft); color: var(--o4se-blue) !important; font-size: .82rem; font-weight: 750; text-align: center; text-decoration: none; }
.o4se-profile-shortcut__button:hover { background: var(--o4se-blue); color: #fff !important; }
.o4se-member-suggestions { display: grid; gap: 15px; margin-top: 18px; }
.o4se-suggested-member { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.o4se-suggested-member img { width: 42px; height: 42px; }
.o4se-suggested-member > div { min-width: 0; }
.o4se-suggested-member > div a { display: block; overflow: hidden; color: var(--o4se-ink); font-size: .84rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.o4se-suggested-member small { display: block; color: #8994a4; font-size: .7rem; }
.o4se-suggested-member form { margin: 0; }
.o4se-suggested-member button { min-height: 31px !important; padding: 5px 9px !important; border-radius: 8px !important; background: var(--o4se-blue-soft) !important; color: var(--o4se-blue) !important; font-size: .72rem; box-shadow: none !important; }
.o4se-side-more { display: block; margin-top: 19px; padding-top: 14px; border-top: 1px solid #edf0f4; font-size: .8rem; font-weight: 750; text-decoration: none; }
.o4se-side-card--quiet { background: rgba(255, 255, 255, .66); box-shadow: none; }
.o4se-side-card--quiet h3 { margin: 0; font-size: .96rem; }
.o4se-side-card--quiet p { margin-bottom: 0; line-height: 1.55; }

.o4se-dashboard-login,
.o4se-onboarding-card { max-width: 650px; margin: 24px auto; text-align: center; }

/* Registrace */
#buddypress #signup-form,
#buddypress .standard-form {
	padding: clamp(20px, 4vw, 34px);
	border: 1px solid var(--o4se-line);
	border-radius: var(--o4se-radius);
	background: #fff;
	box-shadow: var(--o4se-shadow);
}

#buddypress .standard-form label,
#buddypress .standard-form legend { color: #344054; font-weight: 700; }

@media (max-width: 900px) {
	.o4se-main { padding-inline: 18px; }
	.o4se-main-nav .wp-block-navigation-item__content { padding-inline: 11px !important; font-size: .87rem; }
	#buddypress .bp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.o4se-dashboard { grid-template-columns: minmax(0, 1fr) 285px; }
	.o4se-onboarding { grid-template-columns: 1fr; max-width: 680px; }
	.o4se-onboarding-intro { text-align: center; }
	.o4se-onboarding-intro > p { max-width: 570px; margin-inline: auto; }
	.o4se-onboarding-steps { display: flex; justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 700px) {
	body { padding-bottom: 68px; }
	body.admin-bar .o4se-site-header { top: 46px; }
	.o4se-site-header {
		overflow: visible;
		background: #fff;
		backdrop-filter: none;
	}
	.o4se-header-inner { min-height: 58px; padding-inline: 16px !important; }
	.o4se-brand { padding-left: 42px; font-size: 1.08rem; }
	.o4se-brand::before { width: 36px; height: 36px; }
	.o4se-main-nav {
		position: fixed;
		z-index: 110;
		left: 0;
		right: 0;
		top: auto !important;
		bottom: 0;
		min-height: 58px;
		padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
		border-top: 1px solid var(--o4se-line);
		background: rgba(255, 255, 255, .97);
		box-shadow: 0 -8px 24px rgba(16, 24, 40, .08);
		backdrop-filter: blur(16px);
	}
	.o4se-main-nav .wp-block-navigation__responsive-container-open { display: none !important; }
	.o4se-main-nav .wp-block-navigation__responsive-container { position: static; display: block !important; width: 100%; }
	.o4se-main-nav .wp-block-navigation__responsive-container-close { display: none; }
	.o4se-main-nav .wp-block-navigation__responsive-container-content { display: block; padding: 0 !important; }
	.o4se-main-nav .wp-block-navigation__container { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
	.o4se-main-nav .wp-block-navigation-item { justify-content: center; }
	.o4se-main-nav .wp-block-navigation-item__content { justify-content: center; min-height: 44px; padding: 5px 2px !important; font-size: .64rem; line-height: 1.05; text-align: center; }
	.o4se-notification-count { position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; margin: 0; padding: 0 4px; font-size: .58rem; }
	.o4se-profile-link .wp-block-navigation-item__content { background: var(--o4se-blue-soft) !important; color: var(--o4se-blue) !important; box-shadow: none; }
	.o4se-main { min-height: calc(100vh - 126px); padding: 24px 12px 38px; }
	.o4se-page-heading { margin-bottom: 14px; padding-inline: 4px; }
	body:not(.buddypress) .o4se-page-content { padding: 20px 16px; border-radius: 15px; }
	#buddypress #item-header { min-height: 370px; border-radius: 16px; }
	#buddypress #header-cover-image { height: 164px; }
	#buddypress #item-header-cover-image { min-height: 355px; padding: 0 18px 18px; }
	#buddypress div#item-header #item-header-cover-image #item-header-avatar { left: 18px; top: 108px; }
	#buddypress #item-header-avatar img.avatar { width: 112px; height: 112px; min-width: 112px; max-width: 112px; border-width: 5px; }
	#buddypress div#item-header #item-header-cover-image #item-header-content { left: 145px; top: 180px; min-height: 90px; margin: 0; padding: 0; }
	#buddypress #item-header-content .user-nicename { font-size: 1.25rem; }

	/* Skupina má navíc vedení skupiny; na mobilu ho skládáme vedle avataru. */
	body.groups.single-item #buddypress #item-header { min-height: 0; }
	body.groups.single-item #buddypress #item-header-cover-image { min-height: 390px; }
	body.groups.single-item #buddypress div#item-header #item-header-cover-image #item-header-avatar {
		left: 18px;
		top: 108px;
		width: 112px;
		height: 112px;
		text-align: left;
	}
	body.groups.single-item #buddypress #item-actions {
		position: absolute;
		z-index: 3;
		top: 178px;
		right: 18px;
		width: calc(100% - 160px);
		max-width: 180px;
		margin: 0;
		text-align: right;
	}
	body.groups.single-item #buddypress div#item-header #item-header-cover-image #item-header-content {
		left: 18px;
		right: 18px;
		top: 246px;
		width: auto;
		min-height: 120px;
		text-align: left;
	}
	#buddypress .activity-update-form,
	#buddypress .activity-list .activity-item { border-radius: 15px; }
	#buddypress #whats-new-content { margin-left: 0; padding-top: 10px; }
	#buddypress .activity-comments { margin-left: 0; }
	#buddypress .bp-list { grid-template-columns: 1fr; }
	#buddypress .dir-navs { overflow-x: visible; }
	#buddypress .dir-navs ul {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
		width: 100%;
	}
	#buddypress .dir-navs li { min-width: 0; }
	#buddypress .dir-navs li a,
	#buddypress .dir-navs li span {
		height: 100%;
		padding: 9px 7px;
		text-align: center;
		white-space: normal;
	}
	#buddypress .subnav-filters { align-items: stretch; flex-direction: column; }
	.o4se-site-footer { display: none; }
	.o4se-dashboard { display: block; }
	.o4se-dashboard-side { position: static; margin-top: 18px; }
	.o4se-feed-heading { align-items: center; }
	.o4se-feed-heading h2 { font-size: 1.2rem; }
	.o4se-feed-card,
	.o4se-composer,
	.o4se-side-card { border-radius: 15px; }
	.o4se-composer { padding: 14px; }
	.o4se-composer-footer { margin-left: 0; }
	.o4se-onboarding { display: block; margin-top: 0; }
	.o4se-onboarding-intro { padding: 0 6px 24px; }
	.o4se-onboarding-intro h2 { font-size: 2rem; }
	.o4se-onboarding-intro > p { margin-block: 14px 20px; }
	.o4se-onboarding-steps { display: none; }
	.o4se-onboarding-form { padding: 22px 17px; border-radius: 16px; }
	.o4se-avatar-field { align-items: flex-start; }
	.o4se-avatar-preview img { width: 68px; height: 68px; }

	/* WordPress kopíruje vlastní třídu navigace i na vnitřní seznam. */
	nav.o4se-main-nav { inset: auto 0 0 0 !important; }
	ul.o4se-main-nav {
		position: static;
		inset: auto;
		min-height: 0;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
		backdrop-filter: none;
	}
}

@media (max-width: 400px) {
	.o4se-main-nav .wp-block-navigation-item__content { font-size: .63rem; }
	#buddypress div#item-header #item-header-cover-image #item-header-content { left: 18px; top: 226px; }
}

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