.editorial-card,
.book-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--soft);
}

.editorial-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.editorial-body p {
    color: var(--muted);
    font-size: 14px;
    flex-grow: 1;
}

.text-link {
    color: #806020;
    font-size: 14px;
    font-weight: 700;
}

.article-heading {
    margin: 32px 0;
}

.article-heading h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.article-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 16px;
}

.article-hero-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 36px;
}

.article-body {
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin-top: 32px;
}

.article-body a {
    color: #806020;
    text-decoration: underline;
}

.article-body blockquote {
    border-left: 4px solid var(--gold);
    padding: 18px 24px;
    background: var(--soft);
    margin: 24px 0;
}

.article-body table {
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    max-width: 100%;
}

.article-body td,
.article-body th {
    padding: 12px;
    border: 1px solid var(--border);
}

.article-body pre {
    overflow-x: auto;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.book-cover-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: var(--soft);
    height: 300px;
}

.book-cover-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 5px 8px 18px #0002;
}

.book-card h3 {
    font-size: 16px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.book-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
    margin-top: 40px;
}

.book-detail-cover {
    background: var(--soft);
    padding: 30px;
    border-radius: var(--radius);
}

.book-detail-cover img {
    display: block;
    width: 100%;
    box-shadow: 8px 12px 28px #0002;
}

.book-detail-grid h1 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    overflow-wrap: anywhere;
}

.section-action {
    text-align: center;
    margin-top: 36px;
}

@media (max-width: 950px) {
    .book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .book-detail-grid {
        gap: 30px;
        grid-template-columns: 1fr 1.5fr;
    }
}

@media (max-width: 560px) {
    .book-grid,
    .book-detail-grid {
        grid-template-columns: 1fr;
    }

    .book-detail-cover {
        max-width: 300px;
        margin: auto;
    }
}
