/* ==========================================================================
   NPRN 2026 refresh: member profiles (Ultimate Member)
   Roles: um_organization, um_company, um_funder, um_individual.
   Markup is UM's; layout is a card grid built from UM's own row/column wrappers.
   Everything is scoped to .um-profile and, for the layout, to the view mode
   (.notediting) so the edit-profile form keeps UM's native look.
   ========================================================================== */

.um.um-profile {
	--pf-gap: 20px;
	--pf-pad: 26px;
	--pf-card: var(--nprn-surface);
	max-width: 1180px;
	margin: 0 auto;
	padding: 28px 24px 80px;
	font-family: Montserrat, sans-serif;
	color: var(--nprn-text);
}
.um.um-profile .um-profile-content-container { background: transparent; padding: 0; }
.um.um-profile .um-profile-content-container .boot-row { margin: 0; }
.um.um-profile .um-theme-profile-single-content { flex: 0 0 100%; max-width: 100%; width: 100%; padding: 0; }

/* ---- Cover ---------------------------------------------------------------- */
.um.um-profile .um-cover {
	height: clamp(170px, 24vw, 290px);
	border-radius: 20px 20px 0 0;
	background: var(--nprn-blue-deep);
	overflow: hidden;
}
.um.um-profile .um-cover-e { height: 100%; }
.um.um-profile .um-cover-e img { width: 100%; height: 100%; object-fit: cover; }
.um.um-profile .um-cover::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(27, 43, 54, 0) 55%, rgba(27, 43, 54, 0.35) 100%);
	pointer-events: none;
}
.um.um-profile .um-cover:not(.has-cover) {
	background: linear-gradient(120deg, var(--nprn-blue-deep), var(--nprn-blue));
}

/* ---- Header card ---------------------------------------------------------- */
.um.um-profile .um-header {
	position: relative;
	background: var(--pf-card);
	border: 1px solid var(--nprn-line);
	border-top: 0;
	border-radius: 0 0 20px 20px;
	box-shadow: 0 18px 40px -28px rgba(27, 43, 54, 0.45);
	padding: 22px 28px 24px 196px;
	min-height: 112px;
	margin: 0;
}
.um.um-profile .um-profile-photo {
	position: absolute;
	left: 28px;
	top: -72px;
	width: 148px;
	height: 148px;
	margin: 0;
	float: none;
}
.um.um-profile .um-profile-photo a.um-profile-photo-img {
	display: block;
	width: 148px;
	height: 148px;
	margin: 0;
	top: 0;
	left: 0;
	border: 5px solid var(--pf-card);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 12px 28px -14px rgba(27, 43, 54, 0.5);
	overflow: hidden;
}
.um.um-profile .um-profile-photo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 0;
	background: #fff;
}
.um.um-profile.um-role-um_individual .um-profile-photo img { object-fit: cover; }

.um.um-profile .um-profile-meta { padding: 0; text-align: left; }
.um.um-profile .um-main-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.um.um-profile .um-name {
	float: none;
	margin: 0;
	font-size: clamp(22px, 2.6vw, 30px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.um.um-profile .um-profile-meta .um-name a,
.um.um-profile .um-profile-meta .um-name { color: var(--nprn-ink); text-decoration: none; }
.um.um-profile .um-main-meta .um-clear { display: none; }
.um.um-profile .um-meta { display: none; } /* website is a button + a field below */
.um.um-profile .um-profile-status { display: none; }

/* social icons (UM "connect") */
.um.um-profile .um-profile-connect { margin: 0; display: flex; gap: 8px; }
.um.um-profile .um-profile-connect a {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--nprn-bg);
	color: var(--nprn-blue) !important;
	font-size: 16px;
	transition: background 0.2s var(--nprn-ease), color 0.2s var(--nprn-ease);
}
.um.um-profile .um-profile-connect a:hover { background: var(--nprn-blue); color: #fff !important; }

/* role badge + quick contact (from profile.php) */
.nprn-prof-extras { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 4px; }
.nprn-prof-role {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--nprn-bg);
	color: var(--nprn-blue-deep);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.nprn-prof-role::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--nprn-green); }
.nprn-prof-role--um_company::before { background: #3b8fc2; }
.nprn-prof-role--um_funder::before { background: #d9a21b; }
.nprn-prof-role--um_individual::before { background: #8a6fc1; }
.nprn-prof-role--administrator::before { background: var(--nprn-blue); }
.nprn-prof-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nprn-prof-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--nprn-line-strong);
	border-radius: 999px;
	background: #fff;
	color: var(--nprn-blue-deep);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s var(--nprn-ease), border-color 0.2s var(--nprn-ease), color 0.2s var(--nprn-ease);
}
.nprn-prof-btn:hover,
.nprn-prof-btn:focus-visible { background: var(--nprn-blue); border-color: var(--nprn-blue); color: #fff; }
.nprn-prof-btn:focus-visible { outline: 2px solid var(--nprn-green); outline-offset: 2px; }

/* settings (gear) */
.um.um-profile .um-profile-edit {
	position: absolute;
	top: 18px;
	right: 20px;
	z-index: 3;
}
.um.um-profile .um-profile-edit-a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--nprn-bg);
	color: var(--nprn-blue-deep);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}
.um.um-profile .um-profile-edit-a:hover { background: var(--nprn-blue); color: #fff; }
/* the parent theme prints the label via ::before with top:-5px / padding:5px / height:40px, which pushed it off-centre */
.um.um-profile .um-profile-edit-a::before {
	position: static;
	top: auto;
	height: auto;
	padding: 0;
	margin: 0;
	line-height: 1;
}

/* ---- Overrides of the parent theme's / UM's !important rules ------------- */
body.um-page-user .um.um-profile .um-cover { height: clamp(170px, 22vw, 280px) !important; }
body.um-page-user .um.um-profile .um-profile-photo,
body.um-page-user .um.um-profile .um-profile-photo a.um-profile-photo-img { width: 148px !important; height: 148px !important; }
body.um-page-user .um.um-profile .um-main-meta { align-items: flex-start; justify-content: space-between; height: auto !important; }
body.um-page-user .um.um-profile .um-name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	height: auto !important;
	width: auto;
	flex: 1 1 100%;
}
body.um-page-user .um.um-profile .um-header { min-height: 120px; padding-bottom: 28px; overflow: visible !important; }
body.um-page-user .um.um-profile .um-main-meta, body.um-page-user .um.um-profile .um-profile-meta, body.um-page-user .um.um-profile .nprn-prof-extras, body.um-page-user .um.um-profile .nprn-prof-actions { overflow: visible !important; }
body.um-page-user .um.um-profile .um-name > a { flex: 0 0 100%; line-height: 1.2; }
body.um-page-user .um.um-profile .um-profile-connect { order: 3; flex: 1 1 100%; margin: 2px 0 0 !important; }
body.um-page-user .um.um-profile .um-profile-edit-a i { font-size: 16px; width: auto; height: auto; line-height: 1; margin: 0; align-self: center; }
body.um-page-user .um.um-profile .um-header .um-profile-meta {
	padding: 0 !important;
	text-align: left !important;
	width: auto;
	color: var(--nprn-text);
}
body.um-page-user .um.um-profile .um-name,
body.um-page-user .um.um-profile .um-name a { color: var(--nprn-ink) !important; }
body.um-page-user .um.um-profile .nprn-prof-btn { border: 1px solid var(--nprn-line-strong) !important; font-size: 13.5px !important; line-height: 1.2; color: var(--nprn-blue-deep); }
body.um-page-user .um.um-profile .nprn-prof-btn:hover,
body.um-page-user .um.um-profile .nprn-prof-btn:focus-visible { color: #fff; border-color: var(--nprn-blue) !important; }
body.um-page-user .um.um-profile .nprn-prof-btn span { font-size: inherit; }
body.um-page-user .um.um-profile .um-profile-edit-a,
body.um-page-user .um.um-profile .um-profile-edit-a i { color: var(--nprn-blue-deep) !important; }
body.um-page-user .um.um-profile .um-profile-edit-a:hover,
body.um-page-user .um.um-profile .um-profile-edit-a:hover i { color: #fff !important; }
body.um-page-user .um.um-profile .um-profile-nav { background: none !important; }
body.um-page-user .um.um-profile .um-profile-nav-item,
body.um-page-user .um.um-profile .um-profile-nav-item.active { background: none !important; }
/* UM's responsive classes (uimob*) stack tabs and add bars behind the gear; undo that at every width */
body.um-page-user .um.um-profile .um-profile-nav { display: flex !important; flex-direction: row !important; }
body.um-page-user .um.um-profile .um-profile-nav-item { width: auto !important; flex: 0 0 auto; display: block; float: none !important; }
body.um-page-user .um.um-profile .um-profile-edit,
body.um-page-user .um.um-profile .um-profile-edit.um-profile-headericon { background: none !important; width: auto; height: auto; }
body.um-page-user .um.um-profile .um-header .um-meta,
body.um-page-user .um.um-profile .um-header .um-meta-text,
body.um-page-user .um.um-profile .um-header .um-meta-text *{ display: none !important; }
body.um-page-user .um.um-profile .um-profile-nav-item a {
	background: none !important;
	color: var(--nprn-muted) !important;
	padding: 0 18px !important;
}
body.um-page-user .um.um-profile .um-profile-nav-item a:hover { color: var(--nprn-ink) !important; background: var(--nprn-bg) !important; }
body.um-page-user .um.um-profile .um-profile-nav-item.active a,
body.um-page-user .um.um-profile .um-profile-nav-item.active a:hover { color: var(--nprn-ink) !important; background: none !important; }
body.um-page-user .um.um-profile .um-profile-nav-item i {
	position: static !important;
	width: auto;
	height: auto;
	line-height: 1;
	margin: 0;
	font-size: 16px;
	color: inherit !important;
}
body.um-page-user .um.um-profile .um-profile-nav-item,
body.um-page-user .um.um-profile .um-profile-nav-item a { border: 0 !important; }
body.um-page-user .um.um-profile .um-profile-nav-item a { border-radius: 8px 8px 0 0; box-shadow: inset 0 -3px 0 transparent; margin: 0 !important; }
body.um-page-user .um.um-profile .um-profile-nav-item.active a { box-shadow: inset 0 -3px 0 var(--nprn-green); }
body.um-page-user .um.um-profile .um-profile-nav-item a span.title { padding: 0; }

/* UM's navbar is only a mount point for the Message button (see below) */
.um.um-profile .um-profile-navbar { position: relative; height: 0; margin: 0; padding: 0; background: none; border: 0; }
.um.um-profile .um-profile-navbar a { color: var(--nprn-blue-deep); font-weight: 600; text-decoration: none; }

/* UM prints a desktop and a mobile link per tab; one is enough */
.um.um-profile .um-profile-nav-item a.uimob500-show,
.um.um-profile .um-profile-nav-item a.uimob340-show { display: none; }

/* ---- Tabs ----------------------------------------------------------------- */
.um.um-profile .um-profile-nav {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 4px;
	width: auto;
	float: none;
	margin: 22px 0 0 !important;
	padding: 0;
	border-bottom: 1px solid var(--nprn-line-strong);
	background: none;
}
.um.um-profile .um-profile-nav-item { float: none; width: auto; background: none; margin: 0; }
.um.um-profile .um-profile-nav-item a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 18px;
	margin-bottom: -1px;
	border-bottom: 3px solid transparent;
	background: none;
	color: var(--nprn-muted);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s var(--nprn-ease), border-color 0.2s var(--nprn-ease);
}
.um.um-profile .um-profile-nav-item a::after { content: none !important; }
.um.um-profile .um-profile-nav-item a:hover { color: var(--nprn-ink); }
.um.um-profile .um-profile-nav-item.active a { color: var(--nprn-ink); border-bottom-color: var(--nprn-green); }
.um.um-profile .um-profile-nav-item i { font-size: 16px; color: inherit; }

/* ---- Body: card grid (view mode only) -------------------------------------- */
.um.um-profile.um-viewing .um-profile-body { padding: var(--pf-gap) 0 0; margin: 0; width: 100%; }
.um.um-profile.um-viewing .um-profile-body .um-profile-note { display: none; }
.um.um-profile.um-viewing .um-profile-body .um-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--pf-gap);
	margin: 0 0 var(--pf-gap);
	padding: 0;
}
.um.um-profile.um-viewing .um-profile-body .um-row > .um-clear { display: none; }
.um.um-profile.um-viewing .um-profile-body .um-row > div[class*='um-col-'] {
	float: none;
	width: auto;
	margin: 0;
	padding: var(--pf-pad);
	background: var(--pf-card);
	border: 1px solid var(--nprn-line);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(27, 43, 54, 0.04);
}
.um.um-profile.um-viewing .um-profile-body .um-row > .um-col-1 { grid-column: 1 / -1; }
.um.um-profile.um-viewing .um-profile-body .um-row > div:not(:has(.um-field)) { display: none; }

/* card headings */
.um.um-profile.um-viewing .um-profile-body .um-row > div[class*='um-col-12']::before,
.um.um-profile.um-viewing .um-profile-body .um-row > .um-col-1:has(.um-field-tags_issues)::before {
	display: block;
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--nprn-line);
	color: var(--nprn-ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.um.um-profile.um-viewing .um-profile-body .um-row > div:has(.um-field-exec_director_lead)::before { content: 'Leadership & address'; }
.um.um-profile.um-viewing .um-profile-body .um-row > div:has(.um-field-user_url)::before { content: 'Contact'; }
.um.um-profile.um-viewing .um-profile-body .um-row > div:has(.um-field-types_of_support)::before { content: 'What they fund'; }
.um.um-profile.um-viewing .um-profile-body .um-row > div:has(.um-field-funder_deadlines)::before { content: 'How to apply'; }
.um.um-profile.um-viewing .um-profile-body .um-row > div:has(.um-field-tags_issues)::before { content: 'Issue areas'; }
.um.um-profile.um-viewing .um-profile-body .um-row > div:has(.um-field-geo_focus)::before { content: 'Geographic focus'; }
.um.um-profile.um-viewing .um-profile-body .um-row > div:has(.um-field-first_name)::before { content: 'Details'; }
.um.um-profile.um-viewing .um-profile-body .um-row > div:has(.um-field-primary_organization)::before { content: 'Work'; }
/* LinkedIn / Facebook / Instagram are already icons in the header card */
.um.um-profile.um-viewing .um-profile-body .um-row > div:has(.um-field-linkedin):not(:has(.um-field-user_url)) { display: none; }

/* ---- Fields ------------------------------------------------------------------ */
.um.um-profile.um-viewing .um-profile-body .um-field { padding: 0; margin: 0 0 20px; }
.um.um-profile.um-viewing .um-profile-body .um-field:last-child { margin-bottom: 0; }
.um.um-profile .um-field-label { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 0; }
.um.um-profile .um-field-label-icon { position: static; width: auto; min-width: 0; margin: 0; padding: 0; line-height: 1; }
.um.um-profile .um-field-label-icon i { font-size: 16px; color: var(--nprn-blue); opacity: 0.75; }
.um.um-profile .um-field-label label {
	margin: 0;
	padding: 0;
	color: var(--nprn-muted);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}
.um.um-profile .um-field-label .um-clear { display: none; }
.um.um-profile .um-field-area, .um-profile .um-field-value { padding: 0; }
.um.um-profile .um-field-value,
.um.um-profile .um-field-value p {
	margin: 0;
	color: var(--nprn-text);
	font-size: 15.5px;
	line-height: 1.65;
	overflow-wrap: anywhere;
}
.um.um-profile .um-field-value a { color: var(--nprn-blue); text-decoration: underline; text-decoration-color: rgba(59, 97, 121, 0.35); text-underline-offset: 3px; }
.um.um-profile .um-field-value a:hover { color: var(--nprn-blue-deep); text-decoration-color: currentColor; }

/* lead paragraph: Mission / Service / About me */
.um.um-profile .um-field-mission_service .um-field-value,
.um.um-profile .um-field-about_me .um-field-value { font-size: 17px; line-height: 1.75; color: var(--nprn-ink); }

/* grant facts */
.um.um-profile .um-field-funder_grant_range .um-field-value { font-size: 22px; font-weight: 700; color: var(--nprn-ink); line-height: 1.3; }

/* chips: checkbox lists */
.um.um-profile .um-field-checkbox .um-field-value ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.um.um-profile .um-field-checkbox .um-field-value li {
	margin: 0;
	padding: 6px 13px;
	border-radius: 999px;
	background: #eaf0f4;
	color: var(--nprn-blue-deep);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	list-style: none;
}
.um.um-profile .um-field-geo_focus .um-field-value li { background: #eef6dc; color: #3f6a0b; }
.um.um-profile .um-field-tags_issues .um-field-label,
.um.um-profile .um-field-geo_focus .um-field-label { display: none; } /* the card heading says it */

/* profile completeness (owner / admin) */
.um.um-profile .um-field-completeness_bar .um-field-label { margin-bottom: 8px; }
.um.um-profile .um-field-completeness_bar .um-field-value { height: auto; }
.um.um-profile .um-field-completeness_bar + .um-field { margin-top: 4px; }
.um.um-profile .um-field-completeness_bar .um-completeness-bar,
.um.um-profile .um-field-completeness_bar .um-completeness-bar-holder { height: 8px; border-radius: 99px; }


/* field labels: small caps label, icon spaced, value below (beats the parent's !important colour) */
body.um-page-user .um.um-profile.um-viewing .um-field-label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	padding: 0;
	border: 0 !important;
	color: var(--nprn-muted) !important;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}
body.um-page-user .um.um-profile.um-viewing .um-field-label .um-field-label-icon { position: static; width: auto; margin: 0; }
body.um-page-user .um.um-profile.um-viewing .um-field-label i { position: static; font-size: 14px; color: var(--nprn-blue); opacity: 0.8; }
body.um-page-user .um.um-profile.um-viewing .um-field-tags_issues .um-field-label,
body.um-page-user .um.um-profile.um-viewing .um-field-geo_focus .um-field-label { display: none; } /* the card heading says it */
body.um-page-user .um.um-profile .um-theme-profile-single-content-container,
body.um-page-user .um.um-profile .um-profile-content-container,
body.um-page-user .um.um-profile .um-profile-body { background: transparent !important; box-shadow: none; overflow: visible; }
body.um-page-user .um.um-profile.um-viewing .um-field { padding: 0 0 18px; }
body.um-page-user .um.um-profile.um-viewing .um-field:last-child { padding-bottom: 0; }
body.um-page-user .um.um-profile.um-viewing .um-field-value { color: var(--nprn-text); font-size: 15px; line-height: 1.6; }
body.um-page-user .um.um-profile.um-viewing .um-field-value a { color: var(--nprn-blue); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
body.um-page-user .um.um-profile.um-viewing .um-field-funder_grant_range .um-field-value { font-size: 22px; font-weight: 700; color: var(--nprn-ink); }


/* Message button (UM Messaging): green pill on the tab row, right-aligned (navbar sits right under the tabs) */
body.um-page-user .um.um-profile .um-profile-navbar .um-messaging-btn {
	position: absolute !important;
	right: 28px !important;
	left: auto !important;
	bottom: 24px !important;
	width: auto !important;
	margin: 0 !important;
}
body.um-page-user .um.um-profile .um-members-messaging-btn { width: auto !important; display: block; }
body.um-page-user .um.um-profile a.um-message-btn.um-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto !important;
	height: 40px !important;
	min-width: 0;
	padding: 0 22px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--nprn-green) !important;
	color: var(--nprn-ink) !important;
	font-size: 14px !important;
	font-weight: 700;
	line-height: 1 !important;
	text-decoration: none;
	transition: background 0.2s var(--nprn-ease);
}

/* Individual signup fields that were saved without a label */
.um.um-profile.um-viewing .um-field-zip-code .um-field-label::after { content: 'ZIP code'; }
.um.um-profile.um-viewing .um-field-join-purpose .um-field-label::after { content: 'Here to'; }

/* ---- Responsive --------------------------------------------------------------- */
@media (max-width: 860px) {
	.um.um-profile { padding: 16px 14px 56px; }
	.um.um-profile.um-viewing .um-profile-body .um-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
	body.um-page-user .um.um-profile .um-cover { height: 150px !important; border-radius: 16px 16px 0 0; }
	body.um-page-user .um.um-profile .um-header { padding: 80px 18px 24px !important; text-align: center; border-radius: 0 0 16px 16px; }
	body.um-page-user .um.um-profile .um-profile-photo,
	body.um-page-user .um.um-profile .um-profile-photo a.um-profile-photo-img { width: 120px !important; height: 120px !important; }
	body.um-page-user .um.um-profile .um-profile-photo { left: 50% !important; top: -60px !important; margin-left: -60px !important; padding: 0 !important; } /* padding: the User page's custom CSS adds 20px each side at <=501px, which pushed it off-centre */
	body.um-page-user .um.um-profile .um-main-meta { justify-content: center; }
	body.um-page-user .um.um-profile .um-name { justify-content: center; }
	body.um-page-user .um.um-profile .um-name > a { text-align: center; }
	body.um-page-user .um.um-profile .um-header .um-profile-meta { text-align: center !important; }
	body.um-page-user .um.um-profile .nprn-prof-extras { justify-content: center; }
	body.um-page-user .um.um-profile .nprn-prof-actions { justify-content: center; }
	body.um-page-user .um.um-profile .um-profile-connect { justify-content: center; }
	body.um-page-user .um.um-profile .um-profile-edit { top: 12px; right: 12px; }
	body.um-page-user .um.um-profile .um-profile-navbar { height: auto; }
	body.um-page-user .um.um-profile .um-profile-navbar .um-messaging-btn { position: static !important; display: flex; justify-content: center; margin: 14px 0 0 !important; }
	body.um-page-user .um.um-profile .um-profile-nav { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
	body.um-page-user .um.um-profile.um-viewing .um-profile-body .um-row > div[class*='um-col-'] { padding: 20px; }
}

@media (max-width: 550px) {
	body.um-page-user .um.um-profile .um-profile-nav-item a { padding: 0 10px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.nprn-prof-btn, .um-profile .um-profile-connect a, .um-profile .um-profile-nav-item a { transition: none; }
}

/* ---- Button hover: text is always white on profile pages ------------------
   Covers the header pills, settings, Message, UM's own .um-button / submit
   buttons and the social circles, including their icon + label children. */
body.um-page-user .um.um-profile :is(.nprn-prof-btn, .um-profile-edit-a, a.um-message-btn.um-button, a.um-button, .um-button, input[type="submit"].um-button, button.um-button, .um-profile-connect a):is(:hover, :focus-visible),
body.um-page-user .um.um-profile :is(.nprn-prof-btn, .um-profile-edit-a, a.um-message-btn.um-button, a.um-button, .um-button, .um-profile-connect a):is(:hover, :focus-visible) :is(svg, i, span) {
	color: #fff !important;
}
body.um-page-user .um.um-profile :is(.nprn-prof-btn, .um-profile-edit-a, a.um-message-btn.um-button):is(:hover, :focus-visible) svg { stroke: currentColor; }
body.um-page-user .um.um-profile a.um-message-btn.um-button:is(:hover, :focus-visible) { background: var(--nprn-blue-deep) !important; }
body.um-page-user .um.um-profile :is(a.um-button, input[type="submit"].um-button, button.um-button):is(:hover, :focus-visible) { background: var(--nprn-blue-deep) !important; }
body.um-page-user .um.um-profile :is(.um-profile-edit-a, .um-profile-connect a):is(:hover, :focus-visible) { background: var(--nprn-blue) !important; }

/* The SETTINGS / SAVE CHANGES labels are ::before text, and the User page's Elementor custom CSS paints them
   #3B6179 (Save) or green (Settings) on hover - blue-on-blue, i.e. invisible. Win by specificity; keep it white. */
body.um-page-user .um.um-profile .um-header .um-profile-edit a.um-profile-edit-a:is(:hover, :focus-visible),
body.um-page-user .um.um-profile .um-header .um-profile-edit a.um-profile-edit-a:is(:hover, :focus-visible)::before,
body.um-page-user .um.um-profile .um-header .um-profile-edit a.um-profile-edit-a.um-profile-save:is(:hover, :focus-visible),
body.um-page-user .um.um-profile .um-header .um-profile-edit a.um-profile-edit-a.um-profile-save:is(:hover, :focus-visible)::before {
	color: #fff !important;
}

/* Edit Profile button (profile.php). Desktop: stacked directly under SETTINGS at the same width, right edges aligned
   (same containing block, so right: 30px lines up with the gear pill). z-index 2 keeps it beneath the Settings dropdown (3).
   Phones keep it in the centred button row. */
body.um-page-user .um.um-profile .nprn-prof-btn.nprn-prof-edit { padding: 0 12px; }
@media (min-width: 721px) {
	body.um-page-user .um.um-profile .nprn-prof-btn.nprn-prof-edit {
		position: absolute;
		top: 66px;
		right: 30px;
		z-index: 2;
		justify-content: center;
		box-sizing: border-box;
		width: 130px;
	}
}

/* ---- My Posts tab: toggle (shared .nprn-acc look in components.css) + GravityView rows as cards ---- */
body.um-page-user .um-profile .nprn-acc { margin-top: 8px; }
body.um-page-user .um-profile .nprn-acc .elementor-tab-content { padding-top: 14px !important; }
body.um-page-user .um-profile .nprn-acc .gv-view-title { display: none; }
body.um-page-user .um-profile .nprn-acc .gv-diy-container { display: grid; gap: 14px; margin: 0; }
body.um-page-user .um-profile .nprn-acc .gv-diy-view {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	grid-template-areas: "img title" "img meta";
	column-gap: 20px;
	row-gap: 6px;
	align-items: center;
	padding: 16px 18px;
	background: var(--nprn-bg);
	border: 1px solid var(--nprn-line);
	border-radius: 14px;
	transition: border-color 0.2s var(--nprn-ease), box-shadow 0.2s var(--nprn-ease), background-color 0.2s;
}
body.um-page-user .um-profile .nprn-acc .gv-diy-view:hover { background: #fff; border-color: var(--nprn-line-strong); box-shadow: var(--nprn-shadow-hover); }
body.um-page-user .um-profile .nprn-acc .gv-diy-view .the-image { grid-area: img; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--nprn-line); border-radius: 12px; overflow: hidden; padding: 8px; margin: 0 !important; }
body.um-page-user .um-profile .nprn-acc .gv-diy-view .the-image figure, 
body.um-page-user .um-profile .nprn-acc .gv-diy-view .the-image a { display: flex; width: 100%; height: 100%; margin: 0; align-items: center; justify-content: center; }
body.um-page-user .um-profile .nprn-acc .gv-diy-view .the-image img { width: 100%; height: 100%; max-width: none !important; object-fit: contain; }
body.um-page-user .um-profile .nprn-acc .gv-diy-view .post_title { grid-area: title; margin: 0 !important; padding: 0 !important; align-self: end; }
body.um-page-user .um-profile .nprn-acc .gv-diy-view .post_title a { font: 700 18px/1.3 Montserrat, sans-serif; color: var(--nprn-ink); text-decoration: none; }
body.um-page-user .um-profile .nprn-acc .gv-diy-view .post_title a:hover { color: var(--nprn-blue); }
body.um-page-user .um-profile .nprn-acc .gv-diy-view .edit_view_delete_buttons { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 !important; padding: 0 !important; align-self: start; }
body.um-page-user .um-profile .nprn-acc .gv-diy-view .post_date { flex: 1 0 100%; font: 500 13.5px/1.4 Montserrat, sans-serif; color: var(--nprn-muted); margin: 0 !important; }
body.um-page-user .um-profile .nprn-acc .gv-diy-view .edit-entry-button a,
body.um-page-user .um-profile .nprn-acc .gv-diy-view .delete-entry-button a {
	display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 14px;
	border: 1px solid var(--nprn-line-strong); border-radius: 999px; background: #fff;
	font: 700 12px/1 Montserrat, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--nprn-blue-deep);
	transition: background-color 0.2s var(--nprn-ease), color 0.2s, border-color 0.2s;
}
body.um-page-user .um-profile .nprn-acc .gv-diy-view .edit-entry-button a:hover { background: var(--nprn-blue); border-color: var(--nprn-blue); color: #fff; }
body.um-page-user .um-profile .nprn-acc .gv-diy-view .delete-entry-button a { color: #a23b2f; }
body.um-page-user .um-profile .nprn-acc .gv-diy-view .delete-entry-button a:hover { background: #a23b2f; border-color: #a23b2f; color: #fff; }
@media (max-width: 600px) {
	body.um-page-user .um-profile .nprn-acc .gv-diy-view { grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; padding: 14px; }
	body.um-page-user .um-profile .nprn-acc .gv-diy-view .the-image { width: 72px; height: 72px; }
}

/* "Your Posts" (owner) markup has no .edit_view_delete_buttons wrapper: date, Edit and Delete are direct children of the row */
body.um-page-user .um-profile .nprn-acc .gv-diy-view:not(:has(.edit_view_delete_buttons)) {
	grid-template-columns: 96px max-content minmax(0, 1fr);
	grid-template-areas: "img title title" "img date date" "img edit del";
	column-gap: 12px;
}
body.um-page-user .um-profile .nprn-acc .gv-diy-view:not(:has(.edit_view_delete_buttons)) .post_title,
body.um-page-user .um-profile .nprn-acc .gv-diy-view:not(:has(.edit_view_delete_buttons)) .post_date { margin-left: 8px !important; }
body.um-page-user .um-profile .nprn-acc .gv-diy-view:not(:has(.edit_view_delete_buttons)) .edit-entry-button { margin-left: 8px !important; }
body.um-page-user .um-profile .nprn-acc .gv-diy-view:not(:has(.edit_view_delete_buttons)) .post_title { align-self: end; }
body.um-page-user .um-profile .nprn-acc .gv-diy-view:not(:has(.edit_view_delete_buttons)) .post_date { grid-area: date; margin-top: 0 !important; margin-bottom: 0 !important; padding: 0 !important; font: 500 13.5px/1.4 Montserrat, sans-serif; color: var(--nprn-muted); }
body.um-page-user .um-profile .nprn-acc .gv-diy-view:not(:has(.edit_view_delete_buttons)) .edit-entry-button { grid-area: edit; margin: 4px 0 0 8px !important; padding: 0 !important; }
body.um-page-user .um-profile .nprn-acc .gv-diy-view:not(:has(.edit_view_delete_buttons)) .delete-entry-button { grid-area: del; margin: 4px 0 0 !important; padding: 0 !important; justify-self: start; }
body.um-page-user .um-profile .nprn-acc .gv-diy-view:not(:has(.edit_view_delete_buttons)) :is(.edit-entry-button, .delete-entry-button) { align-self: start; width: auto; height: auto; }
@media (max-width: 600px) {
	body.um-page-user .um-profile .nprn-acc .gv-diy-view:not(:has(.edit_view_delete_buttons)) { grid-template-columns: 72px max-content minmax(0, 1fr); }
}

/* GravityView injects the EDIT / DELETE labels as i::after with a hard-coded #484848; let them follow the button colour (white on hover) */
body.um-page-user .um-profile .nprn-acc :is(.edit-entry-button, .delete-entry-button) a i::after { color: inherit !important; }
