/*
 * LinKnote Works Tools: directory and search styles.
 * Migrated from the Works site's existing Additional CSS so the feature and
 * its presentation can be versioned together.
 */

/* =========================================
   人物・作品カード一覧
========================================= */


/* =========================================
   カテゴリ・人物種別ラベル
========================================= */


.linknote-person-types {
	margin: 0;
}

/* The labels remain visually consistent with work categories; these classes
   are available for future type-specific styling without changing markup. */
.linknote-person-type-individual,
.linknote-person-type-group,
.linknote-person-type-company {
	background: #f2f2f2;
	color: #444;
}

/* =========================================
   作品カード
========================================= */


/* =========================================
   一覧ページ内検索フォーム
========================================= */


/* =========================================
   Worksヘッダー検索フォーム
========================================= */


/* =========================================
   人物カードの列数
========================================= */

.people-card-grid {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1rem;
	align-items: stretch;
}

/* 人物カードを同じ高さに揃え、種別ラベルを右下へ固定する。 */
.people-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.people-card .linknote-card-image {
	flex: 0 0 auto;
}

.people-card .linknote-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 0.8rem;
}

/* 可変長の文字は表示行数を揃える。元データは省略・変更しない。 */
.people-card .linknote-card-title {
	display: -webkit-box;
	min-height: 2.8em;
	max-height: 2.8em;
	margin-bottom: 0.35rem;
	overflow: hidden;
	font-size: 0.95rem;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	word-break: break-word;
}


.people-card .linknote-person-kana {
	min-height: 1.5em;
	max-height: 1.5em;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.people-card .linknote-person-aliases {
	display: -webkit-box;
	min-height: 3.2em;
	max-height: 3.2em;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	word-break: break-word;
}

.people-card .linknote-person-card-bottom-row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 1.65rem;
	margin-top: auto;
	padding-top: 0.55rem;
}

.people-card .linknote-person-types {
	justify-content: flex-end;
	flex-wrap: nowrap;
	margin: 0;
}

.people-card .linknote-person-types.is-empty {
	visibility: hidden;
}


@media (max-width: 420px){
	

	.people-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	

	
}

/* Directory-only layout; existing cards and other Works modules are unchanged. */
.lnwt-directory {
 display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px;
 width: 100%; align-items: start; margin: 0 auto;
}
.linknote-work-list-wrap.lnwt-directory { width: 100%; }
.lnwt-directory-search { min-width: 0; border: 1px solid #ddd; border-radius: 8px; background: #fff; }
.lnwt-directory-search > summary { padding: 14px; cursor: pointer; font-weight: 600; }
.lnwt-directory .linknote-card-search { margin: 0; padding: 14px; border: 0; }
.lnwt-directory .linknote-card-search-row { display: flex; flex-direction: column; gap: 10px; }
.lnwt-directory .linknote-card-search input[type="search"] { width: 100%; min-width: 0; box-sizing: border-box; }
.lnwt-directory-results { min-width: 0; }
.lnwt-directory .linknote-card-grid { margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 901px) {
 .lnwt-directory-search:not([open]) > form { display: block; }
 .lnwt-directory-search > summary { list-style: none; cursor: default; }
 .lnwt-directory-search > summary::-webkit-details-marker { display: none; }
}
@media (max-width: 900px) {
 .lnwt-directory { grid-template-columns: minmax(0, 1fr); gap: 16px; }
 .lnwt-directory .linknote-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
