/* Directory cards use natural height and aligned footers. */
.library-org-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.library-org-card,.library-person-card{display:flex;flex-direction:column;min-width:0;text-decoration:none;color:inherit;overflow:hidden;box-sizing:border-box}
.library-org-card{min-height:270px}.library-org-card h2,.library-person-card h2{font-size:20px;line-height:1.5;margin:0 0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.library-card-type{min-height:24px;font-size:13px;color:var(--ui-secondary,#56657a)}.library-card-tags{min-height:44px;max-height:64px;overflow:hidden}
.library-card-brief{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere;line-height:1.7;min-height:72px;margin:10px 0 16px;color:var(--ui-secondary,#56657a);font-size:14px}
.library-card-footer{margin-top:auto;display:flex;justify-content:space-between;gap:8px;border-top:1px solid var(--ui-border,#dfe5ee);padding-top:12px;font-size:13px;color:var(--ui-secondary,#56657a)}
.library-people-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.library-person-card{min-height:320px}
.library-person-role{min-height:24px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:2px 0 12px;font-size:14px}
.library-person-tags{min-height:58px;max-height:68px;overflow:hidden;display:flex;flex-wrap:wrap;align-content:flex-start;gap:6px}
.library-person-tags .pill{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:none}
.library-person-projects{min-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:8px 0 16px;font-size:13px;color:var(--ui-secondary,#56657a)}.library-people-grid .en-person[hidden]{display:none}
@media(min-width:1700px){.library-people-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.library-people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.library-org-grid,.library-people-grid{grid-template-columns:1fr}.library-org-card,.library-person-card{min-height:0}.library-card-footer{margin-top:14px}}
