/* Extracted small-card geometry from 02 Карточки книг.html. */
.small-card { position:relative; display:grid; min-width:280px; grid-template-columns:92px minmax(0,1fr); gap:12px; padding:10px; height:150px; border:1px solid var(--line); border-radius: var(--radius-panel); background:var(--surface); color:var(--ink); box-shadow: var(--shadow-card); cursor:pointer; }
.small-card,.small-card * { box-sizing:border-box; }
.small-card .cover { position:relative; overflow:hidden; width:92px; height:128px; border-radius: var(--radius-field); background:var(--soft); }
.small-card .cover img { display:block; width:100%; height:100%; object-fit:cover; }
.small-card .title { display:-webkit-box; overflow:hidden; flex-shrink:0; margin:0; font-family:var(--font-body); font-size:var(--type-caption-size); line-height:var(--type-caption-line); font-weight:var(--weight-semibold); letter-spacing:var(--tracking-normal); -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.small-card .author,.small-card .series,.small-card .chip,.small-card .rating,.small-card .date,.small-card .small-reading-method { font-size:var(--type-micro-size); line-height:var(--type-micro-line); }
.small-card .author,.small-card .series { margin:0; color:var(--muted); height:14px; flex-shrink:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.small-card .author { margin-top:4px; }
.small-card .series { margin-top:2px; }
.small-card .chips { height:20px; flex-shrink:0; margin-top:8px; }
.small-card .card-copy { display:flex; flex-direction:column; height:128px; min-width:0; }
.small-card > div { min-width:0; }
.small-card .card-open { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; width:100%; padding:0; border:0; background:none; color:inherit; text-align:left; font:inherit; }
.small-card .card-open::after { display:none; }
.small-card .card-open:focus-visible { outline:none; }
.small-card:has(.card-open:focus-visible) { outline: var(--focus-ring); outline-offset:3px; }
.small-card .card-meta { display:flex; align-items:center; justify-content:space-between; flex-wrap:nowrap; gap:8px; margin-top:auto; height:14px; flex-shrink:0; white-space:nowrap; }
.small-card .rating,.small-card .date { margin:0; color:var(--muted); }
.small-card .small-cover-fallback { display:grid; place-items:center; height:100%; padding:8px; text-align:center; color:var(--muted); font-size:var(--type-caption-size); line-height:var(--type-caption-line); }
.small-card .small-reading-method { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; margin:8px 0 0; color:var(--muted); }
/* Context supplies the white panel. No repeated surface, series, tags or status. */
.small-card.in-period { border-color:transparent; background:transparent; box-shadow:none; }
.small-card.in-period .cover::after { display:none; }
.small-card.in-period:hover:not(:has(button:hover, a:hover, [role="button"]:hover, input:hover, select:hover, textarea:hover)), .small-card.in-period:has(.card-open:hover) { border-color:transparent; box-shadow:none; }
.small-card.in-period:hover:not(:has(button:hover, a:hover, [role="button"]:hover, input:hover, select:hover, textarea:hover)) .cover, .small-card.in-period:has(.card-open:hover) .cover { box-shadow: var(--shadow-raised); }
