/* Help overlay — profile-peek / invite-overlay DNA */

.uc-help-overlay {
	position: fixed;
	inset: 0;
	z-index: 12050;
	display: none;
	align-items: center;
	justify-content: center;
	padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
	box-sizing: border-box;
}

.uc-help-overlay.is-open {
	display: flex;
}

.uc-help-overlay[hidden] {
	display: none !important;
}

.uc-help-overlay.is-open[hidden] {
	display: flex !important;
}

.uc-help-overlay__backdrop {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: color-mix(in srgb, var(--uc-chrome, #0a0909) 72%, transparent);
	cursor: pointer;
}

.uc-help-overlay__panel {
	position: relative;
	z-index: 1;
	width: min(520px, 100%);
	max-height: min(88dvh, 760px);
	overflow: auto;
	margin: auto;
	padding: 18px 18px 14px;
	background: var(--uc-dna-card-surface, var(--uc-surface));
	border: 2px solid var(--uc-dna-border-strong, var(--uc-border-strong));
	border-radius: var(--uc-dna-card-radius, 16px);
	box-shadow: 0 24px 48px var(--uc-shadow-ink-strong);
	overscroll-behavior: contain;
	color: var(--uc-text);
}

.uc-help-overlay__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 2px solid var(--uc-border-strong);
	border-radius: 999px;
	background: var(--uc-surface-raised, var(--uc-surface-muted));
	color: var(--uc-text);
	font-size: 22px;
	line-height: 1;
	font-weight: 900;
	cursor: pointer;
}

.uc-help-overlay__kicker {
	display: inline-block;
	margin-bottom: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--uc-primary-darker);
	color: var(--uc-text-on-primary);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.uc-help-overlay__title {
	margin: 0 36px 8px 0;
	font-size: 1.35rem;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: var(--uc-text);
}

.uc-help-overlay__blurb {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--uc-text-secondary);
}

.uc-help-overlay__bullets,
.uc-help-overlay__rules-list {
	margin: 0;
	padding-left: 1.1rem;
	font-size: 12px;
	line-height: 1.45;
	color: var(--uc-text);
}

.uc-help-overlay__bullets li + li,
.uc-help-overlay__rules-list li + li {
	margin-top: 6px;
}

.uc-help-overlay__rules {
	margin-top: 14px;
	padding: 10px 12px;
	border: 1px dashed var(--uc-gray-300);
	background: var(--uc-surface-raised);
}

.uc-help-overlay__rules-label {
	margin-bottom: 6px;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--uc-primary-ink);
}

.uc-help-overlay__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.uc-help-overlay__btn {
	flex: 1 1 140px;
	font-size: 11px;
}

.uc-help-overlay__topics {
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--uc-border);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.uc-help-overlay__topic {
	flex: 0 0 auto;
	margin: 0;
	padding: 6px 10px;
	border: 1px solid var(--uc-gray-300);
	border-radius: 999px;
	background: var(--uc-surface);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--uc-text-secondary);
	cursor: pointer;
	white-space: nowrap;
}

.uc-help-overlay__topic.is-active {
	border-color: var(--uc-primary-darker);
	background: var(--uc-primary-darker);
	color: var(--uc-text-on-primary);
}

.uc-help-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	margin: 0;
	border: 1px solid var(--uc-gray-300);
	border-radius: 999px;
	background: var(--uc-surface);
	color: var(--uc-text-muted);
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
}

.uc-help-chip:hover,
.uc-help-chip:focus-visible {
	border-color: var(--uc-primary-darker);
	color: var(--uc-primary-ink);
	outline: none;
}

.uc-neighborhood-confidence-intro {
	margin: 0 0 10px;
	font-size: 11px;
	line-height: 1.45;
	color: var(--uc-text-secondary);
}

.uc-neighborhood-confidence-meter {
	display: grid;
	gap: 6px;
	margin-bottom: 10px;
}

.uc-neighborhood-confidence-meter__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-bottom: 4px;
	border-bottom: 1px dotted var(--uc-gray-300);
}

.uc-neighborhood-confidence-meter__label {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--uc-text-muted);
}

.uc-neighborhood-confidence-meter__value {
	font-weight: 900;
	color: var(--uc-text);
}

.uc-neighborhood-confidence-note {
	font-size: 10px;
	line-height: 1.4;
	color: var(--uc-text-muted);
}

@media (min-width: 720px) {
	.uc-help-overlay {
		align-items: center;
		padding: 24px;
	}

	.uc-help-overlay__panel {
		border-radius: 16px;
		border-bottom: 2px solid var(--uc-border-strong);
		box-shadow: 8px 8px 0 var(--uc-shadow-ink-soft);
	}
}

body.uc-help-overlay-open {
	overflow: hidden;
}
