/**
 * Orangutans: tree nodes, the family trees, the profile (Steckbrief,
 * Verwandtschaft, Chronik, Fotoalbum), the portrait grid, the family list
 * of the menu, and the lightbox. SPECS.md §6–7; mockups «Suaq 02 Orang-Utans»
 * and «Suaq 02b Orang-Utan Profil».
 *
 * Desktop from 1024 px; below that the trees are indented lists.
 */

:root {
	--suaq-tree-line: var(--wp--custom--tree-line, #b9b096);
	--suaq-text-soft: #3b4035;
	--suaq-node-shadow: 0 8px 14px -8px rgb(35 39 31 / 50%);
}

/* Print (SuaqPrint) ------------------------------------------------------------
   A white-bordered photo, tilted, with tape; the caption sits in the margin. */

.suaq-print {
	--print-pad: 10px;
	--tape-w: 92px;
	--tape-h: 26px;
	--rot: 0deg;
	position: relative;
	margin: 0;
	padding: var(--print-pad);
	background: var(--wp--preset--color--paper);
	box-shadow: var(--suaq-print-shadow);
	transform: rotate(var(--rot));
}

.suaq-print:has(> figcaption) {
	padding-bottom: 0;
}

.suaq-print--s {
	--print-pad: 6px;
	--tape-w: 54px;
	--tape-h: 16px;
}

.suaq-print--l {
	--print-pad: 12px;
	--tape-w: 108px;
	--tape-h: 30px;
}

.suaq-print__photo {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
}

.suaq-print__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.suaq-print__photo:not([style*="aspect-ratio"]) img {
	height: auto;
}

.suaq-print__caption {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: calc(var(--print-pad) * 1.1) 2px calc(var(--print-pad) * 1.3);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--display);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.suaq-print--s .suaq-print__caption {
	font-size: 14px;
}

.suaq-print--l .suaq-print__caption {
	font-size: 20px;
}

.suaq-print__meta {
	flex: none;
	color: var(--wp--preset--color--muted);
}

.suaq-print::before,
.suaq-print::after {
	position: absolute;
	z-index: 2;
	height: var(--tape-h);
	background: var(--suaq-tape);
	clip-path: var(--suaq-tape-clip);
	pointer-events: none;
}

.suaq-print.is-tape-top::before {
	content: "";
	top: calc(var(--tape-h) / -2);
	left: 50%;
	width: var(--tape-w);
	margin-left: calc(var(--tape-w) / -2);
	transform: rotate(3deg);
}

.suaq-print:is(.is-tape-tl, .is-tape-tl-tr, .is-tape-tl-br)::before {
	content: "";
	top: calc(var(--tape-h) * -0.25);
	left: calc(var(--tape-w) * -0.28);
	width: calc(var(--tape-w) * 0.9);
	transform: rotate(-40deg);
}

.suaq-print.is-tape-tr::before,
.suaq-print.is-tape-tl-tr::after {
	content: "";
	top: calc(var(--tape-h) * -0.25);
	right: calc(var(--tape-w) * -0.28);
	width: calc(var(--tape-w) * 0.9);
	transform: rotate(40deg);
}

.suaq-print.is-tape-br::before,
.suaq-print.is-tape-tl-br::after {
	content: "";
	bottom: calc(var(--tape-h) * -0.25);
	right: calc(var(--tape-w) * -0.28);
	width: calc(var(--tape-w) * 0.9);
	transform: rotate(-40deg);
}

.suaq-print.is-tape-bl::before {
	content: "";
	bottom: calc(var(--tape-h) * -0.25);
	left: calc(var(--tape-w) * -0.28);
	width: calc(var(--tape-w) * 0.9);
	transform: rotate(40deg);
}

/* The enlarge button inside a linked print (base.css draws .suaq-zoom). */
.suaq-print .suaq-zoom-wrap .suaq-zoom {
	right: 8px;
	bottom: 8px;
}

.suaq-zoom-wrap:hover .suaq-zoom,
.suaq-zoom-wrap:focus-visible .suaq-zoom {
	background: var(--wp--preset--color--accent);
}

@media (prefers-reduced-motion: no-preference) {
	a.suaq-print__photo img {
		transition: transform 0.3s ease;
	}
}

/* Tree node (SuaqNode) ----------------------------------------------------------
   96 × 140: portrait in a white ring with an ink outline, name, year, flag. */

.suaq-node {
	--pic: 72px;
	--pic-pad: 4px;
	--ring: var(--wp--preset--color--contrast);
	--ring-w: 2px;
	--rad: 50%;
	--rot: 0deg;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	width: 96px;
	height: 140px;
	box-sizing: border-box;
	padding-top: 4px;
	color: var(--wp--preset--color--contrast);
	text-align: center;
	text-decoration: none;
}

:where(.wp-site-blocks) a.suaq-node {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.suaq-node.is-male {
	--rad: 3px;
}

/* Unknown sex is drawn as a circle, like a female (see orangutan-view.php). */
.suaq-node.is-sex-unknown {
	--rad: 50%;
}

.suaq-node.is-current {
	--ring: var(--wp--preset--color--accent);
	--ring-w: 4px;
}

.suaq-node__pic {
	position: relative;
	display: block;
	flex: none;
	width: var(--pic);
	height: var(--pic);
	padding: var(--pic-pad);
	box-sizing: border-box;
	background: var(--wp--preset--color--paper);
	border-radius: var(--rad);
	box-shadow: 0 0 0 var(--ring-w) var(--ring), var(--suaq-node-shadow);
	transform: rotate(var(--rot));
}

.suaq-node__crop {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: var(--rad);
	background: var(--wp--preset--color--surface);
}

.suaq-node__crop img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.suaq-node.is-dead .suaq-node__pic::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: calc(var(--pic) * 1.39);
	height: 2px;
	margin: -1px 0 0 calc(var(--pic) * -0.695);
	background: var(--wp--preset--color--contrast);
	transform: rotate(-45deg);
}

.suaq-node__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
}

.suaq-node__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 21px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color 0.15s;
}

.suaq-node__year {
	margin-top: -2px;
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
}

.suaq-node__flag {
	position: relative;
	z-index: 1;
	padding: 4px 8px 3px;
	background: var(--wp--preset--color--kraft);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--display);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
}

.suaq-node__flag.is-tone-rust {
	background: var(--wp--preset--color--accent);
	color: #fff;
}

.suaq-node__flag.is-tone-green {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

.suaq-node__flag.is-tone-ink {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.suaq-node:hover .suaq-node__name,
.suaq-node:focus-visible .suaq-node__name {
	color: var(--wp--preset--color--accent);
}

/* Rows of unconnected nodes (groups of males). */
.suaq-node-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.suaq-node-row > li {
	margin: 0;
}

/* Family tree: all families on generation bands (≥ 1024) ------------------------ */

.suaq-ftree {
	--leaf-pad: 2px;
}

.suaq-ftree ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.suaq-ftree li {
	margin: 0;
}

.suaq-ftree__tab {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	padding: 2px 18px 0;
	color: #fff;
	font-family: var(--wp--preset--font-family--display);
	font-size: 21px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	clip-path: polygon(0 100%, 0 22%, 10px 0, calc(100% - 10px) 0, 100% 22%, 100% 100%);
}

:where(.wp-site-blocks) a.suaq-ftree__tab {
	color: #fff;
	text-decoration: none;
}

:where(.wp-site-blocks) a.suaq-ftree__tab.has-kraft-background-color {
	color: var(--wp--preset--color--contrast);
}

.suaq-ftree__count {
	font-weight: 500;
	opacity: 0.85;
}

.suaq-ftree__scroll:focus-visible {
	outline-offset: 6px;
}

.suaq-ftree__note {
	margin: 0;
	text-align: center;
	color: var(--wp--preset--color--muted);
	font-size: 15px;
}

@media (min-width: 1024px) {
	.suaq-ftree__row + .suaq-ftree__row {
		margin-top: 56px;
	}

	.suaq-ftree__scroll {
		overflow-x: auto;
		overscroll-behavior-x: contain;
	}

	.suaq-ftree--all .suaq-ftree__canvas {
		position: relative;
		display: flex;
		width: max-content;
		min-width: 100%;
		box-sizing: border-box;
		padding: 0 0 28px 96px;
	}

	.suaq-ftree__bands {
		position: absolute;
		inset: 48px 0 0;
		display: flex;
		flex-direction: column;
		pointer-events: none;
	}

	.suaq-ftree__band {
		display: flex;
		flex: none;
		flex-direction: column;
		gap: 2px;
		height: 196px;
		box-sizing: border-box;
		padding-top: 14px;
		border-top: 1px dashed var(--suaq-tree-line);
	}

	.suaq-ftree__band:nth-child(2n) {
		background: linear-gradient(rgb(235 229 212 / 40%), rgb(235 229 212 / 40%)) top / 100% 172px no-repeat;
	}

	.suaq-ftree__band:last-child {
		flex: 1;
		height: auto;
	}

	.suaq-ftree__band b {
		color: var(--wp--preset--color--contrast);
		font-family: var(--wp--preset--font-family--display);
		font-size: 44px;
		font-weight: 700;
		line-height: 0.9;
	}

	.suaq-ftree__band span {
		color: var(--wp--preset--color--muted);
		font-family: var(--wp--preset--font-family--display);
		font-size: 13px;
		font-weight: 600;
		line-height: 1;
		letter-spacing: 0.12em;
		text-transform: uppercase;
	}

	.suaq-ftree__families {
		position: relative;
		z-index: 1;
		display: flex;
		flex: 1;
		justify-content: space-around;
		align-items: flex-start;
	}

	.suaq-ftree__family {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding-inline: 8px;
	}

	.suaq-ftree--all .suaq-ftree__tab {
		height: 40px;
		margin-bottom: 24px;
	}

	.suaq-ftree__roots {
		display: flex;
		align-items: flex-start;
		gap: 24px;
	}

	.suaq-ftree__item {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	/* Stem from the mother, crossbar over the siblings, a drop to each. */
	.suaq-ftree__kids {
		position: relative;
		display: flex;
		justify-content: center;
		padding-top: 28px !important;
	}

	.suaq-ftree__kids::before,
	.suaq-ftree__kids > li::before,
	.suaq-ftree__kids > li::after {
		content: "";
		position: absolute;
		top: 0;
		background: var(--wp--preset--color--contrast);
	}

	.suaq-ftree__kids::before {
		left: 50%;
		width: 2px;
		height: 28px;
		margin-left: -1px;
	}

	.suaq-ftree__kids > li {
		position: relative;
		padding: 28px var(--leaf-pad) 0;
	}

	.suaq-ftree__kids > li::before {
		left: 0;
		right: 0;
		height: 2px;
	}

	.suaq-ftree__kids > li:first-child::before {
		left: calc(50% - 1px);
	}

	.suaq-ftree__kids > li:last-child::before {
		right: calc(50% - 1px);
	}

	.suaq-ftree__kids > li:only-child::before {
		display: none;
	}

	.suaq-ftree__kids > li::after {
		left: 50%;
		width: 2px;
		height: 28px;
		margin-left: -1px;
	}

	/* Groups of males below the tree. */
	.suaq-males {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 64px;
		margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
	}
}

/* Groups of males (all sizes). */
.suaq-males__group {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.suaq-males__tab {
	display: flex;
	margin: 0;
	border-bottom: 2px solid var(--wp--preset--color--contrast);
	font-size: inherit;
	line-height: 1;
}

.suaq-males__tab .suaq-tab {
	padding: 10px 18px 7px;
	font-family: var(--wp--preset--font-family--display);
	font-size: 21px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	clip-path: polygon(0 100%, 0 22%, 10px 0, calc(100% - 10px) 0, 100% 22%, 100% 100%);
}

.suaq-males__text {
	max-width: 30em;
	color: var(--suaq-text-soft);
	font-size: 17px;
	line-height: 1.55;
}

.suaq-males__text > * {
	margin: 0;
}

.suaq-males__text > * + * {
	margin-top: 0.75em;
}

/* Family tree: below 1024 the same lists, indented, with a line on the left ------- */

@media (max-width: 1023px) {
	.suaq-ftree__bands {
		display: none;
	}

	.suaq-ftree__row + .suaq-ftree__row,
	.suaq-ftree__family + .suaq-ftree__family {
		margin-top: 36px;
	}

	.suaq-ftree__family {
		display: flex;
		flex-direction: column;
	}

	.suaq-ftree--all .suaq-ftree__tab {
		align-self: flex-start;
		padding: 10px 16px 7px;
		font-size: 22px;
		letter-spacing: 0;
		clip-path: polygon(0 100%, 0 22%, 8px 0, calc(100% - 8px) 0, 100% 22%, 100% 100%);
	}

	.suaq-ftree--all .suaq-ftree__count {
		display: none;
	}

	.suaq-ftree--all .suaq-ftree__roots {
		padding-top: 16px;
		border-top: 2px solid var(--wp--preset--color--contrast);
	}

	.suaq-ftree__roots > li + li {
		margin-top: 16px;
	}

	.suaq-ftree__roots .suaq-node {
		--pic: 64px;
		--pic-pad: 3px;
		--rot: 0deg !important;
		flex-direction: row;
		align-items: center;
		gap: 14px;
		width: auto;
		height: auto;
		min-height: 72px;
		padding: 0;
		text-align: start;
	}

	.suaq-ftree__roots .suaq-node__pic {
		box-shadow: 0 0 0 var(--ring-w) var(--ring);
	}

	.suaq-ftree__roots .suaq-node__text {
		align-items: flex-start;
		gap: 4px;
	}

	.suaq-ftree__roots .suaq-node__name {
		font-size: 26px;
		letter-spacing: 0;
	}

	.suaq-ftree__roots .suaq-node__year {
		margin: 0;
	}

	.suaq-ftree__roots .suaq-node__flag {
		padding: 3px 7px 2px;
		font-size: 11px;
	}

	.suaq-ftree__kids {
		margin: 6px 0 0 31px !important;
		border-left: 2px solid var(--wp--preset--color--contrast);
	}

	.suaq-ftree__kids > li {
		position: relative;
		padding: 12px 0 0 20px;
	}

	.suaq-ftree__kids > li::before {
		content: "";
		position: absolute;
		left: 0;
		top: 38px;
		width: 14px;
		height: 2px;
		background: var(--wp--preset--color--contrast);
	}

	.suaq-ftree__kids .suaq-node {
		--pic: 52px;
		gap: 12px;
		min-height: 52px;
	}

	.suaq-ftree__kids .suaq-node__name {
		font-size: 22px;
	}

	.suaq-ftree__kids .suaq-ftree__kids {
		margin-left: 25px !important;
	}

	.suaq-ftree__kids .suaq-ftree__kids > li {
		padding: 10px 0 0 18px;
	}

	.suaq-ftree__kids .suaq-ftree__kids > li::before {
		top: 32px;
		width: 12px;
	}

	.suaq-ftree__kids .suaq-ftree__kids .suaq-node {
		--pic: 44px;
		min-height: 44px;
	}

	.suaq-ftree__kids .suaq-ftree__kids .suaq-node__name {
		font-size: 20px;
	}

	.suaq-ftree__kids .suaq-ftree__kids .suaq-ftree__kids {
		margin-left: 21px !important;
	}

	.suaq-ftree__kids .suaq-ftree__kids .suaq-ftree__kids > li::before {
		top: 32px;
	}

	.suaq-males {
		display: flex;
		flex-direction: column;
		gap: 36px;
		margin-top: 44px;
	}

	.suaq-males__group {
		gap: 16px;
	}

	.suaq-males__tab .suaq-tab {
		padding: 10px 16px 7px;
		font-size: 22px;
		letter-spacing: 0;
		clip-path: polygon(0 100%, 0 22%, 8px 0, calc(100% - 8px) 0, 100% 22%, 100% 100%);
	}

	.suaq-males__text {
		font-size: 16px;
	}

	.suaq-males .suaq-node-row {
		display: grid;
		grid-template-columns: repeat(3, 96px);
		justify-content: space-between;
		gap: 12px 0;
	}
}

/* One family (family page): larger nodes 148 / 112 / 84 -------------------------- */

.suaq-ftree--one {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.suaq-ftree__rootflag {
	align-self: center;
	margin-bottom: 12px;
	padding: 6px 18px 5px 12px;
	background: var(--wp--preset--color--kraft);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--display);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
	clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
}

.suaq-ftree--one .suaq-node {
	--ring-w: 0px;
	--pic: 148px;
	--pic-pad: 6px;
	gap: 10px;
	width: 150px;
	height: auto;
	padding: 0;
}

.suaq-ftree--one .suaq-node__pic {
	box-shadow: 0 0 0 var(--ring-w) var(--ring), 0 0 0 1px rgb(35 39 31 / 8%), 0 12px 20px -10px rgb(35 39 31 / 50%);
}

.suaq-ftree--one .suaq-node.is-current {
	--ring-w: 4px;
}

.suaq-ftree--one .suaq-node__text {
	gap: 8px;
}

.suaq-ftree--one .suaq-node__name {
	font-size: 32px;
	letter-spacing: 0;
}

.suaq-ftree--one .suaq-node__year {
	margin: 0;
	font-size: 16px;
	line-height: 1.25;
	white-space: normal;
}

.suaq-ftree--one .suaq-node--g2 {
	--pic: 112px;
	--pic-pad: 5px;
	gap: 8px;
}

.suaq-ftree--one .suaq-node--g2 .suaq-node__name {
	font-size: 26px;
}

.suaq-ftree--one .suaq-node--g2 .suaq-node__year {
	font-size: 15px;
}

.suaq-ftree--one .suaq-node--g3 {
	--pic: 84px;
	--pic-pad: 4px;
	gap: 6px;
	width: 110px;
}

.suaq-ftree--one .suaq-node--g3 .suaq-node__name {
	font-size: 22px;
}

.suaq-ftree--one .suaq-node--g3 .suaq-node__year {
	font-size: 14px;
}

@media (min-width: 1024px) {
	.suaq-ftree--one .suaq-ftree__roots {
		justify-content: center;
		width: max-content;
		min-width: 100%;
		margin-inline: auto;
	}

	.suaq-ftree--one .suaq-ftree__roots > li > .suaq-ftree__kids {
		margin-top: 16px;
		padding-top: 40px !important;
	}

	.suaq-ftree--one .suaq-ftree__roots > li > .suaq-ftree__kids::before {
		height: 40px;
	}

	.suaq-ftree--one .suaq-ftree__roots > li > .suaq-ftree__kids > li {
		padding: 36px 36px 0;
	}

	.suaq-ftree--one .suaq-ftree__roots > li > .suaq-ftree__kids > li::after {
		height: 36px;
	}

	.suaq-ftree--one .suaq-ftree__kids .suaq-ftree__kids {
		margin-top: 14px;
		padding-top: 32px !important;
	}

	.suaq-ftree--one .suaq-ftree__kids .suaq-ftree__kids::before {
		height: 32px;
	}

	.suaq-ftree--one .suaq-ftree__kids .suaq-ftree__kids > li {
		padding: 30px 14px 0;
	}

	.suaq-ftree--one .suaq-ftree__kids .suaq-ftree__kids > li::after {
		height: 30px;
	}
}

@media (max-width: 1023px) {
	.suaq-ftree--one {
		gap: 28px;
	}

	.suaq-ftree--one .suaq-ftree__rootflag {
		align-self: flex-start;
		margin-bottom: 10px;
	}

	.suaq-ftree--one .suaq-node {
		--pic: 68px;
		--pic-pad: 4px;
		gap: 14px;
		width: auto;
		min-height: 72px;
	}

	.suaq-ftree--one .suaq-node__pic {
		box-shadow: 0 0 0 var(--ring-w) var(--ring), 0 0 0 1px rgb(35 39 31 / 8%), 0 8px 14px -8px rgb(35 39 31 / 50%);
	}

	.suaq-ftree--one .suaq-node__text {
		gap: 4px;
	}

	.suaq-ftree--one .suaq-node__name {
		font-size: 26px;
	}

	.suaq-ftree--one .suaq-node__year {
		font-size: 15px;
	}

	.suaq-ftree--one .suaq-node--g2 {
		--pic: 56px;
		--pic-pad: 3px;
		gap: 12px;
		min-height: 56px;
	}

	.suaq-ftree--one .suaq-node--g2 .suaq-node__name {
		font-size: 22px;
	}

	.suaq-ftree--one .suaq-node--g2 .suaq-node__year,
	.suaq-ftree--one .suaq-node--g3 .suaq-node__year {
		font-size: 14px;
	}

	.suaq-ftree--one .suaq-node--g3 {
		--pic: 48px;
		--pic-pad: 3px;
		gap: 12px;
		width: auto;
		min-height: 48px;
	}

	.suaq-ftree--one .suaq-node--g3 .suaq-node__name {
		font-size: 20px;
	}

	.suaq-ftree--one .suaq-ftree__roots > li > .suaq-ftree__kids {
		margin: 4px 0 0 33px !important;
	}

	.suaq-ftree--one .suaq-ftree__roots > li > .suaq-ftree__kids > li {
		padding: 10px 0 0 22px;
	}

	.suaq-ftree--one .suaq-ftree__roots > li > .suaq-ftree__kids > li::before {
		top: 38px;
		width: 16px;
	}

	.suaq-ftree--one .suaq-ftree__kids .suaq-ftree__kids {
		margin: 4px 0 0 27px !important;
	}

	.suaq-ftree--one .suaq-ftree__kids .suaq-ftree__kids > li {
		padding: 8px 0 0 20px;
	}

	.suaq-ftree--one .suaq-ftree__kids .suaq-ftree__kids > li::before {
		top: 32px;
		width: 14px;
	}

	.suaq-ftree--one .suaq-ftree__kids .suaq-ftree__kids .suaq-ftree__kids {
		margin-left: 23px !important;
	}

	.suaq-ftree__note {
		text-align: start;
	}
}

/* Overview page (pattern suaq/page-orangutans) ------------------------------------ */

.suaq-ou-head {
	padding-top: 28px;
	padding-bottom: 56px;
}

.suaq-ou-head > .suaq-breadcrumbs {
	margin-bottom: 0;
}

.suaq-ou-head__cols {
	gap: 80px !important;
	align-items: flex-end !important;
	margin-top: 24px !important;
	margin-bottom: 0;
}

.suaq-ou-head__main {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.suaq-ou-head__main > * {
	margin: 0 !important;
}

.suaq-ou-head__title {
	font-size: clamp(4rem, 2.51rem + 6.1vw, 8rem);
	line-height: 0.86;
}

.suaq-lead {
	max-width: 34em;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

/* Jump chips. */
.suaq-flist ul,
ul.suaq-flist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.suaq-flist li {
	margin: 0;
}

.suaq-flist--chips ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 8px;
}

.suaq-flist--chips .suaq-chip {
	gap: 10px;
	padding: 0 18px;
	font-size: 17px;
	letter-spacing: 0.06em;
	white-space: nowrap;
}

.suaq-flist--chips .suaq-chip span {
	color: var(--wp--preset--color--muted);
	font-weight: 500;
}

.suaq-flist--chips .suaq-chip:hover {
	background: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--contrast);
}

/* Legend: a taped index card on desktop, one line of symbols on mobile. */
.suaq-legend {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.suaq-legend > * {
	margin: 0 !important;
}

.suaq-legend__title {
	padding-bottom: 10px;
	border-bottom: 2px solid var(--wp--preset--color--contrast);
	font-size: 24px !important;
	line-height: 1;
	letter-spacing: 0.04em;
}

.suaq-legend__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 0;
	list-style: none;
	font-size: 17px;
	line-height: 1.3;
}

.suaq-legend__list li {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 30px;
	margin: 0;
}

.suaq-legend__list li::before {
	content: "";
	position: relative;
	flex: none;
	width: 26px;
	height: 26px;
	box-sizing: border-box;
	border-radius: 50%;
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--contrast);
}

.suaq-legend__list li.is-male::before {
	border-radius: 3px;
}

.suaq-legend__list li.is-dead::before {
	background: linear-gradient(-45deg, transparent calc(50% - 1px), var(--wp--preset--color--contrast) calc(50% - 1px), var(--wp--preset--color--contrast) calc(50% + 1px), transparent calc(50% + 1px));
}

.suaq-legend__list li.is-line::before {
	border-radius: 0;
	box-shadow: none;
	background: linear-gradient(var(--wp--preset--color--contrast), var(--wp--preset--color--contrast)) center / 2px 100% no-repeat;
}

.suaq-legend__list li.is-left::before {
	display: none;
}

.suaq-legend__list mark {
	flex: none;
	padding: 3px 6px 2px;
	background: var(--wp--preset--color--kraft) !important;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--display);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.suaq-legend__note {
	color: var(--wp--preset--color--muted);
	font-size: 14px;
	line-height: 1.45;
}

@media (max-width: 1023px) {
	.suaq-ou-head__cols {
		gap: 16px !important;
	}

	.suaq-ou-head__legend {
		order: 1;
	}

	.suaq-ou-head__main {
		display: contents;
	}

	.suaq-ou-head__main .suaq-flist--chips {
		order: 2;
	}

	.suaq-legend.is-style-note {
		padding: 0;
		background: none;
		box-shadow: none;
		transform: none;
	}

	.suaq-legend.is-style-note::before,
	.suaq-legend__title,
	.suaq-legend__note,
	.suaq-legend__list li.is-line,
	.suaq-legend__list li.is-left {
		display: none;
	}

	.suaq-legend__list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px 18px;
		color: var(--suaq-text-soft);
		font-size: 15px;
	}

	.suaq-legend__list li {
		gap: 8px;
		min-height: 0;
	}

	.suaq-legend__list li::before {
		width: 18px;
		height: 18px;
	}

	.suaq-legend__list li.is-male::before {
		border-radius: 2px;
	}
}

@media (max-width: 781px) {
	.suaq-ou-head {
		padding-top: 18px;
		padding-bottom: 32px;
	}

	.suaq-ou-head__cols {
		display: flex !important;
		flex-direction: column;
		align-items: stretch !important;
		margin-top: 16px !important;
	}

	.suaq-ou-head__main,
	.suaq-ou-head__cols {
		gap: 16px !important;
	}

	.suaq-lead {
		font-size: 18px;
	}
}

/* Section heads: H2 left, a label or link right, on a 2 px line. */
.suaq-section-head {
	align-items: baseline !important;
	justify-content: space-between;
	gap: 12px 24px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--wp--preset--color--contrast);
}

.suaq-section-head > * {
	margin: 0 !important;
}

.suaq-section-head .suaq-label,
.suaq-section-head__label {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--display);
	font-size: 17px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.suaq-section-head__link {
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--display);
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-underline-offset: 6px !important;
}

.suaq-ou-families {
	margin-top: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding-block: 56px 64px;
}

.suaq-ou-families > * {
	margin: 0 !important;
}

@media (max-width: 1023px) {
	.suaq-ou-families .suaq-section-head .suaq-label {
		display: none;
	}

	.suaq-ou-families {
		padding-block: 24px 44px;
	}
}

/* Background topics: four links on cardboard. */
.suaq-ou-topics > h2 {
	margin-bottom: 32px;
}

.suaq-ou-topics__list {
	gap: 28px !important;
}

.suaq-topic {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 24px;
	border-top: 2px solid var(--wp--preset--color--contrast);
}

.suaq-topic > * {
	margin: 0 !important;
}

.suaq-topic h3 {
	font-size: 32px;
	line-height: 1;
}

.suaq-topic h3 a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.suaq-topic h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.suaq-topic p {
	color: var(--suaq-text-soft);
	font-size: 17px;
	line-height: 1.5;
}

.suaq-topic:hover,
.suaq-topic:hover h3 a,
.suaq-topic:hover p {
	color: var(--wp--preset--color--accent);
}

@media (min-width: 782px) and (max-width: 1100px) {
	.suaq-ou-topics__list {
		flex-wrap: wrap !important;
	}

	.suaq-ou-topics__list > .suaq-topic {
		flex-basis: calc(50% - 14px) !important;
	}
}

/* Sections drawn by the blocks: full width, content at the wide width ------------ */

.suaq-section {
	box-sizing: border-box;
	margin-block: 0 !important;
	padding: 72px var(--suaq-gutter) 88px;
}

.suaq-section:not(.has-background) {
	padding-top: 80px;
}

.suaq-section__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
	max-width: var(--wp--style--global--wide-size, 76rem);
	margin-inline: auto;
}

.suaq-section-head h2 {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1;
}

.suaq-section .suaq-section-head,
.suaq-portraits__head {
	display: flex;
	flex-wrap: wrap;
}

.suaq-section-head.is-plain {
	padding-bottom: 0;
	border-bottom: 0;
}

.suaq-main > .suaq-section,
.suaq-main > .wp-block-group + * {
	margin-top: 0;
}

@media (max-width: 1023px) {
	.suaq-section {
		padding: 36px var(--suaq-gutter) 44px !important;
	}

	.suaq-section__inner {
		gap: 22px;
	}

	.suaq-section .suaq-section-head {
		padding-bottom: 0;
		border-bottom: 0;
	}

	.suaq-section .suaq-section-head h2 {
		font-size: 40px;
	}

	.suaq-section .suaq-section-head__label,
	.suaq-kinship .suaq-section-head__link {
		display: none;
	}
}

/* Profile header --------------------------------------------------------------- */

.suaq-profile-head {
	padding-top: 28px;
	padding-bottom: 88px;
}

.suaq-profile-head__cols {
	gap: 80px !important;
	align-items: flex-start !important;
	margin-top: 48px !important;
	margin-bottom: 0 !important;
}

.suaq-profile-head__print {
	padding: 16px 8px 0;
}

.suaq-profile-head__main {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.suaq-profile-head__main > * {
	margin: 0 !important;
}

.suaq-profile-head__markers {
	gap: 10px;
}

.suaq-profile-head__markers:empty,
.suaq-profile-head__markers:not(:has(p)) {
	display: none;
}

.suaq-marker--family {
	transform: rotate(0.6deg) !important;
}

.suaq-profile-title {
	font-size: clamp(6rem, 4.33rem + 6.857vw, 10.5rem);
	line-height: 0.8;
}

.suaq-profile-head .suaq-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.55;
}

.suaq-profile-head .suaq-lead p {
	margin: 0;
}

.suaq-profile-text > :first-child {
	margin-top: 0;
}

@media (max-width: 781px) {
	.suaq-profile-head {
		padding-top: 18px;
		padding-bottom: 44px;
	}

	.suaq-profile-head__cols {
		gap: 22px !important;
		margin-top: 28px !important;
	}

	.suaq-profile-head__print {
		padding: 8px 10px 0;
	}

	.suaq-profile-head__main {
		gap: 22px;
	}

	.suaq-profile-head__markers {
		margin-top: 8px !important;
	}

	.suaq-marker--family {
		display: none !important;
	}

	.suaq-profile-head .suaq-lead {
		font-size: 18px;
		line-height: 1.6;
	}
}

/* Steckbrief ------------------------------------------------------------------------ */

.suaq-facts {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	margin: 0;
	border-top: 2px solid var(--wp--preset--color--contrast);
	font-size: 19px;
	line-height: 1.45;
}

.suaq-facts__row {
	display: contents;
}

.suaq-facts dt,
.suaq-facts dd {
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.suaq-facts dt {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--display);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.suaq-facts dd {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 16px;
}

.suaq-facts__note {
	color: var(--wp--preset--color--muted);
	font-size: 16px;
}

@media (max-width: 781px) {
	.suaq-facts {
		display: flex;
		flex-direction: column;
		font-size: 17px;
	}

	.suaq-facts__row {
		display: flex;
		flex-direction: column;
		gap: 4px;
		padding: 12px 0;
		border-bottom: 1px solid var(--wp--preset--color--border);
	}

	.suaq-facts dt,
	.suaq-facts dd {
		padding: 0;
		border: 0;
	}

	.suaq-facts dt {
		font-size: 14px;
		line-height: 1.2;
	}

	.suaq-facts dd {
		gap: 2px 14px;
	}

	.suaq-facts dd a {
		display: inline-flex;
		align-items: center;
		min-height: 32px;
	}

	.suaq-facts__note {
		font-size: 15px;
	}
}

/* Verwandtschaft ----------------------------------------------------------------------- */

.suaq-kinship__lane {
	align-self: flex-start;
	padding: 7px 20px 6px 12px;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--display);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
	clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%);
}

.suaq-kinship__desk {
	position: relative;
	padding-left: 180px;
}

.suaq-kinship__desk.has-note {
	padding-right: 280px;
}

.suaq-kinship__desk > .suaq-kinship__lane {
	position: absolute;
	left: 0;
}

.suaq-kinship__sep {
	position: absolute;
	left: 180px;
	right: 0;
	border-top: 1px dashed var(--suaq-tree-line);
}

.has-note > .suaq-kinship__sep {
	right: 280px;
}

.suaq-kinship__plot {
	position: relative;
	height: 100%;
	margin-inline: auto;
}

.suaq-kinship__node {
	position: absolute;
}

.suaq-kinship__line {
	position: absolute;
	background: var(--wp--preset--color--contrast);
}

.suaq-kinship__line.is-dashed {
	background: none;
	border-left: 2px dashed var(--wp--preset--color--contrast);
}

.suaq-kinship__line.is-dashed[style*="height:0"] {
	border-left: 0;
	border-top: 2px dashed var(--wp--preset--color--contrast);
}

.suaq-kinship__note {
	position: absolute;
	right: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 250px;
	box-sizing: border-box;
	padding: 28px 24px 22px;
	background: var(--wp--preset--color--paper);
	box-shadow: 0 0 0 1px rgb(35 39 31 / 8%), 0 16px 26px -14px rgb(35 39 31 / 35%);
	transform: rotate(1.4deg);
}

.suaq-kinship__note::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 50%;
	width: 84px;
	height: 24px;
	margin-left: -42px;
	background: var(--suaq-tape);
	clip-path: var(--suaq-tape-clip);
	transform: rotate(-3deg);
}

.suaq-kinship__note-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.suaq-kinship__note p,
.suaq-kinship__mnote p {
	margin: 0;
	color: var(--suaq-text-soft);
	font-size: 16px;
	line-height: 1.5;
}

.suaq-kinship__key {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--wp--preset--color--muted);
	font-size: 14px;
}

.suaq-kinship__key span {
	width: 28px;
	border-top: 2px dashed var(--wp--preset--color--contrast);
}

.suaq-kinship__mobile {
	display: none;
}

@media (max-width: 1023px) {
	.suaq-kinship__desk {
		display: none;
	}

	.suaq-kinship__mobile {
		display: flex;
		flex-direction: column;
		gap: 22px;
	}

	.suaq-kinship__row {
		display: flex;
		flex-direction: column;
		gap: 14px;
		padding-top: 14px;
		border-top: 1px dashed var(--suaq-tree-line);
	}

	.suaq-kinship__row .suaq-kinship__lane {
		padding: 6px 16px 5px 10px;
		font-size: 13px;
		clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
	}

	.suaq-kinship__row ul {
		display: grid;
		grid-template-columns: repeat(3, 96px);
		justify-content: space-between;
		gap: 10px 0;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.suaq-kinship__row li {
		margin: 0;
	}

	.suaq-kinship__mnote p {
		font-size: 15px;
	}
}

/* Chronik ----------------------------------------------------------------------------- */

.suaq-timeline__list {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 40px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.suaq-timeline__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding-top: 30px;
	border-top: 2px solid var(--wp--preset--color--contrast);
}

.suaq-timeline__item::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 0;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--wp--preset--color--contrast);
	box-shadow: 0 0 0 3px var(--wp--preset--color--base);
}

.suaq-timeline__item.is-birth::before {
	background: var(--wp--preset--color--accent);
}

.suaq-timeline__year {
	font-family: var(--wp--preset--font-family--display);
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
}

.suaq-timeline__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.suaq-timeline__text {
	color: var(--suaq-text-soft);
	font-size: 16px;
	line-height: 1.5;
}

@media (max-width: 1199px) {
	.suaq-timeline__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 781px) {
	.suaq-timeline__list {
		display: block;
		margin-left: 6px;
		border-left: 2px solid var(--wp--preset--color--contrast);
	}

	.suaq-timeline__item {
		display: grid;
		grid-template-columns: auto 1fr;
		align-items: baseline;
		gap: 6px 12px;
		padding: 0 0 26px 24px;
		border-top: 0;
	}

	.suaq-timeline__item::before {
		top: 6px;
		left: -8px;
	}

	.suaq-timeline__year {
		font-size: 30px;
	}

	.suaq-timeline__title {
		font-size: 17px;
	}

	.suaq-timeline__text {
		grid-column: 1 / -1;
	}
}

/* Fotoalbum: prints in masonry, 4 / 3 / 2 columns ------------------------------------ */

.suaq-album {
	columns: 4;
	column-gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.suaq-album__item {
	break-inside: avoid;
	margin: 0;
	padding: 16px 4px 28px;
}

.suaq-album.is-limited:not(:target) .is-extra {
	display: none;
}

/* A limited album (the profile's four) sits in one row. */
.suaq-album.is-limited:not(:target) {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: start;
	gap: 36px;
	columns: auto;
}

.suaq-album.is-limited:not(:target) .suaq-album__item {
	padding: 12px 4px 0;
}

@media (max-width: 1199px) {
	.suaq-album {
		columns: 3;
	}

	.suaq-album.is-limited:not(:target) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.suaq-album {
		columns: 2;
		column-gap: 16px;
	}

	.suaq-album.is-limited:not(:target) {
		gap: 16px;
	}

	.suaq-album__item {
		padding: 10px 2px 18px;
	}

	.suaq-album .suaq-print__caption {
		font-size: 12px;
	}
}

/* Porträt-Raster: 6 columns, prints S 4:5 with name and year ------------------------------ */

.suaq-portraits {
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.suaq-portraits__group {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.suaq-portraits__head {
	align-items: flex-end;
	justify-content: space-between;
	border-bottom: 2px solid var(--wp--preset--color--contrast);
}

.suaq-portraits__tab {
	display: flex;
	margin: 0;
	font-size: inherit;
	line-height: 1;
}

.suaq-portraits__tab .suaq-tab {
	padding: 10px 18px 7px;
	font-family: var(--wp--preset--font-family--display);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
	clip-path: polygon(0 100%, 0 22%, 10px 0, calc(100% - 10px) 0, 100% 22%, 100% 100%);
}

.suaq-portraits__head .suaq-section-head__link {
	padding: 12px 0;
}

.suaq-portraits__list {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 28px;
	margin: 0;
	padding: 12px 0 0;
	list-style: none;
}

.suaq-portraits__list li {
	margin: 0;
}

.suaq-portraits__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

:where(.wp-site-blocks) a.suaq-portraits__link {
	color: inherit;
	text-decoration: none;
}

.suaq-portraits__link:hover .suaq-print__caption > span:first-child {
	color: var(--wp--preset--color--accent);
}

@media (max-width: 1023px) {
	.suaq-portraits__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.suaq-portraits__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 16px;
	}

	.suaq-portraits__tab .suaq-tab {
		font-size: 22px;
	}

	.suaq-portraits__head .suaq-section-head__link {
		font-size: 16px;
	}
}

.suaq-profile-family {
	padding-block: 80px !important;
}

/* Donate band on a profile: «Friskas Wald schützen» ------------------------------------- */

.suaq-protect {
	margin-block: 0 !important;
	padding-block: 72px !important;
	color: #fff;
}

.suaq-protect__inner {
	gap: 64px !important;
	align-items: center !important;
}

.suaq-protect__text {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.suaq-protect__text > * {
	margin: 0 !important;
}

.suaq-protect__title {
	font-size: clamp(2.75rem, 2.1rem + 2.67vw, 4.5rem);
	line-height: 0.9;
}

.suaq-protect__text p {
	max-width: 36em;
	font-size: 20px;
	line-height: 1.5;
}

.suaq-protect .wp-block-button__link {
	padding: 18px 32px;
	font-size: 19px;
	white-space: nowrap;
}

@media (max-width: 781px) {
	.suaq-protect {
		padding-block: 40px !important;
	}

	.suaq-protect__inner {
		flex-direction: column;
		align-items: stretch !important;
		gap: 18px !important;
	}

	.suaq-protect__text p {
		display: none;
	}

	.suaq-protect .wp-block-buttons,
	.suaq-protect .wp-block-button,
	.suaq-protect .wp-block-button__link {
		width: 100%;
	}

	.suaq-protect .wp-block-button__link {
		padding: 16px;
		font-size: 17px;
	}
}

/* Family page header -------------------------------------------------------------------- */

.suaq-family-head {
	padding-top: 28px;
	padding-bottom: 64px;
	border-bottom: 2px solid var(--wp--preset--color--contrast);
}

.suaq-family-head__cols {
	gap: 80px !important;
	margin-top: 24px !important;
	margin-bottom: 0 !important;
}

.suaq-family-head__main {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.suaq-family-head__main > * {
	margin: 0 !important;
}

.suaq-family-title {
	font-size: clamp(3.75rem, 2.32rem + 5.9vw, 8rem);
	line-height: 0.86;
}

.suaq-family-description {
	max-width: 34em;
	font-size: 21px;
	line-height: 1.6;
}

.suaq-family-description > * {
	margin: 0;
}

.suaq-family-description > * + * {
	margin-top: 0.75em;
}

.suaq-family-head__print {
	padding: 0 16px 8px;
}

.suaq-family-tree {
	display: flex;
	flex-direction: column;
	gap: 48px;
	margin-top: 0 !important;
	padding-block: 72px 104px;
}

.suaq-family-tree > * {
	margin: 0 !important;
}

@media (max-width: 781px) {
	.suaq-family-head {
		padding-top: 18px;
		padding-bottom: 32px;
	}

	.suaq-family-head__cols {
		gap: 16px !important;
		margin-top: 16px !important;
	}

	.suaq-family-head__main {
		gap: 16px;
	}

	.suaq-family-head__print {
		display: none;
	}

	.suaq-family-description {
		font-size: 18px;
		line-height: 1.55;
	}

	.suaq-family-tree {
		gap: 20px;
		padding-block: 32px 48px;
	}

	.suaq-family-tree > h2 {
		font-size: 36px;
	}
}

/* Family list (menus) ------------------------------------------------------------------- */

.suaq-flist--list .suaq-flist__item {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 -12px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

:where(.wp-site-blocks) .suaq-flist a.suaq-flist__item {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.suaq-flist--list .suaq-flist__item:hover {
	background: var(--wp--preset--color--surface);
}

.suaq-flist__pic {
	display: block;
	flex: none;
	box-sizing: border-box;
	overflow: hidden;
	border-radius: 50%;
	background: var(--wp--preset--color--paper);
}

.suaq-flist__pic img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.suaq-flist--list .suaq-flist__pic {
	width: 52px;
	height: 52px;
	padding: 3px;
	box-shadow: 0 2px 4px rgb(35 39 31 / 20%);
}

.suaq-flist__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 3px;
}

.suaq-flist__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.suaq-flist__count {
	color: var(--wp--preset--color--muted);
	font-size: 14px;
}

.suaq-flist__arrow {
	color: var(--wp--preset--color--muted);
	font-size: 20px;
	transition: color 0.15s, transform 0.15s;
}

.suaq-flist--list .suaq-flist__item:hover .suaq-flist__arrow {
	color: var(--wp--preset--color--accent);
}

.suaq-flist--round {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px 12px;
}

.suaq-flist--round .suaq-flist__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: var(--wp--preset--color--contrast);
	text-align: center;
	text-decoration: none;
}

.suaq-flist--round .suaq-flist__pic {
	width: 84px;
	height: 84px;
	padding: 4px;
	overflow: visible;
	box-shadow: 0 0 0 1px rgb(35 39 31 / 8%), var(--suaq-node-shadow);
	transform: rotate(var(--rot, 0deg));
}

.suaq-flist--round .suaq-flist__name {
	font-size: 17px;
	line-height: 1.05;
}

.suaq-flist--round .suaq-flist__all .suaq-flist__pic {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 2px dashed var(--wp--preset--color--contrast);
	background: none;
	box-shadow: none;
	font-family: var(--wp--preset--font-family--display);
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
}

.suaq-flist--round .suaq-flist__all .suaq-flist__name {
	color: var(--wp--preset--color--primary);
}

/* Tape and tilted prints may reach past the page edge; never let them scroll it. */
.suaq-profile-head,
.suaq-family-head,
.suaq-section,
.suaq-ou-head {
	overflow-x: clip;
}

/* A family too wide for the page at 148 / 112 / 84: smaller nodes, tighter rows. */
@media (min-width: 1024px) {
	.suaq-ftree--one.is-compact .suaq-node--g2 {
		--pic: 84px;
		--pic-pad: 4px;
		width: 112px;
	}

	.suaq-ftree--one.is-compact .suaq-node--g2 .suaq-node__name {
		font-size: 22px;
	}

	.suaq-ftree--one.is-compact .suaq-node--g3 {
		--pic: 64px;
		--pic-pad: 3px;
		width: 100px;
	}

	.suaq-ftree--one.is-compact .suaq-node--g3 .suaq-node__name {
		font-size: 19px;
	}

	.suaq-ftree--one.is-compact .suaq-node--g3 .suaq-node__year {
		font-size: 13px;
	}

	.suaq-ftree--one.is-compact .suaq-ftree__roots > li > .suaq-ftree__kids > li {
		padding-inline: 4px;
	}

	.suaq-ftree--one.is-compact .suaq-ftree__kids .suaq-ftree__kids > li {
		padding-inline: 2px;
	}
}

/* Lightbox (assets/js/lightbox.js) --------------------------------------------------------
   Ink at 95 %, the photo as a print L without tilt, counter, arrows, close. */

.suaq-lb-open {
	overflow: hidden;
}

.suaq-lb {
	--lb-fg: var(--wp--preset--color--base);
	box-sizing: border-box;
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 40px 64px;
	border: 0;
	background: transparent;
	color: var(--lb-fg);
	overflow: hidden;
}

.suaq-lb[open] {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
}

.suaq-lb::backdrop {
	background: rgb(20 23 17 / 95%);
}

.suaq-lb__bar {
	position: absolute;
	top: 28px;
	left: 64px;
	right: 64px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var(--wp--preset--font-family--display);
	font-size: 17px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.suaq-lb button {
	box-sizing: border-box;
	border: 2px solid var(--lb-fg);
	border-radius: 2px;
	background: none;
	color: var(--lb-fg);
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.suaq-lb button:hover {
	background: var(--lb-fg);
	color: var(--suaq-ink);
}

.suaq-lb button[hidden],
.suaq-lb [hidden] {
	display: none !important;
}

.suaq-lb__close {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 18px;
}

.suaq-lb__x {
	font-size: 22px;
	letter-spacing: 0;
}

.suaq-lb__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
	min-height: 0;
	touch-action: pan-y;
}

.suaq-lb__arrow {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 50% !important;
	font-family: var(--wp--preset--font-family--body);
	font-size: 28px;
	line-height: 1;
}

.suaq-lb__print {
	--rot: 0deg;
	flex: 0 1 auto;
	min-width: 0;
	color: var(--wp--preset--color--contrast);
}

.suaq-lb__print .suaq-print__photo {
	background: var(--wp--preset--color--surface);
}

.suaq-lb__print img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(1000px, 100vw - 128px - 208px - 24px);
	max-height: calc(100dvh - 260px);
	object-fit: contain;
}

.suaq-lb__print .suaq-print__caption {
	max-width: min(1000px, 100vw - 128px - 208px - 24px);
	box-sizing: border-box;
}

.suaq-lb__hint {
	margin: 0;
	color: #c9c3b2;
	font-size: 15px;
}

.suaq-lb__swipe,
.suaq-lb__mnav {
	display: none !important;
}

@media (max-width: 781px) {
	.suaq-lb {
		padding: 20px;
		justify-content: center;
		align-items: stretch !important;
	}

	.suaq-lb__bar {
		top: 16px;
		left: 20px;
		right: 16px;
		font-size: 16px;
	}

	.suaq-lb__close {
		justify-content: center;
		width: 48px;
		padding: 0;
	}

	.suaq-lb__close-text,
	.suaq-lb__arrow,
	.suaq-lb__keys {
		display: none !important;
	}

	.suaq-lb__x {
		font-size: 24px;
	}

	.suaq-lb__print {
		--print-pad: 10px;
		--tape-w: 92px;
		--tape-h: 26px;
	}

	.suaq-lb__print {
		width: auto;
		align-self: center;
	}

	.suaq-lb__print img,
	.suaq-lb__print .suaq-print__caption {
		max-width: none;
		max-height: none;
	}

	.suaq-lb__mnav:not([hidden]) {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.suaq-lb__mnav button {
		height: 52px;
		font-family: var(--wp--preset--font-family--display);
		font-size: 17px;
		font-weight: 600;
		letter-spacing: 0.06em;
		text-transform: uppercase;
	}

	.suaq-lb__forward {
		background: var(--lb-fg) !important;
		color: var(--suaq-ink) !important;
	}

	.suaq-lb__hint {
		text-align: center;
		font-size: 14px;
	}

	.suaq-lb__swipe {
		display: inline !important;
	}
}

:where(.wp-site-blocks) :is(.suaq-males__tab, .suaq-portraits__tab) a.suaq-tab {
	color: #fff;
	text-decoration: none;
}

:where(.wp-site-blocks) :is(.suaq-males__tab, .suaq-portraits__tab) a.suaq-tab.has-kraft-background-color {
	color: var(--wp--preset--color--contrast);
}
