/**
 * Redesign 2026-11 — biographies archive and single biography.
 *
 * Separate sheet because the old biography rules live in global legacy files;
 * this one loads only on the biography templates (see inc/assets.php).
 */

/* --- Archive ------------------------------------------------------------ */

body.post-type-archive-biography .main > .container {
	padding-top: 36px;
	padding-bottom: 88px;
}

.sp_bio_main_wrapper {
	margin: 0;
	padding: 0;
	background: none;
}

.sp_bio_title {
	margin: 0 0 36px;
	font: 500 clamp(32px, 4.6vw, 64px)/1.1 var(--nw-font-display);
	letter-spacing: -0.025em;
	text-align: left;
	color: var(--nw-ink);
}

.sp_bio_list {
	display: block;
}

.sp_bio_post {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 56px;
	margin: 0;
	padding: 32px 0;
	border: 0;
	border-top: 1px solid var(--nw-line);
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.sp_bio_post_top {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	margin: 0;
	padding: 0;
	background: none;
}

.sp_boi_post_image {
	position: relative;
	flex: none;
	width: 132px;
	height: 132px;
	margin: 0;
	overflow: hidden;
	border-radius: 18px;
	background: var(--nw-violet);
}

.sp_boi_post_image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}

.sp_bio_post_box {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
}

.sp_bio_post_box_left,
.sp_bio_post_box_right {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

.sp_bio_post_name {
	margin: 0 0 6px;
	font: 500 24px/1.15 var(--nw-font-display);
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--nw-ink);
}

.sp_bio_post_data,
.sp_bio_post_star,
.sp_bio_post_desc {
	margin: 0 0 6px;
	padding: 0;
}

.sp_bio_post_data::before,
.sp_bio_post_star::before,
.sp_bio_post_desc::before {
	display: none;
}

.sp_bio_post_data p,
.sp_bio_post_star p,
.sp_bio_post_desc p {
	margin: 0;
	padding: 0;
	color: var(--nw-muted);
	font-size: 15px;
	line-height: 1.45;
}

.sp_bio_post_data p {
	font-size: 13px;
}

.sp_bio_post_top_btn {
	display: inline-block;
	margin-top: 8px;
	padding: 0;
	border: 0;
	border-bottom: 2px solid var(--nw-yellow);
	border-radius: 0;
	background: none;
	color: var(--nw-ink);
	text-decoration: none;
}

.sp_bio_post_top_btn::before {
	display: none;
}

.sp_bio_post_top_btn p {
	margin: 0;
	color: var(--nw-ink);
	font-size: 14px;
	font-weight: 600;
	text-transform: lowercase;
}

.sp_bio_post_top_btn p::first-letter {
	text-transform: uppercase;
}

.sp_bio_post_top_btn:hover {
	background: none;
	color: var(--nw-ink);
	text-decoration: none;
}

.sp_bio_post_bottom {
	margin: 0;
	padding: 0;
	background: none;
}

.sp_bio_post_bottom_list {
	display: block;
	margin: 0;
}

.sp_bio_post_bottom_el {
	position: relative;
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	gap: 16px;
	width: auto;
	margin: 0;
	padding: 12px 0;
	border: 0;
	border-top: 1px solid var(--nw-line);
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.sp_bio_post_bottom_el:first-child {
	padding-top: 0;
	border-top: 0;
}

.sp_bio_post_bottom_el_permalink {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.sp_bio_post_bottom_el_wrapper_image,
.sp_bio_post_bottom_el_category {
	display: none;
}

.sp_bio_post_bottom_data {
	grid-column: 1;
	grid-row: 1;
	margin: 0;
	padding-top: 2px;
	color: var(--nw-muted);
	font-size: 13px;
	text-transform: none;
}

.sp_bio_post_bottom_el_name {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	color: var(--nw-ink);
	font: 600 16px/1.3 var(--nw-font-text);
}

.sp_bio_post_bottom_el:hover .sp_bio_post_bottom_el_name {
	text-decoration: underline;
	text-decoration-color: var(--nw-yellow);
	text-decoration-thickness: 2px;
}

.sp_bio_bottom_btn {
	display: inline-block;
	margin-top: 14px;
	padding: 0;
	border: 0;
	border-bottom: 2px solid var(--nw-yellow);
	border-radius: 0;
	background: none;
	color: var(--nw-ink);
	font-size: 14px;
	font-weight: 500;
	text-transform: none;
}

.sp_bio_bottom_btn:hover {
	background: none;
	color: var(--nw-ink);
	text-decoration: none;
}

@media (max-width: 992px) {
	.sp_bio_post {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		padding: 24px 0;
	}

	.sp_bio_post_top {
		gap: 16px;
	}

	.sp_boi_post_image {
		width: 88px;
		height: 88px;
		border-radius: 14px;
	}

	.sp_bio_post_name {
		font-size: 20px;
	}

	.sp_bio_post_bottom_el {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.sp_bio_post_bottom_data,
	.sp_bio_post_bottom_el_name {
		grid-column: 1;
		grid-row: auto;
	}
}

.sp_bio_post_box_right {
	text-align: left;
}

/* Legacy mobile rules turn both links into full-width white buttons. */
body.post-type-archive-biography .sp_bio_post .sp_bio_post_top_btn,
body.post-type-archive-biography .sp_bio_post .sp_bio_bottom_btn {
	display: inline-block;
	width: auto;
	height: auto;
	min-height: 0;
	padding: 0;
	color: var(--nw-ink);
	background: none;
	text-align: left;
}

body.post-type-archive-biography .sp_bio_post .sp_bio_post_box,
body.post-type-archive-biography .sp_bio_post .sp_bio_post_box_left,
body.post-type-archive-biography .sp_bio_post .sp_bio_post_name,
body.post-type-archive-biography .sp_bio_post p {
	text-align: left;
	background-image: none;
}

body.post-type-archive-biography .sp_bio_post .sp_bio_post_data,
body.post-type-archive-biography .sp_bio_post .sp_bio_post_star,
body.post-type-archive-biography .sp_bio_post .sp_bio_post_desc {
	padding-left: 0;
	background-image: none;
}

@media (max-width: 992px) {
	body.post-type-archive-biography .sp_bio_title {
		width: auto;
		margin-bottom: 24px;
		padding: 0;
		background: none;
		font-size: clamp(30px, 8vw, 40px);
		line-height: 1.1;
	}

	body.post-type-archive-biography .sp_bio_post .sp_bio_post_top {
		flex-direction: row;
		align-items: flex-start;
		justify-content: flex-start;
		margin: 0;
		padding: 0;
	}

	body.post-type-archive-biography .sp_bio_post .sp_boi_post_image {
		margin: 0;
	}

	body.post-type-archive-biography .sp_bio_post .sp_bio_post_box,
	body.post-type-archive-biography .sp_bio_post .sp_bio_post_box_left,
	body.post-type-archive-biography .sp_bio_post .sp_bio_post_box_right {
		display: block;
		width: auto;
		margin: 0;
	}

	body.post-type-archive-biography .sp_bio_post .sp_bio_post_star {
		display: block;
		text-align: left;
	}

	body.post-type-archive-biography .sp_bio_post .sp_bio_post_star::before {
		display: none;
	}

	body.post-type-archive-biography .sp_bio_post .sp_bio_post_bottom_list {
		width: auto;
		max-width: none;
		margin: 0;
	}

	body.post-type-archive-biography .sp_bio_post .sp_bio_post_bottom_el {
		width: auto;
		margin: 0;
	}

	body.post-type-archive-biography .sp_bio_post .sp_bio_bottom_btn {
		width: auto;
		margin: 14px 0 0;
		color: var(--nw-ink) !important;
	}
}

body.post-type-archive-biography .sp_bio_post .sp_bio_post_box_right {
	display: block;
	width: auto;
	margin: 0;
	padding: 0;
}

/* --- Single biography: one reading column -------------------------------- */

.nw-bio {
	max-width: 760px;
	margin: 0 auto;
	padding: 36px 0 88px;
}

.nw-bio #breadcrumbs {
	margin: 0 0 32px;
	font-size: 13px;
	color: var(--nw-muted);
}

.nw-bio #breadcrumbs a {
	color: var(--nw-muted);
}

.nw-bio-head {
	display: flex;
	align-items: center;
	gap: 28px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--nw-line);
}

.nw-bio-photo {
	flex: none;
	width: 128px;
	height: 128px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--nw-violet);
}

.nw-bio-photo img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.nw-bio-id h1 {
	margin: 0;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.1;
	color: var(--nw-ink);
}

.nw-bio-role {
	margin: 12px 0 0;
	max-width: 34em;
	font-size: 18px;
	line-height: 1.45;
	color: var(--nw-ink);
}

.nw-bio-born {
	margin: 6px 0 0;
	font-size: 14px;
	color: var(--nw-muted);
}

.nw-bio-text {
	margin-top: 36px;
	font-family: var(--nw-font-text);
	font-size: 19px;
	line-height: 1.75;
	color: var(--nw-ink);
	overflow-wrap: break-word;
}

.nw-bio-text p,
.nw-bio-text ul,
.nw-bio-text ol {
	margin: 0 0 1.2em;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.nw-bio-text li + li {
	margin-top: 0.4em;
}

.nw-bio-text h2,
.nw-bio-text h3 {
	margin: 1.8em 0 0.6em;
	font-family: var(--nw-font-display);
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--nw-ink);
}

.nw-bio-text h2 {
	font-size: 26px;
}

.nw-bio-text h3 {
	font-size: 21px;
}

.nw-bio-text strong,
.nw-bio-text b {
	font-weight: 600;
}

/* Photos inside the text take the full column. */
.nw-bio-text img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	margin: 1.6em 0;
	border-radius: var(--nw-radius);
}

.nw-bio-text a {
	color: var(--nw-ink);
	border-bottom: 2px solid var(--nw-yellow);
	text-decoration: none;
}

.nw-bio-text a:hover {
	background: var(--nw-yellow);
	color: var(--nw-ink-fixed);
}

.nw-bio-text blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 24px;
	border-left: 4px solid var(--nw-violet);
	font-size: 22px;
	line-height: 1.45;
}

/* Share row under the text. */
.nw-bio .main-box-single-footer {
	margin: 40px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid var(--nw-line);
}

.nw-bio .main-box-single-footer::before {
	display: none;
}

.nw-bio .main-box-single-share {
	display: flex;
	flex-direction: row;
	gap: 8px;
}

.nw-bio .main-box-single-share > a,
.nw-bio .main-box-single-share > span {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	border: 1px solid var(--nw-line);
	border-radius: 50%;
	background: none;
}

.nw-bio .main-box-single-share > a::after,
.nw-bio .main-box-single-share > span::after {
	display: none;
}

.nw-bio .main-box-single-share svg {
	width: 18px;
	height: 18px;
}

.nw-bio .main-box-single-share svg path {
	fill: var(--nw-ink);
}

.nw-bio .main-box-single-share > a:hover,
.nw-bio .main-box-single-share > span:hover {
	background: var(--nw-yellow);
	border-color: var(--nw-yellow);
}

.nw-bio .advertising-box {
	margin-top: 40px;
}

/* Articles about the person. */
.nw-bio-mats {
	margin-top: 56px;
}

.nw-bio-mats .nw-block-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 12px;
}

.nw-bio-mats .nw-section-title {
	font-size: 22px;
}

.nw-bio-rows .nw-row {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	gap: 20px;
	padding: 18px 0;
	border-top: 1px solid var(--nw-line);
	color: var(--nw-ink);
	text-decoration: none;
}

.nw-bio-rows .nw-row time {
	padding-top: 3px;
	color: var(--nw-muted);
	font-size: 13px;
}

.nw-bio-rows .nw-title {
	font-size: 17px;
}

@media (max-width: 992px) {
	.nw-bio {
		padding: 24px 0 56px;
	}

	.nw-bio-head {
		gap: 18px;
		align-items: flex-start;
	}

	.nw-bio-photo {
		width: 88px;
		height: 88px;
	}

	.nw-bio-role {
		font-size: 16px;
	}

	.nw-bio-text {
		font-size: 17px;
	}

	.nw-bio-rows .nw-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
	}
}

/* Biography photos are round cut-outs; a round frame shows them whole. */
.sp_boi_post_image,
body.post-type-archive-biography .sp_bio_post .sp_boi_post_image {
	border-radius: 50%;
}
