/* Book presentations: isolated from other pages. */
.livros-page .book-cover-trigger {
    position: relative;
    width: 100%;
    border: 1px solid transparent;
    padding-bottom: 72px;
    font: inherit;
    cursor: pointer;
    justify-content: center;
    transition:
        box-shadow 0.2s,
        border-color 0.2s;
}
.book-cover-trigger .book-cover {
    transition: transform 0.25s;
}
.book-cover-trigger:hover,
.book-cover-trigger:focus-visible {
    border-color: #d5a379;
    box-shadow: 0 8px 25px #4a311514;
}
.book-cover-trigger:hover .book-cover {
    transform: translateY(-4px);
}
.book-cover-hint {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    white-space: nowrap;
    background: #fffef9;
    color: #333a2f;
    border: 1px solid #e7dfd4;
    border-radius: 24px;
    padding: 9px 15px;
    font-size: 12px;
    font-weight: 600;
}
.book-cover-hint svg {
    width: 17px;
    height: 17px;
    color: var(--rust);
}
.book-card-actions {
    display: flex;
    flex-direction: column;
    gap: 17px;
    margin-top: auto;
}
.book-card-actions .book-read-more {
    padding: 10px 0;
    background: none;
    border: 0;
    border-bottom: 1px solid #c3c3be;
    border-radius: 0;
    color: var(--ink);
    font:
        600 14px/1.6 Manrope,
        Arial,
        sans-serif;
    margin: 0;
    align-self: flex-start;
}
.book-card-actions .book-read-more:hover {
    color: var(--rust);
}
.book-buy-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.7;
    color: var(--rust);
    align-self: flex-start;
}
.book-buy-link svg {
    width: 16px;
    height: 16px;
}
.book-noscript {
    padding-bottom: 40px;
    font-size: 14px;
}
body.books-modal-open {
    overflow: hidden;
}
.book-dialog {
    width: min(1040px, calc(100% - 48px));
    max-width: none;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    padding: 0;
    border: 1px solid #e6e2d9;
    border-radius: 18px;
    margin: auto;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 28px 100px #0004;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
.book-dialog:not([open]) {
    display: none;
}
.book-dialog[open] {
    display: block;
}
.book-dialog::backdrop {
    background: #151b18b8;
    backdrop-filter: blur(5px);
}
.book-dialog-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #faf9f6f5;
    border-bottom: 1px solid var(--line);
    padding: 13px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.book-dialog-bar > span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #7b654d;
}
.book-dialog-close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d6d5cc;
    color: #333;
    flex-shrink: 0;
}
.book-dialog-close:hover {
    background: #f4e9de;
    border-color: #d5a379;
}
.book-dialog-close svg {
    width: 20px;
    height: 20px;
}
.book-dialog-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
    padding: 36px;
}
.book-dialog-art {
    position: sticky;
    top: 94px;
    align-self: start;
    padding: 30px 24px 24px;
    background: #f0d6be;
    border-radius: 12px;
    text-align: center;
}
.book-dialog-art-1 {
    background: #343639;
}
.book-dialog-art-2 {
    background: #e9e3cf;
}
.book-dialog-art img {
    width: 100%;
    height: 320px;
    max-height: none;
    object-fit: contain;
    margin: 0 auto 23px;
}
.book-dialog-art > p {
    font-size: 14px;
    font-weight: 600;
    color: #66492f;
}
.book-dialog-art > p > span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
}
.book-dialog-art-1 > p {
    color: #f1eee7;
}
.book-dialog-copy {
    padding: 3px 0 8px;
    min-width: 0;
}
.book-dialog-copy .eyebrow {
    font-size: 11px;
    margin-bottom: 14px;
}
.book-dialog-copy h2 {
    font-size: 39px;
    line-height: 1.12;
    letter-spacing: -0.045em;
    margin-bottom: 18px;
}
.book-dialog-copy .book-dialog-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #7b6247;
    margin-top: -6px;
    margin-bottom: 22px;
}
.book-dialog-copy > p {
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 18px;
}
.book-dialog-copy .book-dialog-tagline {
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: -0.025em;
    font-weight: 600;
    color: #9b4f20;
    margin-bottom: 24px;
}
.book-dialog-highlights {
    padding: 23px 25px;
    border: 1px solid #e5e4dc;
    background: #f7f7f2;
    border-radius: 11px;
    margin: 25px 0 20px;
}
.book-dialog-highlights h3 {
    font-size: 18px;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}
.book-dialog-highlights ul {
    padding: 0 0 0 18px;
    margin: 0;
    color: #64695f;
    font-size: 14px;
    line-height: 1.75;
}
.book-dialog-highlights li + li {
    margin-top: 8px;
}
.book-dialog-highlights li::marker {
    color: var(--orange);
}
.book-dialog-copy .book-dialog-audience {
    font-size: 14px;
    color: #5a6253;
}
.book-dialog-purchase {
    padding-top: 23px;
    border-top: 1px solid var(--line);
    margin-top: 24px;
}
.book-dialog-purchase .button {
    font-size: 13px;
    gap: 17px;
    max-width: 100%;
    line-height: 1.5;
}
.book-dialog-purchase > p {
    font-size: 11px;
    line-height: 1.7;
    margin: 13px 0 0;
}
@media (max-width: 991px) {
    .book-dialog-grid {
        grid-template-columns: 230px minmax(0, 1fr);
        padding: 28px;
        gap: 28px;
    }
    .book-dialog-art {
        padding: 24px 18px;
    }
    .book-dialog-art img {
        height: 265px;
    }
    .book-dialog-copy h2 {
        font-size: 33px;
    }
    .book-dialog-copy .book-dialog-tagline {
        font-size: 18px;
    }
    .book-dialog-purchase .button {
        font-size: 12px;
        padding-left: 18px;
        gap: 12px;
    }
}
@media (max-width: 640px) {
    .book-dialog {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 14px;
    }
    .book-dialog-bar {
        padding: 10px 16px;
    }
    .book-dialog-bar > span {
        font-size: 9px;
    }
    .book-dialog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 23px 20px;
    }
    .book-dialog-art {
        position: static;
        padding: 25px 20px 20px;
    }
    .book-dialog-art img {
        height: 235px;
        max-width: 230px;
        margin-bottom: 16px;
    }
    .book-dialog-copy {
        padding: 0;
    }
    .book-dialog-copy h2 {
        font-size: 32px;
    }
    .book-dialog-copy .eyebrow {
        font-size: 10px;
    }
    .book-dialog-copy > p {
        font-size: 15px;
    }
    .book-dialog-copy .book-dialog-tagline {
        font-size: 19px;
    }
    .book-dialog-highlights {
        padding: 21px;
    }
    .book-dialog-purchase .button {
        font-size: 12px;
    }
    .book-card-actions .book-read-more {
        font-size: 15px;
    }
    .book-buy-link {
        font-size: 14px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .book-cover-trigger,
    .book-cover-trigger .book-cover {
        transition: none;
    }
}
