.book-page {
    background: #fffcf6;
}
.book-main {
    max-width: 1360px;
    padding: 132px 6% 90px;
    margin: auto;
}
.book-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 12px;
    color: #8a789a;
    margin: 0 0 35px;
    line-height: 1.6;
}
.book-breadcrumbs a {
    color: #654593;
}
.book-breadcrumbs a:hover {
    text-decoration: underline;
}
.book-breadcrumbs span[aria-current] {
    max-width: 630px;
    overflow-wrap: anywhere;
}
.book-hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
    align-items: start;
}
.book-gallery {
    min-width: 0;
}
.book-cover-open {
    display: grid;
    place-items: center;
    position: relative;
    width: 100%;
    min-height: 470px;
    padding: 38px;
    background: #e8e0f7;
    border-radius: 28px;
    cursor: zoom-in;
}
.book-cover-open img {
    display: block;
    max-width: 100%;
    width: auto;
    max-height: 420px;
    height: auto;
    filter: drop-shadow(0 16px 10px #3d295629);
}
.book-cover-open .zoom-hint {
    position: absolute;
    bottom: 20px;
    right: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #75599b;
    background: #fff9;
    padding: 9px 13px;
    border-radius: 30px;
}
.book-cover-missing {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 45px;
    text-align: center;
    background: #eee5fa;
    border-radius: 28px;
    color: #7e67a1;
}
.book-cover-missing > span {
    font-size: 65px;
    margin-bottom: 22px;
}
.book-cover-missing p {
    font-size: 14px;
    line-height: 1.7;
}
.book-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 17px;
}
.book-thumbnails button {
    border: 2px solid transparent;
    background: #f1eafa;
    border-radius: 12px;
    padding: 9px;
    width: 72px;
    height: 79px;
}
.book-thumbnails button[aria-pressed="true"] {
    border-color: #7250ca;
}
.book-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.book-summary .page-eyebrow {
    margin: 5px 0 22px;
}
.book-title {
    font-size: clamp(35px, 3.6vw, 57px);
    letter-spacing: -2px;
    line-height: 1.13;
    font-weight: 600;
    overflow-wrap: anywhere;
    color: #49337b;
}
.book-intro {
    font-size: 15px;
    line-height: 1.85;
    color: #69718a;
    margin-top: 24px;
    overflow-wrap: anywhere;
}
.book-intro p + p {
    margin-top: 16px;
}
.book-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 30px;
    margin: 30px 0 0;
    padding-top: 27px;
    border-top: 1px solid #e3d8e8;
}
.book-facts > div {
    min-width: 0;
}
.book-facts dt {
    font-size: 15px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #947f9d;
    margin-bottom: 9px;
}
.book-facts dd {
    font-size: 20px;
    line-height: 1.5;
    margin: 0;
    color: #57426e;
    overflow-wrap: anywhere;
}
.book-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}
.book-category-tags a {
    font-size: 11px;
    border: 1px solid #dbcce8;
    padding: 9px 13px;
    border-radius: 30px;
    color: #745594;
}
.book-category-tags a:hover {
    background: #efe5fa;
}
.book-contact {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    border-bottom: 1px solid #b5a0c7;
    margin-top: 30px;
    padding: 10px 0;
    color: #70479d;
    font-size: 18px;
}
.book-resources {
    margin-top: 65px;
    padding: 35px;
    background: #e6f2fb;
    border-radius: 22px;
}
.book-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 26px;
}
.book-section-heading h2 {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
    font-weight: 600;
}
.book-section-heading p {
    font-size: 17px;
    color: #7b7891;
}
.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
}
.resource-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 21px;
    border-radius: 14px;
    background: #fffcf6;
    color: #5f4588;
    min-height: 80px;
    line-height: 1.5;
}
.resource-link > span:first-child {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 18px;
    font-weight: 700;
}
.resource-link > span[aria-hidden] {
    font-size: 21px;
}
.resource-link:hover {
    background: #eee3fd;
}
.resource-link.resource-unavailable {
    color: #9c94a5;
    background: #f5f7fc;
}
.resource-unavailable small {
    font-size: 10px;
    font-weight: 400;
}
.book-description {
    display: grid;
    grid-template-columns: 0.55fr 1.45fr;
    gap: 70px;
    margin-top: 70px;
    padding: 52px 0;
    border-top: 1px solid #e4d9e7;
    border-bottom: 1px solid #e4d9e7;
    scroll-margin-top: 110px;
}
.book-description h2 {
    font-size: 38px;
    letter-spacing: -1px;
    font-weight: 600;
    font-family: 'Fredoka';
}
.book-rich-text {
    font-size: 20px;
    line-height: 1.85;
    color: #657089;
    min-width: 0;
    overflow-wrap: anywhere;
}
.book-rich-text p + p,
.book-rich-text p + ul,
.book-rich-text ul + p,
.book-rich-text p + ol {
    margin-top: 20px;
}
.book-rich-text ul,
.book-rich-text ol {
    padding-left: 24px;
    margin: 0;
}
.book-rich-text li {
    padding-left: 7px;
    margin-bottom: 10px;
}
.book-rich-text li::marker {
    color: #ba8232;
}
.book-rich-text strong,
.book-rich-text b {
    color: #594877;
    font-weight: 600;
}
.book-rich-text h3,
.book-rich-text h4 {
    font-size: 22px;
    color: #574375;
    line-height: 1.35;
    margin: 24px 0 15px;
}
.book-rich-text a {
    color: #7250ca;
    text-decoration: underline;
}
.book-rich-text table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
}
.book-rich-text td,
.book-rich-text th {
    border: 1px solid #d8ccdf;
    padding: 12px;
    text-align: left;
}
.book-rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
.book-related {
    margin-top: 60px;
}
.book-related .featured-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.book-related .featured-book > div {
    height: 210px;
}
.related-fallback {
    font-size: 38px;
    color: #a286ba;
}
.book-return {
    display: inline-flex;
    gap: 25px;
    padding: 15px 0;
    margin-top: 43px;
    font-size: 18px;
    color: #7250ca;
}
.book-lightbox {
    width: min(1000px, 92vw);
    max-width: 92vw;
    max-height: 92svh;
    padding: 55px 30px 25px;
    border: 0;
    border-radius: 22px;
    background: #fffaf0;
    color: #49337b;
    box-shadow: 0 25px 100px #26144750;
}
.book-lightbox::backdrop {
    background: #352550b8;
    backdrop-filter: blur(5px);
}
.book-lightbox img {
    max-width: 100%;
    max-height: 72svh;
    display: block;
    margin: auto;
    object-fit: contain;
}
.book-lightbox button {
    position: absolute;
    top: 13px;
    right: 17px;
    padding: 10px;
    font-size: 13px;
}
.book-lightbox p {
    text-align: center;
    font-size: 12px;
    margin-top: 18px;
}
.book-lightbox:not([open]) {
    display: none;
}
@media (max-width: 1100px) {
    .book-hero {
        gap: 40px;
    }
    .book-cover-open {
        min-height: 410px;
        padding: 30px;
    }
    .book-cover-open img {
        max-height: 370px;
    }
    .book-description {
        gap: 40px;
    }
    .book-related .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 800px) {
    .book-hero {
        gap: 28px;
        grid-template-columns: 0.9fr 1.1fr;
    }
    .book-title {
        font-size: 36px;
        letter-spacing: -1.4px;
    }
    .book-cover-open {
        min-height: 370px;
        padding: 22px;
    }
    .book-cover-open img {
        max-height: 310px;
    }
    .book-summary .page-eyebrow {
        font-size: 9px;
    }
    .book-intro {
        font-size: 14px;
    }
    .book-facts {
        gap: 22px 18px;
    }
    .book-description {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .book-cover-missing {
        min-height: 330px;
        padding: 30px;
    }
}
@media (max-width: 600px) {
    .book-main {
        padding: 111px 6% 60px;
    }
    .book-breadcrumbs {
        font-size: 10px;
        gap: 8px 11px;
        margin-bottom: 26px;
    }
    .book-breadcrumbs span[aria-current] {
        display: none;
    }
    .book-breadcrumbs > span[aria-hidden]:nth-last-child(2) {
        display: none;
    }
    .book-hero {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .book-cover-open {
        min-height: 340px;
        padding: 28px 28px 55px;
        border-radius: 22px;
    }
    .book-cover-open img {
        max-height: 320px;
    }
    .book-title {
        font-size: 37px;
        letter-spacing: -1.5px;
        line-height: 1.12;
    }
    .book-summary .page-eyebrow {
        margin: 0 0 17px;
    }
    .book-intro {
        font-size: 14px;
        margin-top: 21px;
    }
    .book-facts {
        margin-top: 25px;
        padding-top: 25px;
        gap: 23px;
    }
    .book-facts dd {
        font-size: 14px;
    }
    .book-facts dt {
        font-size: 9px;
    }
    .book-resources {
        padding: 25px;
        margin-top: 40px;
    }
    .book-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 23px;
    }
    .book-section-heading h2 {
        font-size: 27px;
    }
    .resource-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }
    .resource-link {
        min-height: 71px;
        padding: 17px;
    }
    .book-description {
        margin-top: 42px;
        padding: 35px 0;
        gap: 22px;
    }
    .book-description h2 {
        font-size: 27px;
    }
    .book-rich-text {
        font-size: 14px;
    }
    .book-related {
        margin-top: 40px;
    }
    .book-related .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 17px;
    }
    .book-related .featured-book > div {
        height: 190px;
    }
    .book-related .featured-book h3 {
        font-size: 12px;
    }
    .book-lightbox {
        padding: 54px 18px 22px;
    }
    .book-cover-missing {
        min-height: 310px;
    }
    .book-return {
        margin-top: 31px;
    }
}
