/* MMA profile cards: [mma_profiles] */
.mma-pc {
	--mma-brown: #513508;
	--mma-teal: #184C47;
	--mma-amber: #9D5A0B;
	--mma-cream: #FAF6F0;
	--mma-sand: #F4E9DA;
	--mma-line: #EADFCF;
	--mma-ink: #2B2118;
	--mma-muted: #6B5E52;
	--mma-green: #2BA346;
	font-family: 'Poppins', sans-serif;
	width: 100%;
}
.mma-pc *, .mma-pc *::before, .mma-pc *::after { box-sizing: border-box; }

/* Tabs */
.mma-pc-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}
.mma-pc-tabs {
	display: inline-flex;
	gap: 4px;
	padding: 5px;
	background: var(--mma-sand);
	border-radius: 999px;
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
}
.mma-pc-tabs::-webkit-scrollbar { display: none; }
.mma-pc-tab {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--mma-ink);
	font: 500 14px/1 'Poppins', sans-serif;
	padding: 11px 18px;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.mma-pc-tab:hover { background: rgba(255,255,255,.6); }
.mma-pc-tab:focus-visible { outline: 2px solid var(--mma-amber); outline-offset: 2px; }
.mma-pc-tab[aria-selected="true"] {
	background: var(--mma-brown);
	color: #fff;
	box-shadow: 0 6px 16px rgba(81,53,8,.25);
}
.mma-pc-tab .mma-pc-count {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 7px;
	border-radius: 999px;
	background: rgba(81,53,8,.1);
	color: var(--mma-brown);
	line-height: 1;
}
.mma-pc-tab[aria-selected="true"] .mma-pc-count { background: rgba(255,255,255,.2); color: #fff; }
.mma-pc-all {
	font: 600 14px/1 'Poppins', sans-serif;
	color: var(--mma-teal) !important;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 4px;
}
.mma-pc-all svg { width: 16px; height: 16px; flex: 0 0 auto; transition: transform .25s ease; }
.mma-pc-all:hover svg { transform: translateX(4px); }

/* Panels + grid */
.mma-pc-panel[hidden] { display: none !important; }
.mma-pc-panel.is-entering .mma-pc-card { animation: mmaPcIn .45s ease both; }
.mma-pc-panel.is-entering .mma-pc-card:nth-child(2) { animation-delay: .04s; }
.mma-pc-panel.is-entering .mma-pc-card:nth-child(3) { animation-delay: .08s; }
.mma-pc-panel.is-entering .mma-pc-card:nth-child(4) { animation-delay: .12s; }
.mma-pc-panel.is-entering .mma-pc-card:nth-child(n+5) { animation-delay: .16s; }
@keyframes mmaPcIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.mma-pc-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}
@media (max-width: 1024px) { .mma-pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .mma-pc-grid { grid-template-columns: 1fr; gap: 12px; } }

/* Card */
.mma-pc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--mma-line);
	border-radius: 20px;
	color: var(--mma-ink) !important;
	text-decoration: none !important;
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.mma-pc-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 64px;
	background: linear-gradient(135deg, var(--mma-cream), var(--mma-sand));
	opacity: .8;
	transition: opacity .3s ease, height .3s ease;
	z-index: 0;
}
.mma-pc-card > * { position: relative; z-index: 1; }
.mma-pc-card:hover, .mma-pc-card:focus-visible {
	transform: translateY(-5px);
	border-color: rgba(157,90,11,.45);
	box-shadow: 0 18px 40px rgba(81,53,8,.14);
	outline: none;
}
.mma-pc-card:hover::before { opacity: 1; height: 72px; }
.mma-pc-card.is-featured { border-color: rgba(157,90,11,.35); }

.mma-pc-head { display: flex; align-items: center; gap: 14px; min-width: 0; }

.mma-pc-avatar {
	position: relative;
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	padding: 3px;
	background: #fff;
	box-shadow: 0 0 0 2px var(--mma-line);
	transition: box-shadow .3s ease, transform .3s ease;
}
.mma-pc-card.is-featured .mma-pc-avatar { box-shadow: 0 0 0 2px #E2B04A; }
.mma-pc-card:hover .mma-pc-avatar { box-shadow: 0 0 0 3px var(--mma-amber); transform: scale(1.04); }
.mma-pc-avatar { overflow: visible; display: block; line-height: 0; }
/* Photo pinned inside the ring: 3px white gap on every side, always centred. */
.mma-pc .mma-pc-avatar img,
.mma-pc .mma-pc-avatar .mma-pc-initial {
	position: absolute !important;
	top: 3px !important;
	left: 3px !important;
	right: auto !important;
	bottom: auto !important;
	transform: none !important;
	width: calc(100% - 6px) !important;
	height: calc(100% - 6px) !important;
	max-width: none !important;
	min-height: 0 !important;
	aspect-ratio: 1 / 1;
	border-radius: 50% !important;
	object-fit: cover !important;
	object-position: center center;
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
}
.mma-pc .mma-pc-avatar .mma-pc-initial {
	display: flex !important;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.mma-pc-avatar .mma-pc-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--mma-teal), #0F3532);
	color: #fff;
	font-weight: 600;
	font-size: 22px;
}
.mma-pc-tick {
	position: absolute;
	z-index: 2;
	right: -2px;
	bottom: -2px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--mma-green);
	border: 2px solid #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.mma-pc-tick svg { width: 12px; height: 12px; color: #fff; }

.mma-pc-id { min-width: 0; flex: 1; }
.mma-pc-name {
	margin: 0 0 3px !important;
	font: 600 16px/1.3 'Poppins', sans-serif !important;
	color: var(--mma-ink) !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mma-pc-meta {
	margin: 0 !important;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	line-height: 1.3;
	color: var(--mma-muted);
	white-space: nowrap;
	overflow: hidden;
}
.mma-pc-meta svg { width: 13px; height: 13px; flex: 0 0 auto; color: var(--mma-amber); }
.mma-pc-meta .mma-pc-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; flex: 0 0 auto; }
.mma-pc-meta .mma-pc-place { overflow: hidden; text-overflow: ellipsis; }

/* Badges */
.mma-pc-badges { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; }
.mma-pc-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .02em;
}
.mma-pc-badge svg { width: 11px; height: 11px; }
.mma-pc-badge.is-featured { background: #FFF4D6; color: #8A5A00; }
.mma-pc-badge.is-verified { background: #E5F5E9; color: #1E7A34; }
.mma-pc-badge.is-family   { background: #E6F0EF; color: var(--mma-teal); }
.mma-pc-badge.is-custom   { background: var(--mma-sand); color: var(--mma-brown); }

/* Tags */
.mma-pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.mma-pc-tags li {
	margin: 0 !important;
	padding: 5px 10px;
	font-size: 12px;
	line-height: 1.2;
	color: var(--mma-muted);
	background: var(--mma-cream);
	border: 1px solid var(--mma-line);
	border-radius: 8px;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mma-pc-tags li::before { content: none !important; }

.mma-pc-foot {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px dashed var(--mma-line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 600;
	color: var(--mma-teal);
}
.mma-pc-arrow {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--mma-sand);
	color: var(--mma-brown);
	transition: background .3s ease, color .3s ease, transform .3s ease;
}
.mma-pc-arrow svg { width: 15px; height: 15px; }
.mma-pc-card:hover .mma-pc-arrow { background: var(--mma-brown); color: #fff; transform: translateX(3px); }

.mma-pc-empty { padding: 32px; text-align: center; color: var(--mma-muted); background: var(--mma-cream); border-radius: 16px; }

@media (max-width: 560px) {
	.mma-pc-bar { margin-bottom: 20px; }
	.mma-pc-tabs { width: 100%; }
	.mma-pc-tab { padding: 10px 14px; font-size: 13px; flex: 1 0 auto; justify-content: center; }
	.mma-pc-card { padding: 16px; gap: 12px; }
	.mma-pc-avatar { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
	.mma-pc-card, .mma-pc-avatar, .mma-pc-arrow, .mma-pc-tab { transition: none; }
	.mma-pc-panel.is-entering .mma-pc-card { animation: none; }
	.mma-pc-card:hover { transform: none; }
	.mma-search-ui #ajax-search-output .mma-search-col > .mma-pc-card { animation: none; }
}
