/* Relationship calculator on persona pages and [rootspersona_kinship]. Colours follow the template palette when set. */
.rp-kin {
	margin: 24px 0 8px;
	padding: 14px 16px;
	border: 1px solid var(--rp-line, #d9cfc1);
	border-radius: var(--rp-radius-sm, 6px);
	background: var(--rp-surface, #f4efe7);
	clear: both;
}
.rp-kin__title {
	margin: 0 0 8px;
	font-size: 1.15em;
}
.rp-kin__ask,
.rp-kin__hint {
	margin: 6px 0;
}
.rp-kin__hint {
	font-size: .85em;
	opacity: .8;
}
.rp-kin__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}
.rp-kin__picker {
	position: relative;
	flex: 1 1 240px;
}
.rp-kin__label {
	display: block;
	font-size: .9em;
	margin-bottom: 4px;
}
.rp-kin__input {
	width: 100%;
	box-sizing: border-box;
	padding: 8px;
	border: 1px solid var(--rp-line, #d9cfc1);
	border-radius: 4px;
	background: #fff;
	font: inherit;
}
.rp-kin__list {
	position: absolute;
	z-index: 20;
	left: 0;
	right: 0;
	margin: 2px 0 0;
	padding: 4px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--rp-line, #d9cfc1);
	border-radius: 4px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
	max-height: 280px;
	overflow-y: auto;
}
.rp-kin__list li {
	margin: 0;
}
.rp-kin__option {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 6px 10px;
	border: 0;
	background: none;
	text-align: left;
	font: inherit;
	color: inherit;
	cursor: pointer;
}
.rp-kin__option:hover,
.rp-kin__option:focus {
	background: var(--rp-surface, #f4efe7);
}
.rp-kin__opt-years {
	opacity: .7;
	white-space: nowrap;
}
.rp-kin__empty {
	padding: 6px 10px;
	opacity: .7;
}
.rp-kin__btn {
	padding: 8px 16px;
	border: 0;
	border-radius: 4px;
	background: var(--rp-accent, #7a4b25);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.rp-kin__link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--rp-accent, #7a4b25);
	text-decoration: underline;
	font: inherit;
	cursor: pointer;
}
.rp-kin__answer {
	margin: 8px 0;
	font-size: 1.05em;
}
.rp-kin__term {
	color: var(--rp-accent, #7a4b25);
	font-size: 1.15em;
}
.rp-kin__other {
	margin-top: 14px;
	padding-top: 10px;
	border-top: 1px solid var(--rp-line, #d9cfc1);
}
.rp-kin__chain-box summary {
	cursor: pointer;
	font-size: .9em;
}
.rp-kin__chain {
	margin: 8px 0 0;
	padding: 0 0 0 .4em;
	list-style: none;
}
.rp-kin__chain li {
	margin: 0;
}
/* The arrow and "her father" on a line of their own, between two names. */
.rp-kin__step {
	display: block;
	margin: 2px 0 2px .3em;
	padding-left: .8em;
	border-left: 2px solid var(--rp-line, #d9cfc1);
	color: var(--rp-accent, #7a4b25);
	font-size: .85em;
}
.rp-kin__none {
	opacity: .8;
}
