/**
 * My Space — personal area homepage [user_my_space]
 *
 * Front-end-only / mock-data phase. Colors, sizes, radii and shadows are taken
 * straight from the Figma "My Space" design tokens (screen "2. Onboarding in
 * progress / Desktop").
 *
 * Layout note: the page renders RTL, so in flex rows the FIRST child sits on
 * the right and `align-items: flex-start` aligns to the right edge.
 */

/* Page shell — scoped to [user_my_space] output only */
.cob-my-space-page {
	background: var(--ms-gray-50, #f9fafb);
}

.cob-my-space-page {
	--ms-accent: #e91e63;
	--ms-gray-900: #111928;
	--ms-gray-800: #1f2a37;
	--ms-gray-700: #374151;
	--ms-gray-600: #4b5563;
	--ms-gray-500: #6b7280;
	--ms-gray-400: #9ca3af;
	--ms-gray-300: #d1d5db;
	--ms-gray-200: #e5e7eb;
	--ms-gray-100: #f3f4f6;
	--ms-gray-50: #f9fafb;
	--ms-green-800: #03543f;
	--ms-green-300: #84e1bc;
	--ms-green-100: #def7ec;
	--ms-yellow-800: #723b13;
	--ms-yellow-300: #faca15;
	--ms-yellow-100: #fdf6b2;
	--ms-blue-700: #1a56db;
}

.cob-my-space-shell {
	display: flex;
	align-items: stretch;
	max-width: 1728px;
	margin: 0 auto;
}

.cob-my-space {
	--ms-gray-900: #111928;
	--ms-gray-800: #1f2a37;
	--ms-gray-700: #374151;
	--ms-gray-600: #4b5563;
	--ms-gray-500: #6b7280;
	--ms-gray-400: #9ca3af;
	--ms-gray-300: #d1d5db;
	--ms-gray-200: #e5e7eb;
	--ms-gray-100: #f3f4f6;
	--ms-gray-50: #f9fafb;
	--ms-blue-100: #e1effe;
	--ms-blue-300: #a4cafe;
	--ms-blue-800: #1e429f;
	--ms-purple-100: #edebfe;
	--ms-purple-300: #cabffd;
	--ms-purple-600: #7e3af2;
	--ms-purple-800: #5521b5;
	--ms-indigo-700: #5145cd;
	--ms-magenta: #df2665;
	--ms-star: #f0ad1f;
	--ms-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.05), 0 4px 6px -1px rgba(0, 0, 0, 0.1);

	flex: 1 1 auto;
	min-width: 0;
	background: var(--ms-gray-50);
	max-width: none;
	margin: 0;
	padding: 32px 24px 64px;
	color: var(--ms-gray-900);
	font-family: inherit;
}

.cob-my-space__grid {
	display: flex;
	align-items: stretch;
	gap: 32px;
}

.cob-my-space__main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.cob-my-space__aside {
	position: relative;
	flex: 0 0 360px;
	width: 360px;
	padding-right: 32px;
}

/* Divider between the main column and the "recommended" aside, stretched
   to run the FULL page height — matching the nav/main divider — rather than
   stopping at the aside's own (possibly shorter) content height. `top`/
   `bottom` cancel out `.cob-my-space`'s own padding-top/padding-bottom so
   the line reaches that container's outer edges, same as the nav divider. */
.cob-my-space__aside::before {
	content: '';
	position: absolute;
	top: -32px;
	bottom: -64px;
	right: 0;
	width: 1px;
	background: var(--ms-gray-300);
}

/* ── Unified per-section page header (icon + pink title) ────────────────
   Same markup/position in every section — see cob_my_space_render_page_header()
   in includes/functions-user_my_space.php. Mirrors community_dashboard_shell's
   .cmdb-page-header treatment. */
.cob-ms-page-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cob-ms-page-header__icon {
	font-size: 28px;
	width: 28px;
	height: 28px;
	color: var(--ms-accent);
	flex-shrink: 0;
}

.cob-ms-page-header__title {
	margin: 0;
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ms-accent);
	text-align: right;
}

/* Some embedded real pages (settings/career/messages) already print their
   own on-page title — hidden here, only when rendered inside My Space, in
   favor of the unified header above. Their subtitles/content stay visible. */
.cob-ms-embed--settings .us-page-title,
.cob-ms-embed--career .header-title,
.cob-ms-embed--messages .messages-header h1 {
	display: none;
}

.cob-my-space__greeting {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.5;
	text-align: right;
	color: var(--ms-gray-900);
}

/* ── Shared building blocks ──────────────────────────────────────────── */

.cob-ms-card {
	background: #fff;
	border: 1px solid var(--ms-gray-200);
	border-radius: 8px;
	padding: 16px;
	box-shadow: var(--ms-shadow);
}

.cob-ms-section {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cob-ms-section__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	text-align: right;
	color:   #000000;
}


.cob-ms-section__stack {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Each extra "הצג עוד" page inside עדכונים — [hidden] alone loses to the
   .cob-ms-section__stack `display: flex` rule above at equal specificity,
   so it needs its own explicit override (same fix as .cob-rec-section__more). */
[data-updates-page][hidden] {
	display: none;
}

.cob-ms-section__row {
	display: flex;
	align-items: stretch;
	gap: 16px;
}

.cob-ms-section__row > * {
	flex: 1 1 0;
	min-width: 0;
}

.cob-ms-empty {
	color: var(--ms-gray-500);
	font-size: 14px;
	text-align: center;
}

.cob-ms-badge {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 2px 12px;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.cob-ms-badge svg {
	width: 16px;
	height: 16px;
}

.cob-ms-badge--blue {
	background: var(--ms-blue-100);
	border-color: var(--ms-blue-300);
	color: var(--ms-blue-800);
}

.cob-ms-badge--purple {
	background: var(--ms-purple-100);
	border-color: var(--ms-purple-300);
	color: var(--ms-purple-800);
}

.cob-ms-badge--green {
	background: var(--ms-green-100);
	border-color: var(--ms-green-300);
	color: var(--ms-green-800);
}

.cob-ms-badge--neutral {
	background: var(--ms-gray-50);
	border-color: var(--ms-gray-300);
	color: var(--ms-gray-900);
}

.cob-ms-badge--muted {
	background: var(--ms-gray-100);
	color: var(--ms-gray-600);
}

.cob-ms-avatar {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: var(--ms-purple-100);
	color: var(--ms-indigo-700);
	font-size: 16px;
	font-weight: 600;
}

.cob-ms-save {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	background: none;
	padding: 0;
	color: var(--ms-gray-400);
	cursor: pointer;
}

.cob-ms-save svg {
	width: 24px;
	height: 24px;
}

.cob-ms-save:hover,
.cob-ms-save:focus,
.cob-ms-save:active {
	color: var(--ms-gray-400);
}

.cob-ms-save.is-saved {
	color: var(--ms-star);
}

.cob-ms-save.is-saved:hover,
.cob-ms-save.is-saved:focus,
.cob-ms-save.is-saved:active {
	color: var(--ms-star);
}

.cob-ms-save.is-saved svg {
	fill: currentColor;
}

.cob-ms-button {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--ms-magenta);
	border-radius: 8px;
	background: var(--ms-magenta);
	padding: 10px 20px;
	font-size: 16px;
	font-weight: 600;
	color: #fff !important;
	text-decoration: none;
}

.cob-ms-button svg {
	width: 20px;
	height: 20px;
}

.cob-ms-button--outline {
	background: none;
	color: var(--ms-magenta) !important;
}

/* ── "הצעד הבא" banner ───────────────────────────────────────────────── */

.cob-ms-banner {
	background: #fff;
	border: 1px solid var(--ms-gray-200);
	border-radius: 8px;
	padding: 16px;
	box-shadow: var(--ms-shadow);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.cob-ms-banner__eyebrow,
.cob-ms-banner__desc {
	margin: 0;
	width: 100%;
	font-size: 14px;
	line-height: 1.5;
	text-align: right;
	color: var(--ms-gray-900);
}

.cob-ms-banner__title {
	margin: 0;
	width: 100%;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	text-align: right;
	color: var(--ms-gray-900);
}

.cob-ms-banner__progress {
	width: 100%;
	margin-top: 4px;
}

.cob-ms-banner__progress-value {
	display: block;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--ms-gray-500);
}

.cob-ms-banner__progress-track {
	width: 100%;
	height: 6px;
	border-radius: 2px;
	background: var(--ms-gray-200);
	overflow: hidden;
}

.cob-ms-banner__progress-fill {
	height: 100%;
	border-radius: 2px;
	background: var(--ms-magenta);
}

/* ── "העדפות" — topic-tag preference widget (top banner + sidebar accordion) ── */

.cob-ms-pref {
	background: #fff;
	border: 1px solid var(--ms-gray-200);
	border-radius: 8px;
	padding: 16px;
	box-shadow: var(--ms-shadow);
}

.cob-ms-pref--top {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cob-ms-pref__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	text-align: right;
	color: var(--ms-gray-900);
}

.cob-ms-pref__desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	text-align: right;
	color: var(--ms-gray-500, #6b7280);
}

.cob-ms-pref--top [data-ms-pref-save] {
	align-self: flex-start;
	margin-top: 4px;
}

.cob-ms-pref__success {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	color: var(--ms-gray-900);
}

.cob-ms-pref__success[hidden] {
	display: none;
}

.cob-ms-pref--aside {
	padding: 0;
	overflow: hidden;
    margin-bottom: 20px;
    margin-top: -5px;
	border: 1px dashed var(--ms-gray-500, #6b7280);
}

.cob-ms-pref__toggle,
.cob-ms-pref__toggle:hover,
.cob-ms-pref__toggle:focus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border: 0;
	background: none;
	padding: 12px;
	color: #000;
	cursor: pointer;
}

.cob-ms-pref__toggle-icon,
.cob-ms-pref__toggle:hover .cob-ms-pref__toggle-icon {
	display: inline-flex;
	width: 16px;
	height: 16px;
	color: #000;
	transition: transform 0.2s ease;
}

.cob-ms-pref__toggle-icon svg {
	width: 100%;
	height: 100%;
}

.cob-ms-pref__toggle[aria-expanded="true"] .cob-ms-pref__toggle-icon {
	transform: rotate(180deg);
}

.cob-ms-pref__panel {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 16px 16px;
}

.cob-ms-pref__panel[hidden] {
	display: none;
}

.cob-ms-pref-group__name {
	margin: 10px 0 4px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ms-gray-500, #6b7280);
}

.cob-ms-pref-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

button.cob-ms-pref-chip {
	border: 1px solid var(--chip-fg, #f3b4cb);
	background: var(--chip-bg, #fff);
	color: var(--chip-fg, #c2185b);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	position: relative;
}

button.cob-ms-pref-chip.is-selected {
	box-shadow: inset 0 0 0 2px var(--chip-fg, #e91e63);
}

button.cob-ms-pref-chip.is-selected::after {
	content: "\2713";
	position: absolute;
	top: -6px;
	right: -6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #16a34a;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 0 0 2px #fff;
	pointer-events: none;
}

button.cob-ms-pref-chip:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* ── "עדכונים" cards ─────────────────────────────────────────────────── */

.cob-ms-update {
	background: #fff;
	border: 1px solid var(--ms-gray-200);
	border-radius: 8px;
	padding: 16px;
	box-shadow: var(--ms-shadow);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.cob-ms-update--clickable {
	cursor: pointer;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.cob-ms-update--clickable:hover {
	border-color: var(--ms-gray-300, #d1d5db);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cob-ms-update__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 8px;
}

.cob-ms-update__author {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.cob-ms-update__author-name {
	font-size: 14px;
	color: var(--ms-gray-600);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cob-ms-update__title {
	margin: 0;
	width: 100%;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: right;
	color: var(--ms-gray-900);
}

.cob-ms-update__meta {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ms-gray-900);
}

.cob-ms-update__meta svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.cob-ms-update__body {
	margin: 0;
	width: 100%;
	font-size: 14px;
	line-height: 1.5;
	text-align: right;
	color: var(--ms-gray-900);
}

.cob-ms-update__footer {
	margin: 0;
	width: 100%;
	font-size: 14px;
	line-height: 1.5;
	text-align: right;
	color: var(--ms-gray-600);
}

/* ── "הפעילות שלי" ───────────────────────────────────────────────────── */

.cob-ms-activity {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cob-ms-activity__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cob-ms-activity__title {
	margin: 0;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.25;
	text-align: right;
	color: var(--ms-gray-900);
}

.cob-ms-tile {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
}

.cob-ms-tile svg {
	width: 20px;
	height: 20px;
}

.cob-ms-tile--community {
	background: var(--ms-purple-100);
	color: var(--ms-purple-600);
}

.cob-ms-tile--locked {
	background: var(--ms-gray-100);
	color: var(--ms-gray-500);
}

.cob-ms-activity__locked-text {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	text-align: right;
	color: var(--ms-gray-500);
}

.cob-ms-activity__list {
	display: flex;
	flex-direction: column;
}

.cob-ms-stat {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 0;
	border-bottom: 1px solid var(--ms-gray-200);
	text-decoration: none;
	color: inherit;
}

.cob-ms-stat__text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: right;
}

.cob-ms-stat__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ms-gray-900);
}

.cob-ms-stat__subtitle {
	font-size: 14px;
	line-height: 1.5;
	color: var(--ms-gray-700);
}

.cob-ms-stat__chevron {
	flex: 0 0 auto;
	display: inline-flex;
	width: 20px;
	height: 20px;
	color: var(--ms-gray-900);
}

.cob-ms-stat__chevron svg {
	width: 100%;
	height: 100%;
}

/* ── "לגלות עוד" ─────────────────────────────────────────────────────── */

.cob-ms-discover {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.cob-ms-discover__label {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: right;
	color: var(--ms-magenta);
}

.cob-ms-discover__chevron {
	flex: 0 0 auto;
	display: inline-flex;
	width: 20px;
	height: 20px;
	color: var(--ms-gray-900);
}

.cob-ms-discover__chevron svg {
	width: 100%;
	height: 100%;
}

/* ── "מומלצים עבורך" — populated state ───────────────────────────────── */

.cob-rec-section {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cob-rec-section__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	text-align: right;
	color: var(--ms-gray-900, #111928);
}

/* Not yet wired to real data — shown greyed-out and non-interactive. */
.cob-rec-section--disabled {
	opacity: 0.5;
	filter: grayscale(0.6);
	pointer-events: none;
	user-select: none;
}

.cob-rec-section--disabled .cob-rec-section__title {
	color: var(--ms-gray-600, #4b5563);
}

.cob-rec-section__list,
.cob-rec-section__more {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cob-rec-section__more[hidden] {
	display: none;
}

.cob-rec-section__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	border: 0;
	background: none;
	padding: 8px 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--ms-magenta, #df2665);
	cursor: pointer;
}

.cob-rec-section__toggle:hover,
.cob-rec-section__toggle:focus,
.cob-rec-section__toggle:active,
.cob-rec-section__toggle:visited {
	color: var(--ms-magenta, #df2665);
}

.cob-rec-section__toggle-icon {
	display: inline-flex;
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.cob-rec-section__toggle-icon svg {
	width: 100%;
	height: 100%;
}

.cob-rec-section__toggle[aria-expanded="true"] .cob-rec-section__toggle-icon {
	transform: rotate(180deg);
}

.cob-rec-card {
	background: #fff;
	border: 1px solid var(--ms-gray-200, #e5e7eb);
	border-radius: 8px;
	box-shadow: var(--ms-shadow, 0 2px 4px -2px rgba(0, 0, 0, 0.05), 0 4px 6px -1px rgba(0, 0, 0, 0.1));
	overflow: hidden;
}

.cob-rec-card__image {
	width: 100%;
	aspect-ratio: 360 / 204;
	background: #c4c4c4;
	border-bottom: 1px solid var(--ms-gray-200, #e5e7eb);
}

.cob-rec-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 16px;
}

.cob-rec-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 8px;
}

.cob-rec-card__org {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.cob-rec-card__org-name {
	font-size: 14px;
	color: var(--ms-gray-600, #4b5563);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cob-rec-card__title {
	margin: 0;
	width: 100%;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: right;
	color: var(--ms-gray-800, #1f2a37);
}

.cob-rec-card__desc {
	margin: 0;
	width: 100%;
	font-size: 14px;
	line-height: 1.5;
	text-align: right;
	color: var(--ms-gray-900, #111928);
}

/* ── "מומלצים עבורך" — locked state (before onboarding is complete) ──── */

.cob-rec-locked {
	background: #fff;
	border: 1px dashed var(--ms-gray-500, #6b7280);
	border-radius: 8px;
	padding-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cob-rec-locked__caption {
	margin: 0;
	padding: 0 16px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-align: right;
	color: var(--ms-gray-900, #111928);
}

.cob-rec-locked__rows {
	border-top: 1px solid var(--ms-gray-200, #e5e7eb);
	display: flex;
	flex-direction: column;
}

.cob-rec-locked__row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 12px 20px;
	border-bottom: 1px solid var(--ms-gray-200, #e5e7eb);
}

.cob-rec-locked__row:last-child {
	border-bottom: 0;
}

.cob-rec-locked__row-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 8px;
}

.cob-rec-locked__lock {
	flex: 0 0 auto;
	display: inline-flex;
	width: 20px;
	height: 20px;
	color: var(--ms-gray-500, #6b7280);
}

.cob-rec-locked__lock svg {
	width: 100%;
	height: 100%;
}

.cob-rec-locked__row-title,
.cob-rec-locked__row-desc {
	margin: 0;
	width: 100%;
	text-align: right;
	color: var(--ms-gray-500, #6b7280);
}

.cob-rec-locked__row-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
}

.cob-rec-locked__row-desc {
	font-size: 14px;
	line-height: 1.5;
}

.cob-rec-locked .cob-ms-button {
	margin: 0 16px 16px;
}

.cob-rec-card__image {
	background-size: cover;
	background-position: center;
}

/* ── Preview bar (admins / test env only) ─────────────────────────────── */

.cob-my-space-preview {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	max-width: 1728px;
	margin: 0 auto;
	padding: 12px 24px;
	background: #fff;
	border-bottom: 1px solid var(--ms-gray-200, #e5e7eb);
	font-size: 14px;
}

.cob-my-space-preview__select {
	min-width: 280px;
	padding: 6px 10px;
	border: 1px solid var(--ms-gray-300, #d1d5db);
	border-radius: 6px;
}

/* ── Personal nav (Figma sidebar) ───────────────────────────────────── */

.cob-my-space-nav {
	flex: 0 0 250px;
	width: 250px;
	border-left: 1px solid var(--ms-gray-300, #d1d5db);
	border-bottom: 1px solid var(--ms-gray-300, #d1d5db);
	background: #fff;
	padding: 16px 12px;
	min-height: 400px;
	transition: flex-basis 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.cob-my-space-nav.is-collapsed {
	flex: 0 0 64px;
	width: 64px;
	padding: 16px 8px;
}

.cob-ms-sidebar-toggle,
.cob-ms-sidebar-toggle:hover,
.cob-ms-sidebar-toggle:focus,
.cob-ms-sidebar-toggle:active {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0 0 10px;
	padding: 8px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--ms-gray-500, #6b7280) !important;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.cob-ms-sidebar-toggle:hover {
	background-color: var(--ms-gray-100, #f3f4f6);
}

.cob-ms-sidebar-toggle-icon,
.cob-ms-sidebar-toggle:hover .cob-ms-sidebar-toggle-icon,
.cob-ms-sidebar-toggle:focus .cob-ms-sidebar-toggle-icon,
.cob-ms-sidebar-toggle:active .cob-ms-sidebar-toggle-icon {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
	color: inherit !important;
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.cob-my-space-nav.is-collapsed .cob-ms-sidebar-toggle-icon {
	transform: rotate(180deg);
}

.cob-my-space-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cob-my-space-nav__item:last-child {
	padding-bottom: 8px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--ms-gray-300, #d1d5db);
}

.cob-my-space-nav__link {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	padding: 8px;
	border-radius: 6px;
	text-decoration: none;
	color: var(--ms-gray-900, #111928);
	font-size: 16px;
}

.cob-my-space-nav__link.is-active {
	background: var(--ms-gray-100, #f3f4f6);
	font-weight: 600;
}

.cob-my-space-nav__icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 1;
	color: var(--ms-magenta, #e60d64);
}

.cob-my-space-nav__link.is-active .cob-my-space-nav__icon {
	color: var(--ms-accent);
}

/* Collapsed: icons only, labels + badges hidden (matches the community
   dashboard shell's collapsed sidebar behavior). */
.cob-my-space-nav.is-collapsed .cob-my-space-nav__link {
	justify-content: center;
	gap: 0;
}

.cob-my-space-nav.is-collapsed .cob-my-space-nav__label,
.cob-my-space-nav.is-collapsed .cob-my-space-nav__badge {
	display: none;
}

.cob-my-space-nav__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--ms-magenta, #df2665);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}

/* ── Toast ──────────────────────────────────────────────────────────── */

.cob-ms-toast {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 16px;
	border: 1px solid var(--ms-green-300, #84e1bc);
	border-radius: 6px;
	background: var(--ms-green-100, #def7ec);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.cob-ms-toast[hidden] {
	display: none;
}

.cob-ms-toast__icon {
	flex: 0 0 auto;
	display: inline-flex;
	width: 32px;
	height: 32px;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--ms-green-100, #def7ec);
	color: var(--ms-green-800, #03543f);
}

.cob-ms-toast__icon svg {
	width: 20px;
	height: 20px;
}

.cob-ms-toast__message {
	flex: 1 1 auto;
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	text-align: right;
	color: var(--ms-green-800, #03543f);
}

.cob-ms-toast__close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 0;
	background: none;
	padding: 0;
	color: var(--ms-green-800, #03543f);
	cursor: pointer;
}

.cob-ms-toast__close svg {
	width: 18px;
	height: 18px;
}

/* ── Updates empty ──────────────────────────────────────────────────── */

.cob-ms-updates-empty {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
}

.cob-ms-updates-empty__icon {
	flex: 0 0 auto;
	display: inline-flex;
	width: 45px;
	height: 45px;
	align-items: center;
	justify-content: center;
	color: var(--ms-magenta, #df2665);
}

.cob-ms-updates-empty__icon svg {
	width: 32px;
	height: 32px;
}

.cob-ms-updates-empty__title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	text-align: right;
	color: var(--ms-gray-900, #111928);
}

.cob-ms-updates-empty__subtitle {
	margin: 4px 0 0;
	font-size: 16px;
	line-height: 1.5;
	text-align: right;
	color: var(--ms-gray-600, #4b5563);
}

.cob-ms-update--compact .cob-ms-update__body {
	display: none;
}

/* ── Activity tiles / pending / metrics ─────────────────────────────── */

.cob-ms-tile--course {
	background: var(--ms-blue-100, #e1effe);
	color: var(--ms-blue-800, #1e429f);
}

.cob-ms-tile--job {
	background: var(--ms-blue-100, #e1effe);
	color: var(--ms-blue-700, #1a56db);
}

.cob-ms-badge--pending {
	background: var(--ms-yellow-100, #fdf6b2);
	border: 1px solid var(--ms-yellow-300, #faca15);
	color: var(--ms-yellow-800, #723b13);
	margin-top: 4px;
	align-self: flex-start;
}

.cob-ms-stat--metric {
	align-items: center;
}

.cob-ms-stat__title--regular {
	font-weight: 400;
	font-size: 16px;
}

.cob-ms-stat__metric {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 6px;
	border-radius: 8px;
	background: var(--ms-blue-100, #e1effe);
	color: var(--ms-blue-700, #1a56db);
	font-size: 20px;
	font-weight: 600;
}

.cob-ms-section__row--cols-3 > * {
	flex: 1 1 0;
}

.cob-ms-section__row--cols-1 > * {
	flex: 1 1 100%;
}

/* ── Mobile header (☆ / 🔔 / ☰) + side drawer ─────────────────────────── */

.cob-my-space-mobile-header {
	display: none;
}

.cob-my-space-mobile-header__icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	background: none;
	padding: 0;
	color: var(--ms-gray-700, #374151);
	cursor: pointer;
	text-decoration: none;
}

.cob-my-space-mobile-header__icon-btn svg {
	width: 22px;
	height: 22px;
}

.cob-my-space-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 25, 40, 0.4);
	z-index: 60;
}

.cob-my-space-drawer-overlay[hidden] {
	display: none;
}

.cob-my-space-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	width: min(80vw, 320px);
	background: #fff;
	z-index: 61;
	box-shadow: -4px 0 16px rgba(0, 0, 0, 0.12);
	padding: 16px;
	overflow-y: auto;
}

.cob-my-space-drawer[hidden] {
	display: none;
}

.cob-my-space-drawer__head {
	display: flex;
	justify-content: flex-start;
	margin-bottom: 12px;
}

.cob-my-space-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 0;
	background: none;
	padding: 0;
	color: var(--ms-gray-700, #374151);
	cursor: pointer;
}

.cob-my-space-drawer__close svg {
	width: 20px;
	height: 20px;
}

.cob-my-space-drawer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

body.cob-ms-drawer-open {
	overflow: hidden;
}

/* ── "הקורסים שלי" placeholder (no real data source yet) ─────────────── */

.cob-ms-placeholder__text {
	margin: 0;
	text-align: right;
	color: var(--ms-gray-500, #6b7280);
	font-size: 16px;
	line-height: 1.5;
}

/* ── Embedded real pages (הודעות/הקהילות שלי/דוח קריירה/פרופיל/הגדרות) ── */

.cob-ms-embed {
	background: transparent;
}

/* The embedded /mycommunities/ content (communities tab) ships a core
   WordPress search block whose icon <svg> carries class="search-icon".
   member-profile.css (also loaded on this page, for the profile tab) has
   its own unrelated `.search-icon` rule for the profile page's skills
   search field, which absolutely-positions/fades its icon. Since that
   selector isn't scoped, it leaks onto this unrelated icon too, popping it
   out of the search button (→ blank white button). Reset it back to normal
   inline rendering, scoped to this tab only. */
.cob-ms-embed--communities .search-icon {
	position: static;
	top: auto;
	left: auto;
	transform: none;
	opacity: 1;
	pointer-events: auto;
	font-size: inherit;
}

/* Same embedded search block — drop its default white button background,
   on this page only. */
.cob-ms-embed--communities .wp-block-search__button {
	background-color: transparent;
}

/* Embedded /mycommunities/ content's section heading ("כל הקהילות במקום
   אחד") — bold + centered, on this page only. */
.cob-ms-embed--communities .wp-block-heading {
	font-weight: 700;
	text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 900px) {
	.cob-my-space-shell {
		flex-direction: column;
	}

	.cob-my-space-nav {
		display: none;
	}

	.cob-my-space {
		padding: 16px 13px 32px;
	}

	.cob-my-space__grid {
		flex-direction: column;
		gap: 24px;
	}

	.cob-my-space__grid--rec-first-mobile .cob-my-space__aside {
		order: -1;
		border-top: 0;
		padding-top: 0;
		border-bottom: 1px solid var(--ms-gray-300, #d1d5db);
		padding-bottom: 24px;
	}

	.cob-my-space__aside {
		width: 100%;
		flex: 1 1 auto;
		border-right: 0;
		border-top: 1px solid var(--ms-gray-300, #d1d5db);
		padding-right: 0;
		padding-top: 24px;
	}

	/* Mobile stacks main/aside vertically with a horizontal border-top
	   divider (above) — the desktop full-height vertical line is irrelevant
	   here and must stay hidden so mobile layout is unaffected. */
	.cob-my-space__aside::before {
		display: none;
	}

	.cob-ms-section__row,
	.cob-ms-section__row--cols-3 {
		flex-direction: column;
	}

	.cob-ms-section__title {
		font-size: 21px;
	}

	.cob-my-space-mobile-header {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 8px;
		padding: 12px 16px;
		background: #fff;
		border-bottom: 1px solid var(--ms-gray-200, #e5e7eb);
	}

}

.inside-article > .entry-content:has(> .cob-my-space-page) {
    margin-top: 0;
}
