/* =========================================
   Person-related works page
========================================= */

.linknote-person-related-works-page .entry-title,
.linknote-person-related-works-page .page-title {
	display: none !important;
}


.person-related-work-card[hidden] {
	display: none !important;
}

/* Legacy related-works link-box shortcode. */
.related-works-link-box {
	margin-top: 2rem;
	padding: 1.5rem;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	background: #fff;
}

.related-works-link-box h2 {
	margin: 0 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #e5e5e5;
	font-size: 1.35rem;
	line-height: 1.4;
}

.related-works-link-box p {
	margin: 0;
}

.related-works-link-box .related-works-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.7rem;
	padding: 0.65rem 1rem;
	border: 1px solid #d0d0d0;
	border-radius: 999px;
	background: #f7f7f7;
	color: #333;
	font-weight: 700;
	text-decoration: none;
}

.related-works-link-box .related-works-button:hover {
	background: #eee;
	color: #000;
	text-decoration: none;
}

/* =========================================
   Work page: people cards
========================================= */


.linknote-work-people-title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
}

.linknote-work-people-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
}

.linknote-work-person-card {
	overflow: hidden;
	border: 1px solid #e5e5e5;
	border-radius: 14px;
	background: #fff;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}


.linknote-work-person-card-link {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.linknote-work-person-card-link:hover {
	color: inherit;
	text-decoration: none;
}

.linknote-work-person-card-thumb {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f4f4f4;
}

.linknote-work-person-card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.linknote-work-person-card-noimage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: #f1f1f1;
	color: #999;
	font-size: 14px;
	font-weight: 600;
}

.linknote-work-person-card-body {
	padding: 10px;
}

.linknote-work-person-card-name {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.linknote-work-person-card-roles {
	margin-bottom: 4px;
	color: #555;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

/* =========================================
   Work page: cover relations
========================================= */


/* =========================================
   Work page: cover / people / comments tabs
========================================= */


.linknote-work-relation-tab-buttons {
	display: flex;
	gap: 0.4rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid #ddd;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.linknote-work-relation-tab-button {
	flex: 0 0 auto;
	padding: 0.7rem 1rem;
	border: 0;
	border-bottom: 3px solid transparent;
	background: transparent;
	color: #666;
	font: inherit;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.linknote-work-relation-tab-button:hover {
	background: #f7f7f7;
	color: #111;
}

.linknote-work-relation-tab-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}


.linknote-work-relation-tab-panel[hidden] {
	display: none !important;
}

.linknote-work-relation-tab-panel > .linknote-work-cover-relations,
.linknote-work-relation-tab-panel > .linknote-work-people-section,
.linknote-work-relation-tab-panel > .linknote-comments-section {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

/* The tab labels already communicate these section names. */
.linknote-work-relation-tab-panel .linknote-work-cover-relations-heading,
.linknote-work-relation-tab-panel .linknote-work-people-header,
.linknote-work-relation-tab-panel .linknote-comments-title {
	display: none;
}

@media (max-width: 600px){
	.person-related-role-filter {
		padding: 0.75rem;
	}

	

	

	.linknote-work-people-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 16px;
	}

	

	

	.linknote-work-relation-tab-button {
		flex: 1 0 auto;
		padding: 0.65rem 0.5rem;
		font-size: 0.9rem;
	}
}
