/* Member profile ("ProjectProfile"), Tina's design: buddypress/members/single/customprofile.php.
   Everything is scoped to #ipm-prof: BuddyBoss styles buttons and links on member pages with long selectors
   (.buddypress .buddypress-wrap button …), and custom.css sets the font of headings, links, list items and paragraphs
   with !important. */

#ipm-prof {
	--ipm-prof-navy: #192647;
	--ipm-prof-text: #3d4659;
	--ipm-prof-muted: #8a94a6;
	--ipm-prof-blue: #224d7e;
	--ipm-prof-sky: #46b1e4;
	--ipm-prof-line: #e4e7ec;
	--ipm-prof-soft: #f4f6f9;
	--ipm-prof-chip: #eaf3fc;
	--ipm-prof-gradient: linear-gradient(90deg, #224d7e 0%, #b05fdc 100%);
	--ipm-prof-shadow: 0 2px 14px rgba(25, 38, 71, 0.08);
	--ipm-prof-font: var(--Runda-N, 'Runda-Normal'), var(--Runda, 'Runda'), sans-serif;
	--ipm-prof-font-m: var(--Runda-M, 'Runda-Medium'), sans-serif;
	--ipm-prof-gap: 18px;
	max-width: 1040px;
	margin: 0 auto 40px;
	color: var(--ipm-prof-navy);
	font-family: var(--ipm-prof-font);
	font-size: 15px;
	line-height: 1.5;
}

#ipm-prof,
#ipm-prof h1,
#ipm-prof h2,
#ipm-prof h3,
#ipm-prof h4,
#ipm-prof p,
#ipm-prof a,
#ipm-prof li,
#ipm-prof dt,
#ipm-prof dd,
#ipm-prof button {
	font-family: var(--ipm-prof-font) !important;
}

/* Medium face. */
#ipm-prof .ipm-prof-name,
#ipm-prof .ipm-prof-title,
#ipm-prof .ipm-prof-subtitle,
#ipm-prof .ipm-prof-tab,
#ipm-prof .ipm-prof-btn,
#ipm-prof .ipm-prof-link,
#ipm-prof .ipm-prof-more,
#ipm-prof .ipm-prof-tag,
#ipm-prof .ipm-prof-reach-count,
#ipm-prof .ipm-prof-stats-title,
#ipm-prof .ipm-prof-stat dd,
#ipm-prof .ipm-prof-item-title,
#ipm-prof .ipm-prof-item-sub,
#ipm-prof .ipm-prof-badge-name,
#ipm-prof .ipm-prof-chip,
#ipm-prof .ipm-prof-pdus-total strong,
#ipm-prof .ipm-prof-cycle-head,
#ipm-prof .ipm-prof-connections-count,
#ipm-prof .ipm-prof-resource-title,
#ipm-prof .ipm-prof-byline-name,
#ipm-prof .ipm-prof-post-title,
#ipm-prof .ipm-prof-post-title a,
#ipm-prof .ipm-prof-post-type,
#ipm-prof .ipm-prof-course-title,
#ipm-prof .ipm-prof-cert-title,
#ipm-prof .ipm-prof-formats strong,
#ipm-prof .ipm-prof-availability dd,
#ipm-prof .ipm-prof-current,
#ipm-prof .ipm-prof-open,
#ipm-prof .ipm-prof-first-title,
#ipm-prof .ipm-prof-prompt-title {
	font-family: var(--ipm-prof-font-m) !important;
	font-weight: 500;
}

#ipm-prof h1,
#ipm-prof h2,
#ipm-prof h3,
#ipm-prof h4,
#ipm-prof p,
#ipm-prof ul,
#ipm-prof ol,
#ipm-prof dl,
#ipm-prof dd {
	margin: 0;
	padding: 0;
	color: inherit;
	letter-spacing: 0;
}

#ipm-prof ul,
#ipm-prof ol {
	list-style: none;
}

#ipm-prof li {
	margin: 0;
	list-style: none;
}

#ipm-prof a {
	color: inherit;
	text-decoration: none;
}

#ipm-prof img {
	max-width: 100%;
}

#ipm-prof [hidden] {
	display: none !important;
}

#ipm-prof .ipm-prof-icon {
	flex: none;
	vertical-align: middle;
}

#ipm-prof :focus-visible {
	outline: 2px solid var(--ipm-prof-blue);
	outline-offset: 2px;
}

/* Cards */
#ipm-prof .ipm-prof-card {
	margin: 0 0 var(--ipm-prof-gap);
	padding: 24px;
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--ipm-prof-shadow);
	scroll-margin-top: calc(var(--ipm-prof-top, 0px) + 84px);
}

#ipm-prof .ipm-prof-card:focus {
	outline: none;
}

#ipm-prof .ipm-prof-section-head,
#ipm-prof .ipm-prof-sub-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

#ipm-prof .ipm-prof-sub-head {
	margin: 4px 0 14px;
}

#ipm-prof .ipm-prof-sub-head + .ipm-prof-cards,
#ipm-prof .ipm-prof-sub-head + .ipm-prof-empty {
	margin-bottom: 26px;
}

#ipm-prof .ipm-prof-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	color: var(--ipm-prof-navy);
	font-size: 20px;
	line-height: 1.3;
}

#ipm-prof .ipm-prof-title--small {
	font-size: 18px;
}

#ipm-prof .ipm-prof-subtitle {
	margin: 0 0 10px;
	color: var(--ipm-prof-navy);
	font-size: 16px;
	line-height: 1.4;
}

#ipm-prof .ipm-prof-count {
	color: var(--ipm-prof-muted);
	font-family: var(--ipm-prof-font) !important;
	font-size: 13px;
	font-weight: 400;
}

#ipm-prof .ipm-prof-tools {
	display: flex;
	gap: 6px;
	margin-left: auto;
}

#ipm-prof .ipm-prof-empty {
	color: var(--ipm-prof-muted);
	font-size: 14px;
}

/* Someone else's profile without projects ("Visitor · Empty"): one quiet line in place of the numbers and Project
   Experience. */
#ipm-prof .ipm-prof-noprojects {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 var(--ipm-prof-gap);
	padding: 12px 16px;
	border: 1px solid var(--ipm-prof-line);
	border-radius: 12px;
	background: var(--ipm-prof-soft);
	color: var(--ipm-prof-muted);
	font-size: 13px;
	line-height: 1.4;
	scroll-margin-top: calc(var(--ipm-prof-top, 0px) + 84px);
}

#ipm-prof .ipm-prof-noprojects svg {
	flex: none;
}

/* An empty section on your own profile (Tina's Credentials empty state): icon, title, line, button. */
#ipm-prof .ipm-prof-prompt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
	padding: 18px 20px;
	border-radius: 10px;
	background: var(--ipm-prof-soft);
}

#ipm-prof .ipm-prof-prompt-icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--ipm-prof-line);
	border-radius: 50%;
	background: #fff;
	color: var(--ipm-prof-blue);
}

#ipm-prof .ipm-prof-prompt-text {
	flex: 1 1 220px;
	min-width: 0;
}

#ipm-prof .ipm-prof-prompt-title {
	margin: 0 0 2px;
	color: var(--ipm-prof-navy);
	font-size: 15px;
	line-height: 1.4;
}

#ipm-prof .ipm-prof-prompt-sub {
	color: var(--ipm-prof-muted);
	font-size: 13px;
	line-height: 1.5;
}

#ipm-prof .ipm-prof-prompt .ipm-prof-btn {
	flex: none;
}

/* Header on a new member's own profile ("Owner · Empty"): "Add a headline…", "Add your location",
   "0 connections · Find people you know". */
#ipm-prof .ipm-prof-add-line {
	gap: 5px;
	font-size: inherit;
	white-space: normal;
	text-align: left;
}

#ipm-prof .ipm-prof-reach-find {
	font-size: 13px;
}

#ipm-prof .ipm-prof-reach-find::before {
	content: "·";
	display: inline-block;
	margin-right: 6px;
	color: var(--ipm-prof-muted);
	text-decoration: none;
}

/* Badges with none earned yet: "Earn your first badge" and "See how to earn badges". */
#ipm-prof .ipm-prof-badge--first {
	grid-template-columns: 64px minmax(0, 1fr);
	padding-top: 0;
}

#ipm-prof .ipm-prof-badge--first + .ipm-prof-link {
	margin-top: 8px;
}

/* Complete your profile ("Owner · Empty"). */
#ipm-prof .ipm-prof-steps-sub {
	margin: 4px 0 16px;
	color: var(--ipm-prof-muted);
	font-size: 13px;
	line-height: 1.5;
}

#ipm-prof .ipm-prof-steps .ipm-prof-cycle-head {
	font-size: 13px;
}

#ipm-prof .ipm-prof-steps-list {
	margin-top: 14px;
}

#ipm-prof .ipm-prof-step {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	color: var(--ipm-prof-navy);
	font-size: 14px;
	line-height: 1.4;
}

#ipm-prof .ipm-prof-step-mark {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	border: 1.5px solid #c3cad6;
	border-radius: 50%;
	background: #fff;
	color: #fff;
}

#ipm-prof .ipm-prof-step.is-done .ipm-prof-step-mark {
	border-color: var(--ipm-prof-blue);
	background: var(--ipm-prof-blue);
}

#ipm-prof .ipm-prof-step-mark .ipm-prof-icon {
	stroke-width: 2.4;
}

#ipm-prof .ipm-prof-step-label {
	flex: 1 1 auto;
	min-width: 0;
}

#ipm-prof .ipm-prof-step.is-done .ipm-prof-step-label {
	color: var(--ipm-prof-muted);
	text-decoration: line-through;
}

#ipm-prof .ipm-prof-step .ipm-prof-link {
	flex: none;
	font-size: 13px;
}

/* Project Experience with no projects, on your own profile ("Owner · Partial (no projects)"). */
#ipm-prof .ipm-prof-first {
	display: flex;
	align-items: center;
	gap: 24px 40px;
	padding: 36px 40px;
	border-radius: 12px;
	background: linear-gradient(135deg, #f1f5fa 0%, var(--ipm-prof-soft) 100%);
}

#ipm-prof .ipm-prof-first-art {
	flex: none;
	width: 180px;
	max-width: 100%;
	height: auto;
}

#ipm-prof .ipm-prof-first-body {
	flex: 1 1 auto;
	min-width: 0;
}

#ipm-prof .ipm-prof-first-title {
	margin: 0 0 10px;
	color: var(--ipm-prof-navy);
	font-size: 20px;
	line-height: 1.3;
}

#ipm-prof .ipm-prof-first-text {
	margin-bottom: 12px;
	color: var(--ipm-prof-text);
	font-size: 14px;
	line-height: 1.6;
}

#ipm-prof .ipm-prof-checks {
	margin-bottom: 20px;
}

#ipm-prof .ipm-prof-checks li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
	color: var(--ipm-prof-text);
	font-size: 13px;
	line-height: 1.45;
}

#ipm-prof .ipm-prof-checks .ipm-prof-icon {
	flex: none;
	color: var(--ipm-prof-blue);
}

#ipm-prof .ipm-prof-first-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

#ipm-prof .ipm-prof-foot {
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid var(--ipm-prof-line);
	text-align: center;
}

#ipm-prof .ipm-prof-text p {
	margin: 0 0 10px;
	color: var(--ipm-prof-text);
	font-size: 15px;
	line-height: 1.65;
}

#ipm-prof .ipm-prof-text p:last-child {
	margin-bottom: 0;
}

/* Buttons and links */
#ipm-prof .ipm-prof-btn,
#ipm-prof .ipm-prof-icon-btn,
#ipm-prof .ipm-prof-link,
#ipm-prof .ipm-prof-more,
#ipm-prof .ipm-prof-menu-item {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	box-shadow: none;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#ipm-prof .ipm-prof-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 9px 22px;
	border: 1px solid var(--ipm-prof-blue);
	border-radius: 999px;
	background: #fff;
	color: var(--ipm-prof-blue);
	font-size: 15px;
	white-space: nowrap;
}

#ipm-prof .ipm-prof-btn:hover,
#ipm-prof .ipm-prof-btn:focus-visible {
	background: #eef4fb;
	color: var(--ipm-prof-blue);
}

#ipm-prof .ipm-prof-btn--solid {
	background: var(--ipm-prof-blue);
	color: #fff;
}

#ipm-prof .ipm-prof-btn--solid:hover,
#ipm-prof .ipm-prof-btn--solid:focus-visible {
	border-color: #183a63;
	background: #183a63;
	color: #fff;
}

#ipm-prof .ipm-prof-btn--gradient {
	border: 0;
	background: var(--ipm-prof-gradient);
	color: #fff;
}

#ipm-prof .ipm-prof-btn--gradient:hover,
#ipm-prof .ipm-prof-btn--gradient:focus-visible {
	background: var(--ipm-prof-gradient);
	color: #fff;
	filter: brightness(1.08);
}

#ipm-prof .ipm-prof-btn--round {
	width: 40px;
	padding: 0;
}

#ipm-prof .ipm-prof-btn--small {
	min-height: 32px;
	padding: 6px 16px;
	font-size: 13px;
}

#ipm-prof .ipm-prof-btn--block {
	display: flex;
	width: 100%;
	min-height: 44px;
	margin-top: 16px;
}

#ipm-prof .ipm-prof-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #6b7486;
}

#ipm-prof .ipm-prof-icon-btn:hover,
#ipm-prof .ipm-prof-icon-btn:focus-visible {
	background: var(--ipm-prof-soft);
	color: var(--ipm-prof-blue);
}

#ipm-prof .ipm-prof-link,
#ipm-prof .ipm-prof-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ipm-prof-blue);
	white-space: nowrap;
}

#ipm-prof .ipm-prof-link:hover,
#ipm-prof .ipm-prof-more:hover,
#ipm-prof .ipm-prof-link:focus-visible,
#ipm-prof .ipm-prof-more:focus-visible {
	background: none;
	color: #183a63;
	text-decoration: underline;
}

#ipm-prof .ipm-prof-more .ipm-prof-icon--down {
	transition: transform 0.2s ease;
}

#ipm-prof .ipm-prof-more.is-open .ipm-prof-icon--down {
	transform: rotate(180deg);
}

#ipm-prof .ipm-prof-link.ipm-prof-more .ipm-prof-icon--down {
	transform: rotate(-90deg);
}

#ipm-prof .ipm-prof-link.ipm-prof-more.is-open .ipm-prof-icon--down {
	transform: rotate(90deg);
}

/* Section tabs: kept under the site header on a band of the page's colour (--ipm-prof-page, measured by
   project-profile.js), so the page doesn't show around or behind the bar; a line and a soft shadow under the band
   while it is stuck (.is-stuck). The band reaches 16px past the column on each side, over the cards' shadows, with
   shadows of its own colour (they don't widen the page). */
#ipm-prof .ipm-prof-tabs {
	--ipm-prof-band: var(--ipm-prof-page, #fff);
	position: sticky;
	top: var(--ipm-prof-top, 0px);
	z-index: 30;
	display: flex;
	justify-content: center;
	margin: 0 0 12px;
	padding: 10px 0;
	background: var(--ipm-prof-band);
	box-shadow: -16px 0 0 var(--ipm-prof-band), 16px 0 0 var(--ipm-prof-band);
	transition: box-shadow 0.2s ease;
}

#ipm-prof .ipm-prof-tabs.is-stuck {
	box-shadow: -16px 0 0 var(--ipm-prof-band), 16px 0 0 var(--ipm-prof-band), -16px 1px 0 var(--ipm-prof-line), 16px 1px 0 var(--ipm-prof-line), 0 10px 14px -12px rgba(25, 38, 71, 0.35);
}

#ipm-prof .ipm-prof-tabs-list {
	position: relative;
	display: flex;
	gap: 2px;
	max-width: 100%;
	padding: 5px;
	overflow-x: auto;
	border: 1px solid var(--ipm-prof-line);
	border-radius: 999px;
	background: #fff;
	box-shadow: var(--ipm-prof-shadow);
	scrollbar-width: none;
}

#ipm-prof .ipm-prof-tabs-list::-webkit-scrollbar {
	display: none;
}

#ipm-prof .ipm-prof-tab {
	display: block;
	padding: 8px 15px;
	border-radius: 999px;
	color: var(--ipm-prof-navy);
	font-size: 14px;
	line-height: 1.3;
	white-space: nowrap;
}

#ipm-prof .ipm-prof-tab:hover {
	background: var(--ipm-prof-soft);
	color: var(--ipm-prof-navy);
}

#ipm-prof .ipm-prof-tab.is-active {
	background: var(--ipm-prof-blue);
	color: #fff;
}

/* Header */
#ipm-prof .ipm-prof-header {
	padding: 0;
	overflow: visible;
}

#ipm-prof .ipm-prof-cover {
	position: relative;
	height: 160px;
	overflow: hidden;
	border-radius: 12px 12px 0 0;
	background: #1d3f73;
	isolation: isolate;
}

#ipm-prof .ipm-prof-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* No cover uploaded: Tina's default banner, which already has the blue overlay and the diagonal. It is cropped from
   the sides (phones show about 40% of it), so it is anchored right of centre to keep the people's faces in view.
   A member's own cover is shown as it is. */
#ipm-prof .ipm-prof-cover picture {
	display: block;
	height: 100%;
}

#ipm-prof .ipm-prof-cover--default img {
	object-position: 68% 30%;
}

#ipm-prof .ipm-prof-header-body {
	display: grid;
	grid-template-columns: 124px minmax(0, 1fr) auto;
	gap: 0 20px;
	align-items: start;
	padding: 0 24px 24px;
}

#ipm-prof .ipm-prof-photo {
	position: relative;
	width: 124px;
	height: 124px;
	margin-top: -62px;
}

#ipm-prof .ipm-prof-photo > img {
	display: block;
	width: 124px;
	height: 124px;
	border: 4px solid #fff;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 10px rgba(25, 38, 71, 0.15);
	object-fit: cover;
}

#ipm-prof .ipm-prof-photo-edit {
	position: absolute;
	right: 2px;
	bottom: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 6px rgba(25, 38, 71, 0.2);
	color: var(--ipm-prof-blue);
}

#ipm-prof .ipm-prof-identity {
	min-width: 0;
	padding-top: 18px;
}

#ipm-prof .ipm-prof-name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	color: var(--ipm-prof-navy);
	font-size: 26px;
	line-height: 1.25;
}

/* Country flag next to a person (header, Forums): one size and shape everywhere. */
#ipm-prof .ipm-prof-flag {
	display: inline-block;
	flex: none;
	width: auto;
	height: 16px;
	border-radius: 2px;
	vertical-align: middle;
}

#ipm-prof .ipm-prof-tag {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--ipm-prof-gradient);
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
}

#ipm-prof .ipm-prof-position {
	margin-top: 6px;
	color: var(--ipm-prof-text);
	font-size: 16px;
}

#ipm-prof .ipm-prof-location {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin-top: 4px;
	color: var(--ipm-prof-muted);
	font-size: 14px;
}

#ipm-prof .ipm-prof-location-place {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

#ipm-prof .ipm-prof-reach {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	margin-top: 14px;
	font-size: 14px;
}

#ipm-prof .ipm-prof-faces {
	display: inline-flex;
	flex: none;
	padding-left: 8px;
}

#ipm-prof .ipm-prof-faces img,
#ipm-prof .ipm-prof-faces li {
	margin-left: -8px;
}

#ipm-prof .ipm-prof-faces img {
	display: block;
	width: 26px;
	height: 26px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #fff;
	object-fit: cover;
}

#ipm-prof .ipm-prof-faces--large {
	margin: 12px 0 10px;
}

#ipm-prof .ipm-prof-faces--large li img {
	width: 36px;
	height: 36px;
	margin: 0;
}

#ipm-prof .ipm-prof-reach-count {
	flex: none;
	color: var(--ipm-prof-blue);
}

#ipm-prof .ipm-prof-reach-names {
	min-width: 0;
	overflow: hidden;
	color: var(--ipm-prof-muted);
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#ipm-prof .ipm-prof-reach-names::before {
	content: "·";
	margin-right: 8px;
}

#ipm-prof .ipm-prof-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding-top: 18px;
}

/* ••• menu */
#ipm-prof .ipm-prof-menu {
	position: relative;
}

#ipm-prof .ipm-prof-menu-list {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 40;
	min-width: 220px;
	padding: 6px;
	border: 1px solid var(--ipm-prof-line);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(25, 38, 71, 0.14);
}

#ipm-prof .ipm-prof-menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: 6px;
	background: none;
	color: var(--ipm-prof-navy);
	text-align: left;
	white-space: nowrap;
}

#ipm-prof .ipm-prof-menu-item:hover,
#ipm-prof .ipm-prof-menu-item:focus-visible {
	background: var(--ipm-prof-soft);
	color: var(--ipm-prof-blue);
}

/* ProjectProfile stats */
#ipm-prof .ipm-prof-stats {
	display: flex;
	align-items: stretch;
	padding: 0;
	overflow: hidden;
}

#ipm-prof .ipm-prof-stats-brand {
	display: flex;
	flex: none;
	align-items: center;
	gap: 14px;
	padding: 18px 28px 18px 24px;
	background: linear-gradient(90deg, #e3f1fc 0%, rgba(255, 255, 255, 0) 100%);
}

#ipm-prof .ipm-prof-stats-title {
	color: var(--ipm-prof-navy);
	font-size: 18px;
	line-height: 1.3;
}

#ipm-prof .ipm-prof-stats-sub {
	color: var(--ipm-prof-muted);
	font-size: 13px;
}

#ipm-prof .ipm-prof-stats-list {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	min-width: 0;
}

#ipm-prof .ipm-prof-stat {
	display: flex;
	flex: 1 1 0;
	flex-direction: column-reverse;
	justify-content: center;
	min-width: 0;
	padding: 14px 22px;
	border-left: 1px solid var(--ipm-prof-line);
}

#ipm-prof .ipm-prof-stat dt {
	color: var(--ipm-prof-muted);
	font-size: 13px;
	font-weight: 400;
}

#ipm-prof .ipm-prof-stat dd {
	color: var(--ipm-prof-navy);
	font-size: 24px;
	line-height: 1.2;
}

/* Your own profile with no projects: a note in place of the numbers. */
#ipm-prof .ipm-prof-stats-empty {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 12px 28px;
	min-width: 0;
	margin: 14px 0;
	padding: 4px 24px;
	border-left: 1px solid var(--ipm-prof-line);
}

#ipm-prof .ipm-prof-stats-empty p {
	flex: 1 1 auto;
	color: var(--ipm-prof-text);
	font-size: 13px;
	line-height: 1.55;
}

#ipm-prof .ipm-prof-stats-empty .ipm-prof-link {
	flex: none;
}

/* Two columns */
#ipm-prof .ipm-prof-layout {
	display: grid;
	grid-template-areas:
		"top aside"
		"rest aside";
	grid-template-columns: minmax(0, 1fr) 290px;
	grid-template-rows: auto 1fr;
	gap: 0 var(--ipm-prof-gap);
	align-items: start;
}

#ipm-prof .ipm-prof-main-top {
	grid-area: top;
	min-width: 0;
}

#ipm-prof .ipm-prof-aside {
	grid-area: aside;
	min-width: 0;
}

#ipm-prof .ipm-prof-main-rest {
	grid-area: rest;
	min-width: 0;
}

#ipm-prof .ipm-prof-side {
	padding: 20px;
}

/* Timelines (projects, roles) and rows (education) */
#ipm-prof .ipm-prof-timeline .ipm-prof-item,
#ipm-prof .ipm-prof-rows .ipm-prof-item {
	position: relative;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 16px;
	padding-bottom: 22px;
}

#ipm-prof .ipm-prof-timeline .ipm-prof-item:has(+ .ipm-prof-item:not([hidden]))::before {
	content: "";
	position: absolute;
	top: 56px;
	bottom: 6px;
	left: 23px;
	width: 2px;
	border-radius: 1px;
	background: var(--ipm-prof-line);
}

#ipm-prof .ipm-prof-rows .ipm-prof-item {
	padding: 14px 0;
	border-top: 1px solid var(--ipm-prof-line);
}

#ipm-prof .ipm-prof-rows .ipm-prof-item:first-child {
	padding-top: 0;
	border-top: 0;
}

#ipm-prof .ipm-prof-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 10px;
	background: linear-gradient(135deg, #2c62ad 0%, #0f2c5c 100%);
}

#ipm-prof .ipm-prof-tile img {
	width: 30px;
	height: 30px;
	padding: 2px;
	border-radius: 50%;
	background: #fff;
	object-fit: contain;
}

#ipm-prof .ipm-prof-tile.has-image {
	background: var(--ipm-prof-soft);
}

#ipm-prof .ipm-prof-tile.has-image img {
	width: 100%;
	height: 100%;
	padding: 0;
	border-radius: 0;
	background: none;
	object-fit: cover;
}

#ipm-prof .ipm-prof-logo {
	display: block;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--ipm-prof-soft);
}

#ipm-prof .ipm-prof-logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#ipm-prof .ipm-prof-logo:not(.has-image) img {
	padding: 10px;
	object-fit: contain;
}

/* A credential without an image: an award icon. */
#ipm-prof .ipm-prof-logo--icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ipm-prof-blue);
}

/* Rows without lines between them (Credentials). */
#ipm-prof .ipm-prof-rows--plain .ipm-prof-item {
	padding: 0 0 18px;
	border-top: 0;
}

#ipm-prof .ipm-prof-item-body {
	min-width: 0;
}

#ipm-prof .ipm-prof-item-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

#ipm-prof .ipm-prof-item-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	color: var(--ipm-prof-navy);
	font-size: 16px;
	line-height: 1.4;
}

#ipm-prof .ipm-prof-item-sub {
	margin-top: 2px;
	color: var(--ipm-prof-navy);
	font-size: 14px;
}

#ipm-prof .ipm-prof-item-meta {
	margin-top: 2px;
	color: var(--ipm-prof-muted);
	font-size: 13px;
}

#ipm-prof .ipm-prof-item-text {
	margin-top: 6px;
	color: var(--ipm-prof-text);
	font-size: 14px;
	line-height: 1.6;
}

#ipm-prof .ipm-prof-clamp-1 {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#ipm-prof .ipm-prof-details {
	flex: none;
	padding-top: 2px;
}

#ipm-prof .ipm-prof-current {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--ipm-prof-blue);
	font-size: 12px;
}

#ipm-prof .ipm-prof-current::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ipm-prof-sky);
}

/* Badges */
#ipm-prof .ipm-prof-badges li + li {
	border-top: 1px solid var(--ipm-prof-line);
}

/* One compact row per badge: image, name over "Earned Mon YYYY", arrow. */
#ipm-prof .ipm-prof-badge {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 14px;
	gap: 12px;
	align-items: center;
	padding: 10px 0;
	color: var(--ipm-prof-navy);
}

#ipm-prof .ipm-prof-badges li:first-child .ipm-prof-badge {
	padding-top: 0;
}

#ipm-prof .ipm-prof-badge-img {
	display: block;
	width: 64px;
	height: 40px;
	overflow: hidden;
	border-radius: 6px;
	background: var(--ipm-prof-soft);
}

#ipm-prof .ipm-prof-badge-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#ipm-prof .ipm-prof-badge.is-locked .ipm-prof-badge-img img {
	opacity: 0.7;
	filter: blur(2px) grayscale(0.4);
}

#ipm-prof .ipm-prof-badge-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 0;
}

#ipm-prof .ipm-prof-badge-name {
	max-width: 100%;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#ipm-prof .ipm-prof-badge-state {
	color: var(--ipm-prof-muted);
	font-size: 12px;
	line-height: 1.35;
}

#ipm-prof .ipm-prof-badge:hover .ipm-prof-badge-name {
	color: var(--ipm-prof-blue);
}

#ipm-prof .ipm-prof-pill {
	display: inline-block;
	padding: 1px 9px;
	border: 1px solid #d5dae2;
	border-radius: 999px;
	background: var(--ipm-prof-soft);
	color: #6b7486;
	font-size: 12px;
	line-height: 1.5;
}

/* Chips */
#ipm-prof .ipm-prof-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#ipm-prof .ipm-prof-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 13px;
	border-radius: 999px;
	background: var(--ipm-prof-chip);
	color: var(--ipm-prof-blue);
	font-size: 13px;
	line-height: 1.4;
}

#ipm-prof .ipm-prof-chips--outline .ipm-prof-chip {
	border: 1px solid var(--ipm-prof-line);
	background: #fff;
	color: var(--ipm-prof-navy);
}

#ipm-prof .ipm-prof-chips--grey .ipm-prof-chip {
	background: var(--ipm-prof-soft);
	color: var(--ipm-prof-navy);
}

/* PDUs */
#ipm-prof .ipm-prof-pdus .ipm-prof-title {
	margin-bottom: 12px;
}

#ipm-prof .ipm-prof-pdus-total {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
}

#ipm-prof .ipm-prof-pdus-total strong {
	color: var(--ipm-prof-navy);
	font-size: 44px;
	line-height: 1.1;
}

#ipm-prof .ipm-prof-pdus-total span {
	color: var(--ipm-prof-muted);
	font-size: 14px;
}

#ipm-prof .ipm-prof-cycle {
	margin-top: 16px;
}

#ipm-prof .ipm-prof-cycle-head {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 14px;
}

#ipm-prof .ipm-prof-cycle-head strong {
	color: var(--ipm-prof-blue);
	font-weight: 500;
}

#ipm-prof .ipm-prof-bar {
	height: 7px;
	margin: 8px 0;
	overflow: hidden;
	border-radius: 999px;
	background: #e6e9ef;
}

#ipm-prof .ipm-prof-bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--ipm-prof-blue);
}

#ipm-prof .ipm-prof-cycle-note {
	color: var(--ipm-prof-muted);
	font-size: 13px;
}

/* Connections */
#ipm-prof .ipm-prof-connections-count {
	color: var(--ipm-prof-blue);
	font-size: 15px;
}

#ipm-prof .ipm-prof-connections-note {
	color: var(--ipm-prof-text);
	font-size: 14px;
}

/* Card grids (resources, courses, certifications, activity) */
#ipm-prof .ipm-prof-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

#ipm-prof .ipm-prof-cards--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

#ipm-prof .ipm-prof-cards > li {
	min-width: 0;
}

#ipm-prof .ipm-prof-resource,
#ipm-prof .ipm-prof-update {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 12px;
	border: 1px solid var(--ipm-prof-line);
	border-radius: 10px;
	color: var(--ipm-prof-navy);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#ipm-prof .ipm-prof-resource:hover,
#ipm-prof .ipm-prof-update:hover,
#ipm-prof .ipm-prof-course:hover {
	border-color: #c9d4e3;
	box-shadow: var(--ipm-prof-shadow);
}

#ipm-prof .ipm-prof-resource-img {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 6px;
	background: linear-gradient(135deg, #2c62ad 0%, #0f2c5c 100%);
}

#ipm-prof .ipm-prof-resource-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#ipm-prof .ipm-prof-resource-title {
	display: -webkit-box;
	margin: 12px 0 0;
	overflow: hidden;
	font-size: 16px;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

#ipm-prof .ipm-prof-resource-title::after {
	content: "";
	display: block;
	width: 40px;
	height: 2px;
	margin-top: 12px;
	background: var(--ipm-prof-sky);
}

#ipm-prof .ipm-prof-resource-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 14px;
	color: var(--ipm-prof-muted);
	font-size: 13px;
}

#ipm-prof .ipm-prof-resource-foot .ipm-prof-icon {
	color: var(--ipm-prof-navy);
}

/* Forum cards */
#ipm-prof .ipm-prof-posts {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

#ipm-prof .ipm-prof-post {
	padding: 20px;
	border: 1px solid var(--ipm-prof-line);
	border-radius: 10px;
}

#ipm-prof .ipm-prof-byline {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

#ipm-prof .ipm-prof-byline > div,
#ipm-prof .ipm-prof-byline > span:last-child {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* The author's photo only: the flag next to the name keeps the header flag's shape. */
#ipm-prof .ipm-prof-byline > img {
	flex: none;
	border-radius: 50%;
	object-fit: cover;
}

#ipm-prof .ipm-prof-byline-name {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--ipm-prof-navy);
	font-size: 14px;
}

#ipm-prof .ipm-prof-byline-meta {
	overflow: hidden;
	color: var(--ipm-prof-muted);
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#ipm-prof .ipm-prof-post-title {
	margin-top: 14px;
	font-size: 17px;
	line-height: 1.4;
}

#ipm-prof .ipm-prof-post-title a {
	color: var(--ipm-prof-navy);
}

#ipm-prof .ipm-prof-post-title a:hover {
	color: var(--ipm-prof-blue);
}

#ipm-prof .ipm-prof-post-text {
	margin-top: 8px;
	color: var(--ipm-prof-text);
	font-size: 14px;
	line-height: 1.6;
}

#ipm-prof .ipm-prof-read-more {
	color: var(--ipm-prof-sky);
}

#ipm-prof .ipm-prof-read-more:hover {
	text-decoration: underline;
}

#ipm-prof .ipm-prof-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

#ipm-prof .ipm-prof-tags li {
	padding: 2px 10px;
	border: 1px solid var(--ipm-prof-navy);
	border-radius: 999px;
	font-size: 12px;
}

#ipm-prof .ipm-prof-post-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	margin-top: 16px;
}

#ipm-prof .ipm-prof-post-type,
#ipm-prof .ipm-prof-post-people {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
}

#ipm-prof .ipm-prof-post-type {
	color: var(--ipm-prof-blue);
}

#ipm-prof .ipm-prof-post-foot .ipm-prof-btn {
	margin-left: auto;
}

/* Courses and certifications */
#ipm-prof .ipm-prof-course {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--ipm-prof-line);
	border-radius: 10px;
	color: var(--ipm-prof-navy);
}

#ipm-prof .ipm-prof-course-img img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 150px;
	object-fit: cover;
}

#ipm-prof .ipm-prof-course-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
}

#ipm-prof .ipm-prof-course-title {
	font-size: 16px;
	line-height: 1.35;
}

#ipm-prof .ipm-prof-course-title::after {
	content: "";
	display: block;
	width: 32px;
	height: 2px;
	margin-top: 10px;
	background: var(--ipm-prof-sky);
}

#ipm-prof .ipm-prof-course-meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ipm-prof-muted);
	font-size: 12px;
}

#ipm-prof .ipm-prof-cert {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--ipm-prof-line);
	border-radius: 10px;
}

#ipm-prof .ipm-prof-cert-img {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	background: #eef6fc;
}

#ipm-prof .ipm-prof-cert-img img {
	width: 64px;
	height: auto;
	object-fit: contain;
}

#ipm-prof .ipm-prof-cert-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 16px;
}

#ipm-prof .ipm-prof-cert-title {
	font-size: 17px;
	line-height: 1.3;
}

#ipm-prof .ipm-prof-cert-title::after {
	content: "";
	display: block;
	width: 32px;
	height: 2px;
	margin-top: 10px;
	background: var(--ipm-prof-sky);
}

#ipm-prof .ipm-prof-cert-text {
	color: var(--ipm-prof-muted);
	font-size: 13px;
}

#ipm-prof .ipm-prof-cert-status {
	margin-top: auto;
	color: var(--ipm-prof-sky);
	font-size: 12px;
}

#ipm-prof .ipm-prof-cert-status.is-expired {
	color: #c0392b;
}

/* Mentorship */
#ipm-prof .ipm-prof-open {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--ipm-prof-chip);
	color: var(--ipm-prof-blue);
	font-size: 12px;
}

#ipm-prof .ipm-prof-open::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ipm-prof-sky);
}

#ipm-prof .ipm-prof-block {
	padding: 0 0 18px;
}

#ipm-prof .ipm-prof-block + .ipm-prof-block {
	padding-top: 18px;
	border-top: 1px solid var(--ipm-prof-line);
}

#ipm-prof .ipm-prof-block .ipm-prof-chips {
	margin-top: 12px;
}

#ipm-prof .ipm-prof-block .ipm-prof-subtitle + .ipm-prof-chips {
	margin-top: 0;
}

#ipm-prof .ipm-prof-formats {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

#ipm-prof .ipm-prof-formats li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

#ipm-prof .ipm-prof-formats li > span:last-child {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 13px;
}

#ipm-prof .ipm-prof-formats strong {
	color: var(--ipm-prof-navy);
	font-size: 14px;
}

#ipm-prof .ipm-prof-formats li > span:last-child > span {
	color: var(--ipm-prof-muted);
}

#ipm-prof .ipm-prof-format-icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: var(--ipm-prof-soft);
	color: var(--ipm-prof-blue);
}

#ipm-prof .ipm-prof-availability {
	padding: 18px 20px;
	border-radius: 10px;
	background: var(--ipm-prof-soft);
}

#ipm-prof .ipm-prof-availability-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
}

#ipm-prof .ipm-prof-availability-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
}

#ipm-prof .ipm-prof-availability-list > div {
	display: grid;
	grid-template-columns: 30px auto;
	align-items: center;
	column-gap: 8px;
}

#ipm-prof .ipm-prof-availability-list .ipm-prof-icon {
	grid-row: span 2;
	color: var(--ipm-prof-blue);
}

#ipm-prof .ipm-prof-availability dt {
	color: var(--ipm-prof-muted);
	font-size: 12px;
	font-weight: 400;
}

#ipm-prof .ipm-prof-availability dd {
	color: var(--ipm-prof-navy);
	font-size: 14px;
}

/* Activity */
#ipm-prof .ipm-prof-update {
	gap: 12px;
	padding: 14px;
}

#ipm-prof .ipm-prof-update-text {
	display: -webkit-box;
	overflow: hidden;
	color: var(--ipm-prof-text);
	font-size: 14px;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
}

#ipm-prof .ipm-prof-update-foot {
	margin-top: auto;
	color: var(--ipm-prof-muted);
	font-size: 12px;
}

/* Visitors: the Report / Block menu next to Follow (profile-menu.css styles it inside .profileavatar-btns). */
#ipm-prof .ipm-prof-more-menu {
	display: inline-flex;
	margin: 0;
}

/* "N connections" in the header: a button that opens the Connections window. */
#ipm-prof button.ipm-prof-reach-count {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--ipm-prof-blue);
	font-family: var(--ipm-prof-font-m) !important;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
}

#ipm-prof button.ipm-prof-reach-count:hover,
#ipm-prof button.ipm-prof-reach-count:focus-visible {
	background: none;
	color: #183a63;
	text-decoration: underline;
}

/* Follow / Following */
#ipm-prof [data-ipm-prof-follow] .ipm-prof-follow-icon {
	display: inline-flex;
}

#ipm-prof [data-ipm-prof-follow][disabled] {
	opacity: 0.6;
	cursor: progress;
}

/* Visitors: the Report / Block menu opens towards the page, not off its right edge. */
#ipm-prof .ipm-prof-more-menu .ipm-profile-more-menu {
	right: 0;
	left: auto;
}

/* Specialities: pills wrap onto as many lines as they need, long ones too. */
#ipm-prof .ipm-prof-chips {
	min-width: 0;
}

#ipm-prof .ipm-prof-chip {
	max-width: 100%;
	white-space: normal;
	overflow-wrap: anywhere;
}

/* People lists: PMs You May Know, Connections window */
#ipm-prof .ipm-prof-side-title {
	margin-bottom: 14px;
}

#ipm-prof .ipm-prof-people {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

#ipm-prof .ipm-prof-person {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

#ipm-prof .ipm-prof-person-link {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: var(--ipm-prof-navy);
}

#ipm-prof .ipm-prof-person-link img {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

#ipm-prof .ipm-prof-person-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

#ipm-prof .ipm-prof-person-name {
	overflow: hidden;
	font-family: var(--ipm-prof-font-m) !important;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#ipm-prof .ipm-prof-person-link:hover .ipm-prof-person-name {
	color: var(--ipm-prof-blue);
}

#ipm-prof .ipm-prof-person-title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--ipm-prof-muted);
	font-size: 12px;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

#ipm-prof .ipm-prof-person .ipm-prof-btn {
	flex: none;
}

#ipm-prof .ipm-prof-find-more {
	margin-top: 16px;
}

/* Connections window */
body.ipm-prof-dialog-open {
	overflow: hidden;
}

#ipm-prof .ipm-prof-dialog {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	background: rgba(25, 38, 71, 0.45);
}

#ipm-prof .ipm-prof-dialog-box {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 520px;
	max-height: min(640px, calc(100vh - 48px));
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(25, 38, 71, 0.25);
}

#ipm-prof .ipm-prof-dialog-box:focus {
	outline: none;
}

#ipm-prof .ipm-prof-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px 10px;
}

#ipm-prof .ipm-prof-dialog-tabs {
	display: flex;
	gap: 6px;
	padding: 0 20px 12px;
	border-bottom: 1px solid var(--ipm-prof-line);
}

#ipm-prof .ipm-prof-dialog-tab {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 7px 14px;
	border: 1px solid var(--ipm-prof-line);
	border-radius: 999px;
	background: #fff;
	box-shadow: none;
	color: var(--ipm-prof-navy);
	font-family: var(--ipm-prof-font-m) !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
}

#ipm-prof .ipm-prof-dialog-tab:hover {
	background: var(--ipm-prof-soft);
	color: var(--ipm-prof-navy);
}

#ipm-prof .ipm-prof-dialog-tab.is-active {
	border-color: var(--ipm-prof-blue);
	background: var(--ipm-prof-blue);
	color: #fff;
}

#ipm-prof .ipm-prof-dialog-body {
	min-height: 120px;
	padding: 16px 20px 20px;
	overflow-y: auto;
}

#ipm-prof .ipm-prof-dialog-body .ipm-prof-empty + .ipm-prof-people,
#ipm-prof .ipm-prof-dialog-body .ipm-prof-people + .ipm-prof-empty {
	margin-top: 14px;
}

/* Tablet: one column; the side cards side by side under Project Experience. */
@media screen and (max-width: 1199px) {
	#ipm-prof .ipm-prof-layout {
		grid-template-areas:
			"top"
			"aside"
			"rest";
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
	}

	#ipm-prof .ipm-prof-aside {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
		gap: 0 var(--ipm-prof-gap);
		align-items: start;
	}
}

@media screen and (max-width: 991px) {
	#ipm-prof .ipm-prof-header-body {
		grid-template-columns: 124px minmax(0, 1fr);
	}

	#ipm-prof .ipm-prof-actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
		padding-top: 16px;
	}

	#ipm-prof .ipm-prof-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#ipm-prof .ipm-prof-stats {
		flex-direction: column;
	}

	#ipm-prof .ipm-prof-stats-brand {
		padding: 16px 20px;
	}

	#ipm-prof .ipm-prof-stat:first-child {
		border-left: 0;
	}

	#ipm-prof .ipm-prof-stat {
		padding: 12px 20px 16px;
	}

	#ipm-prof .ipm-prof-stats-empty {
		flex-wrap: wrap;
		margin: 0;
		padding: 14px 20px 16px;
		border-top: 1px solid var(--ipm-prof-line);
		border-left: 0;
	}
}

/* Phone */
@media screen and (max-width: 767px) {
	#ipm-prof .ipm-prof-first {
		flex-direction: column;
		align-items: stretch;
		padding: 24px 20px;
	}

	#ipm-prof .ipm-prof-first-art {
		align-self: center;
		width: 150px;
	}

	#ipm-prof .ipm-prof-first-actions .ipm-prof-btn,
	#ipm-prof .ipm-prof-prompt .ipm-prof-btn {
		flex: 1 1 auto;
	}

	#ipm-prof {
		--ipm-prof-gap: 14px;
		margin-bottom: 24px;
	}

	#ipm-prof .ipm-prof-card {
		padding: 18px 16px;
	}

	#ipm-prof .ipm-prof-side {
		padding: 18px 16px;
	}

	#ipm-prof .ipm-prof-tabs {
		margin-bottom: 8px;
		padding: 8px 0;
	}

	#ipm-prof .ipm-prof-tab {
		padding: 7px 12px;
		font-size: 13px;
	}

	#ipm-prof .ipm-prof-header {
		padding: 0;
	}

	#ipm-prof .ipm-prof-cover {
		height: 120px;
	}

	#ipm-prof .ipm-prof-header-body {
		grid-template-columns: minmax(0, 1fr);
		padding: 0 16px 18px;
	}

	#ipm-prof .ipm-prof-photo,
	#ipm-prof .ipm-prof-photo > img {
		width: 96px;
		height: 96px;
	}

	#ipm-prof .ipm-prof-photo {
		margin-top: -48px;
	}

	#ipm-prof .ipm-prof-identity {
		padding-top: 10px;
	}

	#ipm-prof .ipm-prof-name {
		font-size: 22px;
	}

	#ipm-prof .ipm-prof-position {
		font-size: 15px;
	}

	#ipm-prof .ipm-prof-actions .ipm-prof-btn:not(.ipm-prof-btn--round) {
		flex: 1 1 auto;
	}

	/* Three stats (or fewer): one row of equal columns. Four (years of experience set): 2 × 2. */
	#ipm-prof .ipm-prof-stats-list {
		flex-wrap: wrap;
		border-top: 1px solid var(--ipm-prof-line);
	}

	#ipm-prof .ipm-prof-stat {
		box-sizing: border-box;
		padding: 12px 12px 14px;
	}

	#ipm-prof .ipm-prof-stat:first-child:nth-last-child(4),
	#ipm-prof .ipm-prof-stat:first-child:nth-last-child(4) ~ .ipm-prof-stat {
		flex-basis: 50%;
	}

	#ipm-prof .ipm-prof-stat:first-child:nth-last-child(4) ~ .ipm-prof-stat:nth-child(3) {
		border-left: 0;
	}

	#ipm-prof .ipm-prof-stat:first-child:nth-last-child(4) ~ .ipm-prof-stat:nth-child(n+3) {
		border-top: 1px solid var(--ipm-prof-line);
	}

	#ipm-prof .ipm-prof-section-head {
		flex-wrap: wrap;
	}

	#ipm-prof .ipm-prof-title {
		font-size: 18px;
	}

	#ipm-prof .ipm-prof-item-top {
		flex-direction: column;
		gap: 2px;
	}

	#ipm-prof .ipm-prof-timeline .ipm-prof-item,
	#ipm-prof .ipm-prof-rows .ipm-prof-item {
		grid-template-columns: 40px minmax(0, 1fr);
		gap: 12px;
	}

	#ipm-prof .ipm-prof-tile,
	#ipm-prof .ipm-prof-logo {
		width: 40px;
		height: 40px;
	}

	#ipm-prof .ipm-prof-tile img {
		width: 26px;
		height: 26px;
	}

	#ipm-prof .ipm-prof-timeline .ipm-prof-item:has(+ .ipm-prof-item:not([hidden]))::before {
		top: 48px;
		left: 19px;
	}

	#ipm-prof .ipm-prof-clamp-1 {
		white-space: normal;
	}

	#ipm-prof .ipm-prof-cards,
	#ipm-prof .ipm-prof-cards--two {
		grid-template-columns: minmax(0, 1fr);
	}

	#ipm-prof .ipm-prof-post {
		padding: 16px;
	}

	#ipm-prof .ipm-prof-post-foot .ipm-prof-btn {
		margin-left: 0;
	}

	#ipm-prof .ipm-prof-availability-row .ipm-prof-btn {
		width: 100%;
	}
}

/* Edit Profile → Credential (template-parts/profile-credentials-form.php). The popup is outside #ipm-prof. */
#certification-tab .ipm-cred-hidden {
	display: none !important; /* "Add more" at five credentials (beats .btn-transparent). */
}

#certification-tab .wrap-field.ipm-cred-row {
	align-items: flex-start;
}

#certification-tab .ipm-cred-date select {
	flex: 1 1 0;
	min-width: 0;
}

#certification-tab .ipm-cred-none {
	margin: 0 0 16px;
	color: #5f6b7a;
	font-size: 14px;
}

#certification-tab .ipm-cred-none[hidden] {
	display: none;
}

@media screen and (max-width: 767px) {
	/* Country, then Issue Date. */
	#certification-tab .wrap-field.ipm-cred-row {
		flex-wrap: wrap;
		gap: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	#ipm-prof * {
		transition: none !important;
	}
}
