/* ── Book info block ─────────────────────────────────────────────────────── */

.earmark-book-info {
    margin: 1em 0 1.5em;
}

.earmark-book-header {
    display: flex;
    gap: 1.25em;
    align-items: flex-start;
    margin-bottom: 1em;
}

.earmark-book-cover {
    flex-shrink: 0;
}

.earmark-book-cover img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    display: block;
}

.earmark-book-synopsis {
    flex: 1;
    min-width: 0;
}

.earmark-book-details {
    line-height: 1.8;
}

.earmark-book-rating {
    margin-top: 0.6em;
}

.earmark-stars {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3em;
}

.earmark-star-icons {
    color: #e8a000;
    font-size: 1.1em;
    letter-spacing: 0.04em;
}

.earmark-rating-num {
    font-size: 0.85em;
    color: #666;
}

@media ( max-width: 480px ) {
    .earmark-book-header {
        flex-direction: column;
    }
    .earmark-book-cover img {
        width: 150px;
        height: 150px;
    }
}

/* ── Related posts block ─────────────────────────────────────────────────── */

.earmark-related {
    margin: 28px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid #e5e5e5;
}

.earmark-related__group {
    margin-bottom: 22px;
}

.earmark-related__group:last-child {
    margin-bottom: 0;
}

.earmark-related__label {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
}

.earmark-related__row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.earmark-related__book {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    text-decoration: none;
    color: inherit;
}

.earmark-related__book img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    transition: opacity 0.15s;
}

.earmark-related__book:hover img {
    opacity: 0.85;
}

.earmark-related__book span {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
    color: #555;
    word-break: break-word;
}
