/* =========================================================
   LinKnote Works Tools: individual People / Works pages
   Migrated from the established Works Additional CSS.
========================================================= */

/* Shared basic-information sections. */
.work-basic-info,
.person-basic-info {
	margin-top: 2rem;
	padding: 1.5rem;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	background: #fff;
	box-sizing: border-box;
}

.work-basic-info h2,
.person-basic-info h2 {
	margin-top: 0;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #e5e5e5;
	font-size: 1.35rem;
	line-height: 1.4;
}

.work-basic-info dl,
.person-basic-info dl {
	display: grid;
	grid-template-columns: 8em minmax(0, 1fr);
	gap: 0.6rem 1rem;
	margin: 0;
}


.work-basic-info dd,
.person-basic-info dd {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

.work-basic-info a,
.person-basic-info a {
	text-decoration: none;
}

.work-basic-info a:hover,
.person-basic-info a:hover {
	text-decoration: underline;
}


.linknote-empty-content-text {
	margin-top: 1rem;
}

/* Shared edit-proposal button. */


.linknote-edit-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2rem;
	padding: 0.35rem 0.75rem;
	border: 1px solid #d0d0d0;
	border-radius: 999px;
	background: #f7f7f7;
	color: #333;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	box-sizing: border-box;
}

.linknote-edit-button:hover {
	background: #eee;
	color: #000;
	text-decoration: none;
}

.person-profile-items .linknote-edit-button-wrap {
	margin: 1.2rem 0 0;
}


/* =========================================================
   People page
========================================================= */

/* The inline hero owns the visible page title and image. */
.single-people .entry-title,
.single-people .post-thumbnail,
.single-people .featured-image {
	display: none;
}

.single-people .person-hero-profile {
	display: grid;
	grid-template-columns: 280px minmax(0, 520px);
	gap: 1.5rem;
	align-items: start;
	justify-content: center;
	width: calc(100% - 2rem);
	max-width: 900px;
	margin: 2rem auto;
	box-sizing: border-box;
}

.single-people .person-hero-side {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 280px;
	max-width: 100%;
	box-sizing: border-box;
}

.single-people .person-hero-image {
	width: 280px;
	max-width: 100%;
}

.single-people .person-hero-image img {
	display: block;
	width: 280px;
	height: 280px;
	max-width: 100%;
	border-radius: 12px;
	object-fit: cover;
}


.single-people .person-hero-profile .person-profile-items {
	margin: 0;
	padding: 1.5rem;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	background: #fff;
	box-sizing: border-box;
}

.single-people .person-hero-profile .person-profile-items dl {
	display: grid;
	grid-template-columns: 8em minmax(0, 1fr);
	gap: 0.6rem 1rem;
	margin: 0;
}

.single-people .person-hero-profile .person-profile-items dt {
	font-weight: 700;
	color: #555;
}

.single-people .person-hero-profile .person-profile-items dd {
	min-width: 0;
	margin: 0;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.single-people .profile-free-text {
	line-height: 1.8;
}

.single-people .profile-free-text > :first-child {
	margin-top: 0;
}

.single-people .profile-free-text > :last-child {
	margin-bottom: 0;
}


.single-people .person-inline-heading {
	margin: 0 0 1rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid #e5e5e5;
}

.single-people .person-inline-title {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1.8rem;
	line-height: 1.35;
}

.single-people .person-inline-kana {
	margin: 0.25rem 0 0;
	color: #666;
	font-size: 0.9rem;
	line-height: 1.5;
}

.single-people .person-hero-image + .linknote-edit-button-wrap {
	margin-top: 0.8rem;
}

.single-people .person-hero-related-link,
.single-people .person-hero-linknote-link {
	display: block;
	width: 100%;
	max-width: 280px;
	margin-top: 0.55rem;
	text-align: center;
	box-sizing: border-box;
}

.single-people .person-hero-related-link .related-works-button,
.single-people .person-hero-linknote-link .linknote-profile-button,
.single-people .person-hero-side .person-hero-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 280px;
	min-height: 2.8rem;
	padding: 0.7rem 1.2rem;
	border: 1px solid #d0d0d0;
	border-radius: 999px;
	background: #f7f7f7;
	color: #333;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
}

.single-people .person-hero-related-link .related-works-button:hover,
.single-people .person-hero-linknote-link .linknote-profile-button:hover,
.single-people .person-hero-side .person-hero-button:hover {
	background: #eee;
	color: #000;
	text-decoration: none;
}

/* Compact basic-information block below the hero. */


.single-people .person-basic-info dl {
	grid-template-columns: 7em minmax(0, 1fr);
	gap: 0.35rem 0.8rem;
}

.single-people .person-basic-info dt,
.single-people .person-basic-info dd {
	font-size: 0.9rem;
	line-height: 1.5;
}

/* =========================================================
   Works page
========================================================= */


.single-works .work-youtube {
	margin-top: 2rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}


.single-works .work-inline-title {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1.8rem;
	line-height: 1.35;
}


.single-works .work-single-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0 0 0.25rem;
}


.work-youtube-embed iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.single-works .work-youtube-empty-state .work-youtube-embed {
	position: static;
	height: auto;
	min-height: 0;
	padding: 0;
	aspect-ratio: auto;
	background: transparent;
	overflow: visible;
	border-radius: 0;
}

.single-works .work-youtube-empty-state .work-youtube-embed iframe {
	display: none;
}

.single-works .work-youtube-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 180px;
	padding: 1rem;
	border: 1px dashed #d5d5d5;
	border-radius: 12px;
	background: #fafafa;
	color: #777;
	font-weight: 700;
	box-sizing: border-box;
}


@media (max-width: 700px){
	.single-people .person-hero-profile {
		grid-template-columns: 1fr;
		width: calc(100% - 1.5rem);
		max-width: 420px;
	}

	.single-people .person-hero-side {
		width: 100%;
	}

	.single-people .person-hero-image {
		width: 100%;
		max-width: 320px;
	}

	.single-people .person-hero-image img {
		width: 100%;
		height: auto;
		max-width: 320px;
		margin: 0 auto;
	}

	.single-people .person-hero-profile .person-profile-items dl,
	.work-basic-info dl,
	.person-basic-info dl,
	.single-people .person-basic-info dl {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}

	.single-people .person-hero-profile .person-profile-items dt,
	.work-basic-info dt,
	.person-basic-info dt,
	.single-people .person-basic-info dt {
		margin-top: 0.8rem;
	}
}

@media (max-width: 600px){
	.work-basic-info,
	.person-basic-info {
		padding: 1rem;
	}
}
