.listing-detail {
    display: grid;
    grid-template-columns: minmax(200px, 320px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.listing-detail .cover {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--paper-deep);
}

.listing-detail .author {
    margin-top: 0;
    color: var(--ink-soft);
    font-style: italic;
}

.facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    max-width: 420px;
    margin: 20px 0;
    padding: 4px 16px;
    font-size: 0.95rem;
    background: rgba(255, 252, 243, 0.45);
    border-top: 2px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.facts dt,
.facts dd {
    padding: 6px 0;
    border-bottom: 1px solid var(--rule);
}

.facts dt:last-of-type,
.facts dd:last-of-type {
    border-bottom: none;
}

.facts dt {
    padding-right: 16px;
    color: var(--ink-soft);
    font-variant-caps: all-small-caps;
    letter-spacing: 0.06em;
}

.facts dd {
    margin: 0;
}

.facts .isbn {
    font-variant-numeric: lining-nums tabular-nums;
}

.description {
    white-space: pre-line;
    max-width: 60ch;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.gallery-more {
    display: flex;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.gallery-more img {
    display: block;
    width: 64px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.facts .price {
    font-weight: 600;
}

.stamp-sold {
    color: var(--accent);
}

.contact {
    max-width: 420px;
    margin-top: 20px;
    padding: 10px 16px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}

.contact h2 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-variant-caps: all-small-caps;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
}

.contact p {
    margin: 2px 0;
    overflow-wrap: anywhere;
}

.contact .contact-whatsapp {
    margin: 10px 0;
}

.contact .safety {
    margin-top: 10px;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--ink-soft);
}

.actions .note {
    flex-basis: 100%;
    margin: 0;
}

.actions form {
    display: contents;
}

.report-link {
    align-self: center;
    color: var(--ink-soft);
}

@media (max-width: 640px) {
    .listing-detail {
        grid-template-columns: minmax(0, 1fr);
    }

    .listing-detail .cover {
        max-width: 260px;
    }
}

.listing-detail .drawn-cover {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 12%;
    color: var(--accent-ink);
    text-align: center;
    box-shadow: var(--shadow), inset 0 0 0 10px var(--tone), inset 0 0 0 12px var(--accent-ink);
    background: var(--tone);
    overflow-wrap: anywhere;
}

.drawn-title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.25;
}

.drawn-author {
    font-style: italic;
}

.cover-tone-0 { --tone: #8c2f1e; }
.cover-tone-1 { --tone: #2b6235; }
.cover-tone-2 { --tone: #3a2c1c; }
.cover-tone-3 { --tone: #67561e; }
.cover-tone-4 { --tone: #4a5a7a; }
.cover-tone-5 { --tone: #7a4a6a; }
.cover-tone-6 { --tone: #2f4f4f; }
.cover-tone-7 { --tone: #6b3e26; }

.book-copies,
.book-reviews {
    grid-column: 1 / -1;
}

.book-copies > h2,
.book-reviews > h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.facts .stars {
    display: inline-flex;
    margin: 0 0.4em 0 0;
}

.reviewer {
    margin: 0;
    font-weight: 600;
}

.review-date {
    margin-left: 0.5em;
    font-weight: normal;
    font-size: 0.85rem;
    color: var(--ink-soft);
}
