﻿
 .book-chapter

{
    box-sizing: border-box;
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
    padding: 1rem;
}

.book-chapter__header {
    text-align: center;
}

.book-chapter__title {
    margin: 0 0 1rem;
}

.book-chapter__image {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto 1rem;
}

.book-chapter__documents {
    display: grid;
    gap: 0.5rem;
    width: 100%;
    max-width: 800px;
    margin-inline: auto;
}

.chapter-document {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.875rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    color: #fff;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

    .chapter-document:nth-child(odd) {
        background-color: #9b2454;
    }

    .chapter-document:nth-child(even) {
        background-color: #175a92;
    }

    .chapter-document:hover {
        color: #fff;
        text-decoration: underline;
    }

    .chapter-document:focus-visible,
    .chapter-nav:focus-visible {
        outline: 3px solid #111;
        outline-offset: 3px;
    }

.book-chapter__navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
}

.chapter-nav {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 0 1 170px;
    min-width: 0;
    min-height: 96px;
    padding: 0.70rem;
    border: 1px solid #000;
    border-radius: 20px;
    background-color: #fff;
    font-size: 0.875rem;
    text-align: center;
    text-decoration: none;
}

.chapter-nav--previous {
    color: #a83200;
}

.chapter-nav--next {
    margin-left: auto;
    color: #176b28;
}

.chapter-nav img {
    flex: 0 0 32px;
    width: 32px;
    height: auto;
}

.chapter-nav:hover {
    text-decoration: underline;
}
.book-chapter .book-chapter__navigation {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
}

.book-chapter a.chapter-nav {
    flex: 0 1 170px;
    min-width: 0;
    max-width: calc(50% - 4px);
    padding: 8px;
    gap: 5px;
    font-size: 0.75rem;
}

.book-chapter .chapter-nav img {
    flex: 0 0 24px;
    width: 24px;
    max-width: 24px;
    height: auto;
}

.book-chapter .chapter-nav span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.book-chapter__footer {
    margin-top: 1rem;
    font-size: 0.75rem;
}
.book-chapter .book-chapter__footer p {
    font-size: 10px;
    line-height: 1.3;
}


