/* RootsPersona tree chart viewer: [rootspersona_chart]. */
.rp-treechart {
	--rp-treechart-bg: #fbf8f2;
	--rp-treechart-line: rgba(0, 0, 0, 0.15);
	--rp-treechart-hit: #e8a400;
	--rp-treechart-current: #c0392b;
	position: relative;
	margin: 1em 0;
	color: inherit;
}
.rp-treechart__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}
.rp-treechart__search {
	flex: 1 1 220px;
	min-width: 0;
	padding: 8px 12px;
	border: 1px solid var(--rp-treechart-line);
	border-radius: 6px;
	font: inherit;
	background: #fff;
	color: #222;
}
.rp-treechart__found {
	min-width: 3.5em;
	font-size: 0.9em;
	opacity: 0.8;
	text-align: center;
}
.rp-treechart__sep {
	width: 6px;
}
.rp-treechart__btn {
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--rp-treechart-line);
	border-radius: 6px;
	background: #fff;
	color: #222;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.rp-treechart__btn:hover,
.rp-treechart__btn:focus-visible {
	border-color: currentColor;
}
.rp-treechart__view {
	position: relative;
	height: var(--rp-treechart-height, 80vh);
	min-height: 320px;
	overflow: hidden;
	border: 1px solid var(--rp-treechart-line);
	border-radius: 8px;
	background: var(--rp-treechart-bg);
	cursor: grab;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}
.rp-treechart__view:focus-visible {
	outline: 2px solid var(--rp-treechart-hit);
	outline-offset: 2px;
}
.rp-treechart__view.is-dragging {
	cursor: grabbing;
}
.rp-treechart__view > svg {
	display: block;
	width: 100%;
	height: 100%;
}
.rp-treechart__loading {
	margin: 0;
	padding: 2em;
	text-align: center;
	color: #666;
}
.rp-treechart__hint {
	margin: 6px 0 0;
	font-size: 0.85em;
	opacity: 0.7;
}
.rp-treechart a.rp-treechart-person,
.rp-treechart a.rp-treechart-person * {
	cursor: pointer;
	text-decoration: none !important;
}
.rp-treechart a.rp-treechart-person:hover rect {
	stroke: #333 !important;
	stroke-width: 2 !important;
}
.rp-treechart .rp-treechart-hit rect {
	stroke: var(--rp-treechart-hit) !important;
	stroke-width: 4 !important;
}
.rp-treechart .rp-treechart-current rect {
	stroke: var(--rp-treechart-current) !important;
	stroke-width: 6 !important;
}
.rp-treechart:fullscreen,
.rp-treechart.is-full {
	margin: 0;
	padding: 12px;
	background: var(--rp-treechart-bg);
}
.rp-treechart.is-full {
	position: fixed;
	inset: 0;
	z-index: 99999;
}
.rp-treechart:fullscreen .rp-treechart__view,
.rp-treechart.is-full .rp-treechart__view {
	height: calc(100vh - 90px);
}
:root[data-theme="dark"] .rp-treechart {
	--rp-treechart-line: rgba(255, 255, 255, 0.2);
}
:root[data-theme="dark"] .rp-treechart__search,
:root[data-theme="dark"] .rp-treechart__btn {
	background: #2a231c;
	color: #efe6da;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .rp-treechart {
		--rp-treechart-line: rgba(255, 255, 255, 0.2);
	}
}
