/* Karty publikacji: oddzielone etykiety, pełne tytuły i zwięzłe informacje. */
.book-grid,.homepage .book-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.book-card{background:#fff;display:flex;flex-direction:column;transition:border-color .18s,box-shadow .18s}
.book-card:hover{transform:none;border-color:#a7b9d4;box-shadow:0 7px 20px #192f5010}
.book-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px 4px;min-height:58px;background:#f1f4f8}
.book-card .book-badges{position:static;inset:auto;flex:1;flex-direction:row;flex-wrap:wrap;gap:6px;align-items:center;min-width:0}
.book-card .book-badges .badge{font-size:.72rem;padding:6px 8px;line-height:1.25;letter-spacing:0;box-shadow:none;max-width:100%}
.book-card .card-fav{position:static;inset:auto;width:44px;height:44px;flex:none;border-radius:8px}
.book-card .book-image,.homepage .book-image,.catalog-grid .book-image{height:192px;min-height:0;padding:10px 18px 20px;display:grid;place-items:center;background:#f1f4f8;width:auto;overflow:hidden}
.book-card .book-image::before{display:none}
.book-card .cover-link,.homepage .book-image .cover-link,.catalog-grid .cover-link{display:grid;place-items:center;height:162px;width:100%;max-width:100%}
.book-card .book-cover.real-cover,.homepage .book-card .book-cover.real-cover,.catalog-grid .book-cover.real-cover{height:162px;width:auto;max-height:162px;max-width:142px;object-fit:contain;box-shadow:4px 6px 12px #192f501a}
.book-card .fallback-cover{height:162px;width:116px}
.book-card .book-content,.homepage .book-content{padding:18px;display:flex;flex-direction:column;gap:8px;flex:1;min-width:0}
.book-card .book-category{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 7px;font-size:.8rem;line-height:1.45;letter-spacing:0;font-weight:600;margin:0;color:#526b8c}
.book-year{color:var(--muted);font-weight:500;white-space:nowrap}
.book-meta-separator{color:#9ba8bb}
.book-card .book-title{font-size:1.1rem;line-height:1.43;display:block;min-height:0;margin:0;overflow:visible;-webkit-line-clamp:unset}
.book-card .book-author{display:block;font-size:.87rem;line-height:1.5;min-height:0;margin:0;color:var(--muted);overflow:visible;-webkit-line-clamp:unset}
.book-card .book-series{font-size:.8rem;line-height:1.5;margin:0}
.book-card-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px}
.book-edit{font-size:.8rem;min-height:36px;padding:6px 10px;gap:5px}
.book-edit .icon{width:14px;height:14px}
.book-details{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;color:#385882;font-size:.83rem;font-weight:650;text-decoration:none;min-height:30px;padding-block:4px;margin-top:-3px}
.book-details:hover{text-decoration:underline}
.book-details .icon{width:14px;height:14px}
.book-card .card-purchase{margin-top:auto;padding-top:14px;gap:6px}
.card-pdf-meta{font-size:.87rem;line-height:1.5;color:var(--muted);margin:0}
.book-card .buy-button{font-size:.9rem;min-height:44px;padding:11px 14px;margin-top:2px;line-height:1.35}
.book-card .buy-button:hover{transform:none}
.book-card .price-caption{display:none}
.book-card .book-price strong{font-size:1.2rem}
.book-card .book-price strong.price-unknown{font-size:.9rem}
.book-card .stock-note{font-size:.8rem;margin:1px 0 3px}
.book-card .book-price small{font-size:.8rem}
/* Oryginalna grafika TIA jest obrócona. Orientację koryguje wyłącznie sposób wyświetlania. */
.book-cover-frame.cover-landscape{display:block;position:relative;width:var(--landscape-cover-width,240px);max-width:100%;aspect-ratio:3/2;box-shadow:4px 6px 12px #192f501a}
.book-cover-frame.cover-landscape>img.book-cover.real-cover{position:absolute;left:50%;top:50%;width:66.6667%;height:150%;max-width:none;max-height:none;transform:translate(-50%,-50%) rotate(-90deg);box-shadow:none}
.details-wrap>div,.details-wrap>article{min-width:0}
.details-visual{width:100%;min-width:0;grid-template-columns:minmax(0,1fr)}
.details-visual .cover-landscape{--landscape-cover-width:360px}
.hero-book .cover-landscape{--landscape-cover-width:155px}
.homepage .collection-compact .book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.homepage .collection-compact .book-card,.catalog-grid.list-mode .book-card{display:grid;grid-template-columns:150px minmax(0,1fr);grid-template-areas:"top top" "cover content"}
.homepage .collection-compact .book-card-top,.catalog-grid.list-mode .book-card-top{grid-area:top}
.homepage .collection-compact .book-image,.catalog-grid.list-mode .book-image{grid-area:cover;height:100%;min-height:200px;width:auto;padding:18px 14px;align-items:start}
.homepage .collection-compact .book-content,.catalog-grid.list-mode .book-content{grid-area:content;padding:18px}
.homepage .collection-compact .book-card:only-child{grid-column:1/-1}
.homepage .collection-compact .cover-landscape,.catalog-grid.list-mode .cover-landscape{--landscape-cover-width:122px}
.homepage .collection-compact .book-cover.real-cover,.catalog-grid.list-mode .book-cover.real-cover{max-width:110px;height:150px}
.homepage .collection-compact .card-purchase,.catalog-grid.list-mode .card-purchase{margin-top:8px}
.high-contrast .book-card-top,.high-contrast .book-card .book-image{background:#fff}
.high-contrast .card-pdf-meta,.high-contrast .book-details,.high-contrast .book-year,.high-contrast .book-meta-separator{color:#111}
@media(max-width:1000px){.book-grid,.homepage .book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:701px) and (max-width:1000px){.catalog-grid{grid-template-columns:1fr}}
@media(max-width:860px){.homepage .collection-compact .book-grid{grid-template-columns:1fr}}
@media(max-width:600px){
 .book-grid,.homepage .book-grid,.catalog-grid{grid-template-columns:1fr;gap:18px}
 .book-card,.homepage .collection-compact .book-card,.catalog-grid.list-mode .book-card{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-areas:"top top" "cover category" "cover author" "title title" "details details" "series series" "purchase purchase";gap:0 14px;padding:0 16px 16px;align-items:start}
 .book-card-top,.homepage .collection-compact .book-card-top,.catalog-grid.list-mode .book-card-top{grid-area:top;margin-inline:-16px;padding:10px 14px;min-height:64px;margin-bottom:14px}
 .book-card .book-badges{gap:5px}
 .book-card .book-badges .badge{font-size:.69rem;padding:5px 7px}
 .book-card .book-content,.homepage .book-content,.homepage .collection-compact .book-content,.catalog-grid.list-mode .book-content{display:contents}
 .book-card .book-image,.homepage .book-image,.homepage .collection-compact .book-image,.catalog-grid .book-image,.catalog-grid.list-mode .book-image{grid-area:cover;width:96px;height:112px;min-height:0;padding:8px;border-radius:6px;align-self:center;align-items:center;overflow:visible}
 .book-card .cover-link,.homepage .book-image .cover-link,.catalog-grid .cover-link,.catalog-grid.list-mode .cover-link{height:96px;align-items:center}
 .book-card .book-cover.real-cover,.homepage .book-card .book-cover.real-cover,.homepage .collection-compact .book-cover.real-cover,.catalog-grid .book-cover.real-cover,.catalog-grid.list-mode .book-cover.real-cover{height:96px;max-height:96px;width:auto;max-width:74px}
 .book-card .cover-landscape{--landscape-cover-width:80px}
 .book-card .book-category{grid-area:category;font-size:.78rem;align-self:end;padding:0;margin:0 0 7px}
 .book-card .book-author{grid-area:author;font-size:.87rem;line-height:1.5;align-self:start}
 .book-card .book-title,.catalog-grid.list-mode .book-title{grid-area:title;font-size:1.07rem;line-height:1.43;margin-top:14px}
 .book-card .book-card-actions{grid-area:details;margin-top:2px}
 .book-card .book-edit{min-height:44px}
 .book-card .book-details{min-height:36px;margin:0;font-size:.86rem}
 .book-card .book-series{grid-area:series;font-size:.83rem;margin-top:4px}
 .book-card .card-purchase,.homepage .collection-compact .card-purchase,.catalog-grid.list-mode .card-purchase{grid-area:purchase;display:flex;margin-top:12px;padding:0;gap:6px}
 .book-card .buy-button{width:100%;font-size:.9rem;min-width:0;margin-top:3px}
 .card-pdf-meta{font-size:.85rem}
}
@media print{.book-card-top{display:none}.book-image{background:#fff!important}}
