/* Stage E - ARC public business PROFILE layout. Loaded ONLY on ARC business profile
   pages (/noa/usr_<nick> where arc_is_arc_business()==true), alongside arc.css.
   All selectors scoped under .arc-profile - must not affect the rest of the user page
   or any non-ARC profile. Buttons (.arc-btn) and the contact modal (.arc-lightbox /
   .arc-modal-open) are reused from arc.css.
   SAF brand: #74ceb7 (light), #2c858d (mid), #004056 (dark). */

.arc-profile { color: #333; margin: 0 0 14px; }

.arc-profile .arc-profile-card {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	padding: 16px;
	box-sizing: border-box;
}

/* media / logo */
.arc-profile .arc-profile-media {
	flex: 0 0 108px;
	width: 108px;
	height: 108px;
	box-sizing: border-box;
	padding: 10px;
	border-radius: 8px;
	overflow: hidden;
	background: #f4f7f7;
	display: flex;
	align-items: center;
	justify-content: center;
}
.arc-profile .arc-profile-media img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	display: block;
}
.arc-profile .arc-profile-media--empty {
	background: linear-gradient(135deg, #74ceb7, #2c858d);
}
.arc-profile .arc-profile-media--empty span {
	color: #fff;
	font-size: 44px;
	font-weight: bold;
	line-height: 1;
}

/* text side */
.arc-profile .arc-profile-body { flex: 1 1 auto; text-align: right; min-width: 0; }
.arc-profile .arc-profile-name { margin: 0 0 6px; color: #004056; font-size: 22px; line-height: 1.3; }
.arc-profile .arc-profile-area { color: #2c858d; font-size: 14px; margin-bottom: 10px; }

.arc-profile .arc-profile-contact {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
}
.arc-profile .arc-profile-row {
	padding: 4px 0;
	font-size: 15px;
	color: #444;
	border-bottom: 1px solid #f0f2f2;
}
.arc-profile .arc-profile-row:last-child { border-bottom: 0; }
.arc-profile .arc-profile-k { color: #004056; font-weight: bold; }
.arc-profile .arc-profile-v a { color: #2c858d; text-decoration: none; word-break: break-word; }
.arc-profile .arc-profile-v a:hover { text-decoration: underline; }

/* CTAs - inline on desktop, reuse .arc-btn from arc.css for the button skin */
.arc-profile .arc-profile-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.arc-profile .arc-profile-actions .arc-btn { width: auto; min-width: 200px; }

.arc-profile .arc-profile-desc {
	margin-top: 14px;
	color: #444;
	font-size: 15px;
	line-height: 1.6;
}

/* ---- inline edit (owner/admin only) ---- */
.arc-profile .arc-field { position: relative; }
.arc-profile .arc-edit {
	border: 0;
	background: transparent;
	color: #2c858d;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	padding: 2px 6px;
	vertical-align: middle;
	border-radius: 4px;
}
.arc-profile .arc-edit:hover { background: #f0faf7; color: #004056; }
.arc-profile .arc-editing > .arc-field-value,
.arc-profile .arc-editing > .arc-edit { display: none; }

.arc-profile .arc-field-editor { margin: 8px 0; }
.arc-profile .arc-field-input {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #74ceb7;
	border-radius: 6px;
	font-family: inherit;
	font-size: 15px;
	color: #333;
	direction: rtl;
}
.arc-profile textarea.arc-field-input { min-height: 120px; resize: vertical; }
.arc-profile .arc-field-btns { margin-top: 8px; display: flex; gap: 8px; }
.arc-profile .arc-field-btns .arc-btn { width: auto; min-width: 120px; padding: 8px 14px; font-size: 14px; }
.arc-profile .arc-field-msg { margin-top: 6px; font-size: 13px; color: #2c858d; }
.arc-profile .arc-field-msg--err { color: #b00020; }

.arc-profile .arc-hidden-badge {
	display: inline-block;
	font-size: 12px;
	color: #8a6d00;
	background: #fff7dd;
	border: 1px solid #f0e2a8;
	border-radius: 10px;
	padding: 1px 8px;
	margin: 0 4px;
}
.arc-profile .arc-saved > .arc-field-value { background: #eafaf3; transition: background .3s ease; }

/* owner/admin empty-state placeholder (never rendered for visitors, never stored).
   Shown only while the sibling real value is empty; auto-hidden once a value exists. */
.arc-profile .arc-empty-label {
	color: #9aa5a5;
	font-style: italic;
}
.arc-profile .arc-field-value:not(:empty) + .arc-empty-label { display: none; }
.arc-profile .arc-editing .arc-empty-label { display: none; }

/* mobile: stack media above text, full-width CTAs */
@media (max-width: 640px) {
	.arc-profile .arc-profile-card { flex-direction: column; align-items: stretch; }
	.arc-profile .arc-profile-media {
		flex-basis: auto;
		width: 100%;
		height: 160px;
	}
	.arc-profile .arc-profile-media img { max-height: 100%; }
	.arc-profile .arc-profile-actions .arc-btn { width: 100%; min-width: 0; }
	.arc-profile .arc-field-btns .arc-btn { width: 100%; }
}
