/**
 * Helper Card — Phase 1
 * .hc namespace, .vp parent. Includes the canonical DL badge CSS so the
 * shared helper has its styles wherever it renders.
 *
 * Tokens used: forest #1c3a2a, primary #2f7d4d, mint #95d5b2, pale #eef6f0,
 *              identity blue var(--iw-info, #0277bd).
 */

/* ─── DL badge canonical (Unicode-based; no font dependency) ─── */
.licence_blue_tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: var(--iw-info, #0277bd);  /* kept for backward compat */
	font-size: 18px;                 /* kept for backward compat */
	line-height: 1;
}

/* The visible badge mark — Unicode glyph in a CSS-styled circle.
   Uses system fonts (always have U+2713) so no external font dependency. */
.licence_blue_tick__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.1em;
	height: 1.1em;
	border-radius: 50%;
	background: var(--iw-info, #0277bd);
	color: #fff;
	font-size: 0.75em;
	font-weight: bold;
	line-height: 1;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.licence_blue_tick--compact {
	font-size: 14px;
	margin-left: 4px;
	vertical-align: middle;
}
.licence_blue_tick--compact .licence_blue_tick__mark {
	width: 14px;
	height: 14px;
	font-size: 10px;
}

.licence_blue_tick.add_licence {
	color: #b3b3b3;
	cursor: pointer;
}
.licence_blue_tick.add_licence:hover {
	color: var(--iw-info, #0277bd);
}
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	background: #1c3a2a;
	color: #fff;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	white-space: nowrap;
	z-index: 100;
	pointer-events: none;
}

/* ─── Page shell — break the theme container, give breathing room ─── */
.vp.hc {
	max-width: 1060px !important;
	margin: 0 auto !important;
	padding: 32px 24px 48px !important;
	box-sizing: border-box;
}
@media (max-width: 600px) {
	.vp.hc { padding: 16px 14px 32px !important; }
}

/* ─── Owner panel (logged-in volunteer viewing own card) ─── */
.hc .hc-owner-panel {
	background: #eef6f0;
	border: 1px solid #dce9df;
	border-left: 4px solid #2f7d4d;
	border-radius: 10px;
	padding: 16px 20px;
	margin: 0 auto 24px;
	max-width: 640px;
	box-sizing: border-box;
}
.hc .hc-owner-eyebrow {
	font-weight: 600;
	color: #1c3a2a;
	margin: 0 0 6px;
	font-size: 0.95em;
}
.hc .hc-owner-note {
	margin: 0;
	color: #48534c;
	font-size: 0.9em;
}

/* ─── Card ─── */
/* !important required: vp-system.css has body:has(.vp) article { max-width:100% !important;
   padding:0 !important; width:100% !important; } which would otherwise clobber the card
   chrome to full-width with no padding. See backlog item (w). */
.hc .hc-card {
	background: #fff !important;
	border: 1px solid #dfe8e1 !important;
	border-radius: 16px !important;
	padding: 32px 40px !important;
	max-width: 640px !important;
	margin: 0 auto !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
	box-sizing: border-box !important;
}
@media (max-width: 600px) {
	.hc .hc-card { padding: 24px 22px !important; }
}

/* Soft accent strip at the top of the card */
.hc .hc-card {
	position: relative;
	overflow: hidden;
}
.hc .hc-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, #2f7d4d 0%, #95d5b2 100%);
}

/* ─── Header ─── */
.hc .hc-header { text-align: center; margin-bottom: 24px; }
.hc .hc-badges {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.hc .hc-badge {
	display: inline-block;
	font-size: 0.85em;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 999px;
	letter-spacing: 0.02em;
}
.hc .hc-badge--approved {
	background: #2f7d4d;
	color: #fff;
}
.hc .hc-name {
	font-size: 1.9em;
	color: #1c3a2a;
	margin: 0 0 6px;
	font-weight: 700;
	font-family: inherit;
}
.hc .hc-location {
	color: #48534c;
	margin: 0;
	font-size: 1em;
}
.hc .hc-team-note {
	color: #5f6b63;
	margin: 8px 0 0;
	font-size: 0.85em;
	font-style: italic;
}

/* ─── Stats grid ─── */
.hc .hc-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 24px 0;
	padding: 20px 0;
	border-top: 1px solid #e5eae6;
	border-bottom: 1px solid #e5eae6;
}
.hc .hc-stat { text-align: center; }
.hc .hc-stat-value {
	display: block;
	font-size: 1.5em;
	font-weight: 700;
	color: #1c3a2a;
	line-height: 1.1;
}
.hc .hc-stat-label {
	display: block;
	font-size: 0.8em;
	color: #5f6b63;
	margin-top: 4px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
@media (max-width: 600px) {
	.hc .hc-stats { grid-template-columns: 1fr; gap: 16px; padding: 16px 0; }
}

/* ─── Referral count row (Phase 2 — Bring-a-Helper) ─── */
.hc .hc-referrals {
	margin: -8px 0 16px;
	text-align: center;
}
.hc .hc-referrals-line {
	margin: 0;
	color: #48534c;
	font-size: 0.9em;
}
.hc .hc-referrals-line strong {
	color: #2f7d4d;
	font-weight: 700;
	margin-right: 4px;
}

/* ─── Services list ─── */
.hc .hc-services { margin: 24px 0; }
.hc .hc-services-title {
	font-size: 1.05em;
	color: #1c3a2a;
	margin: 0 0 12px;
	font-weight: 600;
}
.hc .hc-services-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.hc .hc-services-list li {
	background: #eef6f0;
	color: #1c3a2a;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.9em;
	border: 1px solid #d8e7dc;
}

/* ─── CTAs (override .vp a { display: inline !important }) ─── */
.hc .hc-ctas {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 28px 0 24px;
}
.hc .hc-cta.hc-cta {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border-radius: 6px;
	font-weight: 600 !important;
	text-decoration: none !important;
	background: none;
	font-size: 1em;
	transition: background 0.15s ease, color 0.15s ease;
}
.hc .hc-cta.hc-cta--primary {
	background: #2f7d4d !important;
	color: #fff !important;
	border: 1px solid #2f7d4d;
}
.hc .hc-cta.hc-cta--primary:hover {
	background: #276741 !important;
	border-color: #276741;
}
.hc .hc-cta.hc-cta--secondary {
	background: #fff !important;
	color: #2f7d4d !important;
	border: 1px solid #2f7d4d;
}
.hc .hc-cta.hc-cta--secondary:hover {
	background: #eef6f0 !important;
}

/* ─── QR code ─── */
.hc .hc-qr {
	text-align: center;
	margin: 24px 0;
	padding: 20px 0 0;
	border-top: 1px solid #e5eae6;
}
.hc #hc-qr-target {
	display: inline-block;
	min-height: 132px;
	min-width: 132px;
}
.hc #hc-qr-target img,
.hc #hc-qr-target canvas {
	display: block;
	margin: 0 auto;
	max-width: 132px;
	height: auto;
}
.hc .hc-qr-caption {
	color: #5f6b63;
	font-size: 0.85em;
	margin: 8px 0 0;
}

/* ─── Footer ─── */
.hc .hc-footer {
	text-align: center;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #e5eae6;
	color: #5f6b63;
	font-size: 0.8em;
}
.hc .hc-footer p { margin: 4px 0; }
.hc .hc-footer a.hc-footer.hc-footer { /* no-op anchor selector to bump specificity safely if needed */ }
.hc .hc-footer a {
	color: #2f7d4d !important;
	text-decoration: none !important;
	font-weight: 600;
}

/* ─── Action bar (download / print / share) ─── */
.hc .hc-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 24px;
}
.hc .hc-btn,
.hc a.hc-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	border-radius: 6px;
	font-weight: 600 !important;
	text-decoration: none !important;
	border: 1px solid #2f7d4d;
	background: #fff !important;
	color: #2f7d4d !important;
	cursor: pointer;
	font-size: 0.95em;
	transition: background 0.15s ease;
}
.hc .hc-btn:hover,
.hc a.hc-btn:hover {
	background: #eef6f0 !important;
}
.hc .hc-btn--link { /* same look — purely a marker class */ }

/* ─── Print variant (5.5" × 8.5" half-sheet) ─── */
.hc.hc--print {
	max-width: 5.5in !important;
	padding: 0.5in 0.5in !important;
	margin: 0 auto !important;
	background: #fff;
}
.hc.hc--print .hc-card {
	box-shadow: none;
	border-radius: 0;
	max-width: 100%;
	padding: 24px 20px;
}
.hc.hc--print .hc-actions,
.hc.hc--print .hc-owner-panel {
	display: none;
}
.hc.hc--print #hc-qr-target,
.hc.hc--print #hc-qr-target img,
.hc.hc--print #hc-qr-target canvas {
	max-width: 2in !important;
}

@media print {
	body { background: #fff !important; }
	.hc-actions, .hc-owner-panel { display: none !important; }
	.hc.hc { padding: 0 !important; }
	.hc .hc-card {
		box-shadow: none !important;
		border: none !important;
		page-break-inside: avoid;
	}
}
