/* A section's list of poems as cards: number, own title, first couplet (corpus/section.js). */
.pcards-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 8px 0 14px; }
.pcards-head h2 { margin: 0; font-size: 17px; }
.pcards-head h2 .muted { font-size: 14px; font-weight: 400; }
.pcards-filter { display: flex; align-items: center; gap: 8px; flex: 0 1 320px; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #CFCCC4; border-radius: 10px; background: var(--paper); color: var(--ink-soft); }
.pcards-filter:focus-within { border-color: var(--cocoa); }
.pcards-filter input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.pcards-none { margin: 0 0 14px; }
.pcards + .editions { margin-top: 24px; }
.pcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.pcards > li { min-width: 0; }
.pcards > li[hidden] { display: none; }
.pcard { display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.pcard:hover { text-decoration: none; border-color: #CDBFAA; box-shadow: 0 4px 14px rgba(36, 19, 10, .07); }
.pcard__n { flex-shrink: 0; min-width: 34px; height: 34px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #F4F1EA; font-size: 14px; font-weight: 700; color: #5E5249; }
.pcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pcard__title { font-weight: 700; font-size: 15px; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__couplet { max-width: 100%; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; font-family: var(--font-book); font-size: 20.5px; line-height: 1.75; color: var(--ink); }
.pcard__m { display: block; max-width: 100%; white-space: nowrap; text-align: justify; text-align-last: justify; }
.pcard__line { font-family: var(--font-book); font-size: 19px; line-height: 1.8; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__line--prose { font-size: 18px; text-align: justify; }
@media (max-width: 560px) {
  .pcards { grid-template-columns: 1fr; }
  .pcards-filter { flex-basis: 100%; }
}
