.card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: .88rem; background: var(--surface); }
.card:hover { border-color: #aeb7a6; }
.card-art { position: relative; }
.cover, .details-art { display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; background: #e5ebdf; color: #46623c; }
.cover { border: 0; padding: 0; }
.cover:focus-visible { outline-offset: -4px; }
.cover img, .details-cover { width: 100%; height: 100%; display: block; object-fit: contain; }
.cover img.cover--local, .details-cover.cover--local { object-fit: cover; object-position: right center; }
.cover-initials { font-weight: 650; letter-spacing: -.075em; font-size: clamp(2rem, 5vw, 4rem); }
.card:nth-child(3n + 2) .cover { background: #e6e5ef; color: #5c5375; }
.card:nth-child(3n) .cover { background: #e5ecf0; color: #4a6270; }
.card-favorite { position: absolute; top: .6rem; right: .6rem; background: #fffffff2; border: 1px solid #ffffffab; color: #22281e; border-radius: 50%; box-shadow: 0 1px 5px #0002; }
.card-favorite:hover { background: #fff; }
.card-favorite[aria-pressed="true"], .favorite-modal[aria-pressed="true"] { color: #3c591d; background: #d9f7ad; }
.card-favorite[aria-pressed="true"] .glyph, .favorite-modal[aria-pressed="true"] .glyph { fill: currentColor; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: .85rem .85rem .55rem; }
.card h2 { font-size: 1.02rem; line-height: 1.22; letter-spacing: -.035em; overflow-wrap: anywhere; }
.meta { margin: .32rem 0 .7rem; color: var(--muted); font-size: .8rem; }
.actions { margin-top: auto; border-top: 1px solid #e9ece6; padding-top: .35rem; gap: .12rem; }
.flag-actions { gap: .12rem; }
.details-link { margin-left: auto; min-height: 32px; padding: .3rem .35rem; color: #46553f; }
.details-art { border-radius: .8rem; }
.details-cover--empty { display: grid; place-items: center; }
.grid--medium .card-body { padding: .63rem; }
.grid--medium .card h2 { font-size: .93rem; }
.grid--medium .details-link { display: none; }
@media (max-width: 600px) {
  .card-body { padding: .65rem .55rem .4rem; }
  .card h2 { font-size: .96rem; }
  .card-favorite { top: .4rem; right: .4rem; }
  .details-link { display: none; }
  .details-layout .details-art { width: min(100%, 19rem, 36svh); justify-self: center; }
}
@media (min-width: 390px) and (max-width: 600px) {
  .grid--medium { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--medium .card-body { padding: .52rem .4rem; }
}
