/* HHM Data Protected badge rollout — batch brief 9 Sept 2026 ("Badge
   rollout..."), Phase 1 item 2. Same hhm_data_protected_badge() markup/
   colours the homepage and Firm Dashboard already use, re-scoped small for
   four new inline contexts. Not a redesign — see hhm-badge-rollout.php.

   Kept in its own stylesheet (not style.css / the Customizer) so it can be
   edited without touching the child theme's version header — but the CTC
   cache-busting gotcha still applies to any CSS served from the child
   theme dir, so bump style.css Version on any deploy that changes this
   file. */

/* Shared small-badge sizing, all four contexts. */
.hhm-data-protected-badge .hhm-vbadge {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	width: 30px;
	vertical-align: middle;
}

.hhm-data-protected-badge .hhm-vbadge svg {
	width: 100%;
	height: auto;
	filter: drop-shadow( 0 1px 3px rgba(0, 0, 0, 0.2) );
}

.hhm-data-protected-badge .hhm-vbadge__shield {
	fill: #1e6fff;
	stroke: #ffffff;
	stroke-width: 4;
}

.hhm-data-protected-badge .hhm-vbadge__ring {
	stroke: #e8c15a;
}

.hhm-data-protected-badge .hhm-vbadge__lock rect,
.hhm-data-protected-badge .hhm-vbadge__lock path {
	fill: #ffffff;
	stroke: #ffffff;
}

.hhm-data-protected-badge .hhm-vbadge__lock-hole {
	fill: #1e6fff;
	stroke: none;
}

.hhm-data-protected-badge .hhm-vbadge__label {
	font-size: 7px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-align: center;
	text-shadow: none;
}

/* 1. Vendor profile — sits inline in the h3.hp-vendor__name badge cluster
   (same flex-wrap row as Founder / Verified Firm / Agent Verified). */
.hhm-data-protected-badge--inline {
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
}

.hhm-data-protected-badge--inline .hhm-vbadge__label {
	color: #374151;
}

/* 2. Listing detail page — sibling card under the agent/firm info block in
   page_sidebar, same card rhythm as the rest of that sidebar. */
.hhm-listing-data-protected {
	margin-top: 10px;
	padding: 8px 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #fafafa;
}

.hhm-listing-data-protected .hhm-vbadge__label {
	color: #374151;
}

/* 3. Search results page — small line under the existing Suitability
   Score / trust card, same understated pattern. */
.hhm-search-data-protected {
	margin: 0.6rem 0 1.4rem;
	display: flex;
	align-items: center;
	gap: 8px;
}

.hhm-search-data-protected .hhm-vbadge__label {
	color: #5a6b8c;
}

.hhm-search-data-protected::after {
	content: "We never sell or trade your search or contact data.";
	font-size: 0.82rem;
	color: #5a6b8c;
}

/* 4. Site footer — sitewide, sits above the legal links row. */
.hhm-legal-footer__data-protected {
	display: flex;
	justify-content: center;
	margin: 0 0 12px;
}

.hhm-data-protected-badge--footer .hhm-vbadge {
	width: 26px;
}

.hhm-data-protected-badge--footer .hhm-vbadge__label {
	color: #6b7280;
}

@media (max-width: 782px) {
	.hhm-data-protected-badge--inline {
		margin-left: 0;
		margin-top: 4px;
	}
}

/* -------------------------------------------------------------------------
   Phase 1c — Agent Verified badge (individually-onboarded REN/PEA).
   Reuses hhm_verified_badge() (functions.php) — same blue-shield SVG family
   as Data Protected above, just the --verified variant (shield + check,
   no ring/lock). Same small-inline treatment as the vendor-profile Data
   Protected badge, so the two sit consistently in the same h3 cluster.
   ---------------------------------------------------------------------- */

.hhm-agent-verified-badge .hhm-vbadge {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	width: 26px;
	vertical-align: middle;
}

.hhm-agent-verified-badge .hhm-vbadge svg {
	width: 100%;
	height: auto;
	filter: drop-shadow( 0 1px 3px rgba(0, 0, 0, 0.2) );
}

.hhm-agent-verified-badge .hhm-vbadge__shield {
	fill: #1e6fff;
	stroke: #ffffff;
	stroke-width: 4;
}

.hhm-agent-verified-badge .hhm-vbadge__check {
	stroke: #ffffff;
}

.hhm-agent-verified-badge .hhm-vbadge__label {
	font-size: 7px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-align: center;
	text-shadow: none;
	color: #374151;
}

.hhm-agent-verified-badge--inline {
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
}

/* Hides HivePress's own native "Verified" checkmark icon in this same
   cluster now that hp_verified is genuinely populated for some vendors —
   hhm-agent-verified-badge--inline (added as its own sibling block, not an
   override of this one — see hhm-badge-rollout.php §6) is the one branded
   badge that should show for an individually-verified REN/PEA. */
.hp-vendor--view-page .hp-vendor__verified-badge {
	display: none;
}

@media (max-width: 782px) {
	.hhm-agent-verified-badge--inline {
		margin-left: 0;
		margin-top: 4px;
	}
}
