﻿:root {
    --book-bg: #f6f1e7;
    --book-paper: #fffdf8;
    --book-paper-alt: #f8f2e6;
    --book-ink: #1e1711;
    --book-muted: #695847;
    --book-gold: #d2a43f;
    --book-gold-dark: #9d7a2f;
    --book-edge: #e8dcc9;
    --book-shadow: rgba(29, 18, 8, 0.28);
    --book-accent: #5f4634;
    --book-line: rgba(95, 70, 52, 0.2);
}

body.book-layout {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 10%, rgba(210, 164, 63, 0.18), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(95, 70, 52, 0.12), transparent 34%),
        linear-gradient(140deg, #f6f1e7 0%, #ede1cf 52%, #f9f3ea 100%);
    color: var(--book-ink);
}

body.book-layout::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        130deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.05) 18px,
        rgba(220, 206, 188, 0.05) 18px,
        rgba(220, 206, 188, 0.05) 36px
    );
    z-index: -1;
}

.book-btn {
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.55rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.book-btn.primary {
    background: linear-gradient(135deg, var(--book-gold-dark), var(--book-gold));
    color: #140f0a;
    box-shadow: 0 11px 28px rgba(157, 122, 47, 0.28);
}

.book-btn.secondary {
    background: #1f1711;
    color: #fff7ee;
    box-shadow: 0 10px 24px rgba(16, 10, 4, 0.22);
}

.book-btn.ghost {
    background: transparent;
    border: 2px solid rgba(30, 23, 17, 0.26);
    color: var(--book-ink);
}

.book-btn:hover {
    transform: translateY(-2px);
}

.book-btn.primary:hover {
    box-shadow: 0 14px 32px rgba(157, 122, 47, 0.35);
}

.book-btn.secondary:hover {
    box-shadow: 0 14px 32px rgba(16, 10, 4, 0.3);
}

.book-btn.ghost:hover {
    border-color: rgba(30, 23, 17, 0.45);
    background: rgba(255, 255, 255, 0.45);
}

.book-reader {
    margin-top: 96px;
    padding: 1.5rem 0 3.5rem;
}

.book-simple-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
    color: var(--book-ink);
    letter-spacing: 0.01em;
}

.book-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}

.book-stage {
    position: relative;
    margin-top: 1rem;
    padding: 0 4.2rem;
}

.book-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    z-index: 12;
    margin-top: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.book-nav-arrow {
    width: 56px;
    height: 44px;
    border: 1px solid rgba(157, 122, 47, 0.38);
    border-radius: 999px;
    background: linear-gradient(135deg, #fffaf1, #e6c979);
    color: #24180e;
    font-size: 2.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(40, 22, 6, 0.22);
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
    font-family: 'Montserrat', sans-serif;
}

.book-nav-arrow:hover {
    box-shadow: 0 18px 36px rgba(40, 22, 6, 0.28);
    transform: translateY(-2px);
}

.book-nav-arrow:disabled {
    opacity: 0.34;
    cursor: not-allowed;
    transform: none;
}

.book-shell {
    position: relative;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(236, 222, 198, 0.78), rgba(211, 190, 156, 0.68));
    padding: 1rem;
    box-shadow: 0 22px 42px rgba(40, 22, 6, 0.22);
    perspective: 1800px;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
}

.book-spread {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(95, 70, 52, 0.25);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
    transition: transform 240ms ease, box-shadow 240ms ease;
    transform-style: preserve-3d;
}

.book-spread.single-page {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    margin: 0 auto;
}

.book-spread.single-page::before {
    display: none;
}

.book-page.is-empty-page {
    display: none;
}


.book-spread::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(54px, calc(var(--curl-progress, 0) * 24%), 190px);
    opacity: 0;
    pointer-events: none;
    z-index: 4;
    transition: opacity 160ms ease;
}

.book-shell:active {
    cursor: grabbing;
}

.book-shell.dragging .book-spread {
    transition: none;
}

.book-shell.turning .book-spread {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.38),
        0 20px 36px rgba(30, 16, 6, 0.28);
}

.book-shell.drag-next .book-spread::after,
.book-shell.turn-next .book-spread::after {
    right: 0;
    opacity: calc(0.14 + (var(--curl-progress, 0) * 0.72));
    background:
        linear-gradient(
            270deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(245, 233, 212, 0.9) 42%,
            rgba(176, 142, 96, 0.26) 70%,
            rgba(24, 14, 8, 0) 100%
        );
    box-shadow: -24px 0 26px rgba(43, 25, 10, 0.28);
    transform-origin: right center;
    transform: perspective(1700px) rotateY(calc(var(--curl-progress, 0) * -42deg));
}

.book-shell.drag-prev .book-spread::after,
.book-shell.turn-prev .book-spread::after {
    left: 0;
    opacity: calc(0.14 + (var(--curl-progress, 0) * 0.72));
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(245, 233, 212, 0.9) 42%,
            rgba(176, 142, 96, 0.26) 70%,
            rgba(24, 14, 8, 0) 100%
        );
    box-shadow: 24px 0 26px rgba(43, 25, 10, 0.28);
    transform-origin: left center;
    transform: perspective(1700px) rotateY(calc(var(--curl-progress, 0) * 42deg));
}

.book-shell.turn-next .book-spread {
    animation: pageTurnNext 440ms cubic-bezier(0.2, 0.7, 0.16, 1);
}

.book-shell.turn-prev .book-spread {
    animation: pageTurnPrev 440ms cubic-bezier(0.2, 0.7, 0.16, 1);
}

@keyframes pageTurnNext {
    0% { transform: perspective(1800px) rotateY(0deg) translateX(0); }
    45% { transform: perspective(1800px) rotateY(-11deg) translateX(-10px) skewY(-0.7deg); }
    100% { transform: perspective(1800px) rotateY(0deg) translateX(0); }
}

@keyframes pageTurnPrev {
    0% { transform: perspective(1800px) rotateY(0deg) translateX(0); }
    45% { transform: perspective(1800px) rotateY(11deg) translateX(10px) skewY(0.7deg); }
    100% { transform: perspective(1800px) rotateY(0deg) translateX(0); }
}

.book-spread::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 42px;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(49, 32, 18, 0.28), rgba(49, 32, 18, 0.04) 44%, rgba(255, 255, 255, 0.36) 50%, rgba(49, 32, 18, 0.04) 56%, rgba(49, 32, 18, 0.28));
    pointer-events: none;
    z-index: 3;
}


.book-page {
    position: relative;
    padding: 1.45rem 1.35rem 1.7rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(180deg, var(--book-paper) 0%, #f8f2e5 100%);
}

.book-page.right {
    background: linear-gradient(180deg, #fffefa 0%, #f4ecdd 100%);
}


.page-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--book-muted);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.page-label strong {
    color: var(--book-gold-dark);
    font-weight: 700;
}

.page-course-list {
    display: grid;
    gap: 1rem;
}

.book-course-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(95, 70, 52, 0.19);
    border-radius: 14px;
    padding: 0.8rem;
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 0.85rem;
    align-items: stretch;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.book-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(34, 20, 8, 0.16);
}

.book-course-image {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    background: #ebdcc2;
}

.book-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-course-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1.01rem;
    line-height: 1.35;
    color: var(--book-ink);
    font-weight: 700;
}

.book-course-body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.book-course-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.55rem;
}

.book-info-item {
    border: 1px solid rgba(95, 70, 52, 0.15);
    border-radius: 8px;
    background: rgba(245, 237, 224, 0.72);
    padding: 0.34rem 0.5rem;
}

.book-info-item span {
    display: block;
    font-size: 0.66rem;
    color: #6f5b47;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.12rem;
}

.book-info-item strong {
    font-size: 0.79rem;
    color: #22170e;
    font-weight: 700;
}

.book-course-desc {
    margin: 0;
    color: #534234;
    font-size: 0.89rem;
    line-height: 1.63;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-course-footer {
    margin-top: 0.55rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.book-price {
    color: #23160d;
    font-weight: 700;
    font-size: 0.91rem;
}

.book-feature-page {
    display: grid;
    grid-template-rows: 150px 1fr;
    min-height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(248,240,226,0.95));
    border: 1px solid rgba(95, 70, 52, 0.18);
    box-shadow: 0 16px 30px rgba(28, 17, 8, 0.1);
}

.book-feature-media {
    position: relative;
    overflow: hidden;
    background: #ead7b4;
}

.book-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-feature-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(18, 11, 7, 0.48), rgba(18, 11, 7, 0.02) 60%);
}

.book-feature-category,
.book-feature-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.4rem 0.72rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.book-feature-category {
    background: rgba(255, 248, 235, 0.9);
    color: #563d27;
}

.book-feature-badge {
    background: rgba(210, 164, 63, 0.92);
    color: #1c140d;
}

.book-feature-copy {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1rem 1.1rem;
}

.book-feature-kicker {
    color: var(--book-gold-dark);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.book-feature-copy h2 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.28rem;
    line-height: 1.15;
    color: var(--book-ink);
}

.book-feature-summary {
    margin: 0;
    color: #4f3f30;
    font-size: 0.84rem;
    line-height: 1.58;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-category-banner {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0.62rem 0.72rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248, 240, 226, 0.96), rgba(255,255,255,0.88));
    border: 1px solid rgba(95, 70, 52, 0.14);
}

.book-category-banner-label {
    color: #826854;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.book-category-banner strong {
    color: #2d2117;
    font-size: 1rem;
    line-height: 1.45;
}

.book-feature-columns {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 0.65rem;
}

.book-feature-block {
    border: 1px solid rgba(95, 70, 52, 0.14);
    border-radius: 14px;
    background: rgba(255,255,255,0.7);
    padding: 0.72rem;
}

.book-feature-block h3,
.book-programme-strip h3 {
    margin: 0 0 0.55rem;
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #735741;
}

.book-feature-block ul,
.book-programme-strip ol {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.6rem;
}

.book-feature-block li,
.book-programme-strip li {
    color: #453526;
    font-size: 0.78rem;
    line-height: 1.45;
}

.book-programme-strip ol {
    list-style: none;
    counter-reset: programme-step;
    padding-left: 0;
    gap: 0.55rem;
}

.book-programme-strip li {
    counter-increment: programme-step;
    display: grid;
    grid-template-columns: 1.9rem minmax(0, 1fr);
    gap: 0.45rem;
    align-items: start;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: normal;
}

.book-programme-strip li::before {
    content: counter(programme-step) ".";
    color: #735741;
    font-weight: 700;
    text-align: right;
}

.book-feature-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.book-feature-note {
    border: 1px solid rgba(95, 70, 52, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
    padding: 0.62rem 0.7rem;
}

.book-feature-note-wide {
    grid-column: 1 / -1;
}

.book-feature-note span {
    display: block;
    color: #826854;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.18rem;
}

.book-feature-note strong {
    color: #2e2115;
    font-size: 0.74rem;
    line-height: 1.38;
}

.book-programme-strip {
    border-radius: 14px;
    border: 1px solid rgba(95, 70, 52, 0.14);
    background: linear-gradient(180deg, rgba(245, 236, 220, 0.7), rgba(255,255,255,0.74));
    padding: 0.72rem;
}

.book-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--book-gold-dark), var(--book-gold));
    color: #1c140d;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(157, 122, 47, 0.22);
}

.book-course-footer,
.book-page-link {
    display: none !important;
}


.book-gesture-row {
    margin-top: 1rem;
    display: grid;
    gap: 0.35rem;
    justify-items: center;
}

.book-indicator {
    font-weight: 600;
    color: #4e3b2d;
    min-width: 170px;
    text-align: center;
}

.book-gesture-hint {
    color: #6a5644;
    font-size: 0.87rem;
    text-align: center;
}

.book-drag-action {
    color: #2e2116;
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(255, 250, 241, 0.88);
    border: 1px solid rgba(95, 70, 52, 0.25);
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
}

.book-drag-action.hidden {
    display: none;
}

.book-empty {
    margin-top: 1.1rem;
    border: 1px dashed rgba(95, 70, 52, 0.4);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    color: #5f4b39;
    background: rgba(255, 255, 255, 0.7);
}

.book-empty.hidden {
    display: none;
}

.book-note {
    margin-top: 1rem;
    color: #5d4938;
    font-size: 0.92rem;
    text-align: center;
}

.print-catalogue {
    display: none;
    margin: 0;
    padding: 0;
}

.print-catalogue.is-generating-pdf {
    display: block !important;
    position: relative;
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    background: #fff;
    color: #1d140e;
    z-index: 1;
}

.print-sheet {
    page-break-after: always;
    padding: 0.9cm;
    border: 1px solid #d2c2ab;
    border-radius: 12px;
    margin-bottom: 0.5cm;
    background: #fff;
}

.print-sheet:last-child {
    page-break-after: auto;
}

.print-header {
    border-bottom: 2px solid #8b6c2f;
    padding-bottom: 0.28cm;
    margin-bottom: 0.35cm;
}

.print-header h2 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 20pt;
    color: #20160f;
}

.print-meta {
    margin-top: 0.18cm;
    color: #5c4a39;
    font-size: 9.5pt;
}

.print-category {
    margin-top: 0.14cm;
    color: #8b6c2f;
    font-size: 10pt;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.print-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.32cm;
}

.print-card {
    border: 1px solid #d8cab4;
    border-left: 5px solid #9d7a2f;
    border-radius: 10px;
    padding: 0.26cm 0.28cm;
    break-inside: avoid;
    background: #fffdf9;
}

.print-card-head {
    display: grid;
    grid-template-columns: 2.6cm 1fr;
    gap: 0.25cm;
    align-items: start;
}

.print-card-image-wrap {
    width: 2.6cm;
    height: 2.2cm;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #deceb6;
    background: #f2e5d1;
}

.print-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.print-card-content h3 {
    margin: 0 0 0.12cm;
    font-size: 12pt;
    color: #1d140e;
}

.print-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.1cm 0.26cm;
    margin-bottom: 0.12cm;
}

.print-inline {
    margin: 0;
    border: 1px solid #e3d5c0;
    border-radius: 6px;
    background: #fdf7ed;
    padding: 0.08cm 0.12cm;
    font-size: 8.6pt;
    color: #3f2f22;
}

.print-inline span {
    display: inline-block;
    color: #71573f;
    margin-right: 0.15cm;
}

.print-inline strong {
    color: #21160f;
}

.print-inline-full {
    grid-column: 1 / -1;
}

.print-desc {
    margin: 0.14cm 0 0;
    font-size: 9pt;
    color: #433324;
    line-height: 1.48;
    white-space: pre-line;
}

@media (max-width: 1150px) {
}

@media (max-width: 980px) {
    body.book-layout {
        overflow-x: hidden;
    }

    .book-shell {
        padding: 1rem;
    }

    .book-stage {
        padding: 0 3rem;
    }

    .book-spread {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .book-spread::before {
        display: none;
    }

    .book-page {
        padding: 1.65rem 1.2rem 2rem;
        min-width: 0;
    }

    .book-page.right {
        border-top: 1px dashed rgba(95, 70, 52, 0.25);
    }

    .book-feature-columns,
    .book-feature-aside {
        grid-template-columns: 1fr;
    }

    .book-feature-page {
        grid-template-rows: 190px 1fr;
    }
}

@media (max-width: 760px) {
    body.book-layout {
        background: linear-gradient(180deg, #f7efe2 0%, #eadcc8 100%);
    }

    .book-reader {
        margin-top: 78px;
        padding: 0.85rem 0 2.4rem;
    }

    .book-reader .container {
        width: 100%;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .book-title-row {
        align-items: stretch;
        gap: 0.7rem;
        margin-bottom: 0.75rem;
    }

    .book-simple-title {
        font-size: 1.55rem;
        line-height: 1.15;
    }

    .book-stage {
        margin-top: 0.7rem;
        padding: 0 2.15rem;
    }

    .book-shell {
        border-radius: 18px;
        padding: 0.55rem;
        background:
            linear-gradient(90deg, rgba(77,48,25,0.26), rgba(255,255,255,0.34) 11%, transparent 18%, transparent 82%, rgba(84,52,25,0.2)),
            linear-gradient(180deg, rgba(236, 222, 198, 0.92), rgba(199, 174, 136, 0.82));
        box-shadow: 0 16px 30px rgba(40, 22, 6, 0.23);
        cursor: default;
    }

    .book-spread {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        min-height: 320px;
        border-radius: 13px;
        border-color: rgba(95, 70, 52, 0.16);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.42);
        gap: 0;
        background: #fbf4e7;
        overflow: hidden;
    }

    .book-spread::before {
        display: block;
        width: 22px;
        background: linear-gradient(90deg, rgba(49,32,18,0.24), rgba(49,32,18,0.02) 45%, rgba(255,255,255,0.35) 50%, rgba(49,32,18,0.02) 55%, rgba(49,32,18,0.24));
    }

    .book-page {
        border-radius: 0;
        padding: 0.36rem;
        gap: 0.3rem;
        background: linear-gradient(180deg, #fffdf8 0%, #f8f0e2 100%);
        border: 0;
        box-shadow: none;
    }

    .book-page.right {
        border-top: 0;
        border-left: 1px solid rgba(95, 70, 52, 0.12);
    }

    .page-label {
        gap: 0.45rem;
        align-items: flex-start;
        flex-wrap: wrap;
        font-size: 0.5rem;
        line-height: 1.35;
    }

    .page-label span,
    .page-label strong {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .book-feature-page {
        grid-template-rows: 82px 1fr;
        border-radius: 8px;
        box-shadow: none;
    }

    .book-feature-overlay {
        padding: 0.42rem;
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .book-feature-category,
    .book-feature-badge {
        max-width: 100%;
        padding: 0.28rem 0.42rem;
        font-size: 0.5rem;
        letter-spacing: 0.05em;
        overflow-wrap: anywhere;
    }

    .book-feature-copy {
        padding: 0.42rem;
        gap: 0.32rem;
    }

    .book-feature-kicker {
        display: none;
    }

    .book-category-banner {
        display: none;
    }

    .book-category-banner,
    .book-feature-block,
    .book-feature-note,
    .book-programme-strip {
        border-radius: 8px;
        padding: 0.5rem;
    }

    .book-feature-copy h2 {
        font-size: 0.76rem;
        line-height: 1.22;
        overflow-wrap: anywhere;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .book-feature-summary {
        font-size: 0.62rem;
        line-height: 1.38;
        -webkit-line-clamp: 3;
    }

    .book-feature-aside,
    .book-programme-strip {
        display: none;
    }

    .book-feature-columns {
        display: block;
    }

    .book-feature-block:first-child {
        display: none;
    }

    .book-feature-block {
        margin-top: 0;
        padding: 0.3rem;
        border-radius: 8px;
    }

    .book-feature-block h3 {
        font-size: 0.5rem;
        margin-bottom: 0.35rem;
    }

    .book-course-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.16rem;
        margin-bottom: 0;
    }

    .book-info-item {
        padding: 0.2rem 0.28rem;
        border-radius: 7px;
    }

    .book-info-item span {
        font-size: 0.46rem;
        margin-bottom: 0.06rem;
    }

    .book-info-item strong {
        font-size: 0.58rem;
        line-height: 1.25;
    }

    .book-feature-kicker {
        line-height: 1.45;
        letter-spacing: 0.07em;
    }

    .book-feature-columns,
    .book-feature-aside {
        gap: 0.65rem;
    }

    .book-course-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.28rem;
    }

    .book-info-item {
        padding: 0.3rem 0.36rem;
    }

    .book-info-item strong,
    .book-feature-note strong {
        overflow-wrap: anywhere;
    }

    .book-feature-block ul,
    .book-programme-strip ol {
        gap: 0.48rem;
    }

    .book-feature-block li,
    .book-programme-strip li {
        font-size: 0.58rem;
        line-height: 1.32;
    }

    .book-programme-strip li {
        grid-template-columns: 1.45rem minmax(0, 1fr);
        gap: 0.38rem;
    }

    .book-nav-row {
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
    }

    .book-nav-arrow {
        width: 34px;
        height: 40px;
        font-size: 1.55rem;
        border-radius: 999px;
        box-shadow: 0 8px 18px rgba(40, 22, 6, 0.18);
    }

    .book-gesture-row {
        margin-top: 0.65rem;
        gap: 0.25rem;
    }

    .book-indicator,
    .book-gesture-hint,
    .book-drag-action {
        font-size: 0.76rem;
        line-height: 1.45;
    }

    .book-gesture-hint {
        display: none;
    }
}

@media (max-width: 620px) {
    .book-reader {
        margin-top: 82px;
        padding-top: 1rem;
    }

    .book-course-meta-grid {
        grid-template-columns: 1fr;
    }

    .book-feature-page {
        grid-template-rows: 76px 1fr;
    }

    .book-feature-copy {
        padding: 0.38rem;
    }

    .book-feature-copy h2 {
        font-size: 0.72rem;
    }

    .book-feature-summary,
    .book-feature-block li,
    .book-programme-strip li {
        font-size: 0.6rem;
    }

    .book-indicator {
        width: 100%;
    }

    .book-title-row .book-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .book-reader .container {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .book-stage {
        padding: 0 1.7rem;
    }

    .book-shell {
        margin-left: 0;
        margin-right: 0;
        padding: 0.42rem;
        border-radius: 13px;
    }

    .book-page {
        padding: 0.28rem;
    }

    .book-feature-page {
        grid-template-rows: 68px 1fr;
    }

    .book-feature-copy {
        padding: 0.32rem;
    }

    .book-feature-copy h2 {
        font-size: 0.66rem;
    }

    .book-category-banner strong {
        font-size: 0.76rem;
    }

    .book-course-meta-grid {
        grid-template-columns: 1fr;
    }

    .book-info-item span,
    .book-feature-note span {
        font-size: 0.58rem;
    }

    .book-info-item strong,
    .book-feature-note strong,
    .book-feature-block li,
    .book-programme-strip li {
        font-size: 0.58rem;
    }

    .book-feature-block h3,
    .book-programme-strip h3 {
        font-size: 0.72rem;
        letter-spacing: 0.06em;
    }

    .book-programme-strip li {
        grid-template-columns: 1.25rem minmax(0, 1fr);
    }

    .book-btn {
        padding: 0.62rem 0.85rem;
        font-size: 0.78rem;
    }

    .book-nav-arrow {
        width: 30px;
        height: 36px;
        font-size: 1.35rem;
    }
}

@media (max-width: 760px) {
    .book-layout .book-spread {
        min-height: 335px;
        border-radius: 16px;
    }

    .book-layout .book-page {
        padding: 0.42rem;
        background:
            linear-gradient(90deg, rgba(126,91,52,0.08), transparent 14%),
            linear-gradient(180deg, #fffdf8 0%, #f8f0e2 100%);
    }

    .book-layout .page-label {
        justify-content: flex-end;
        min-height: 0;
        margin-bottom: -0.12rem;
    }

    .book-layout .page-label span {
        display: none;
    }

    .book-layout .page-label strong {
        padding: 0.16rem 0.38rem;
        border-radius: 999px;
        background: rgba(157,122,47,0.12);
        color: #7d5c22;
        font-size: 0.48rem;
        letter-spacing: 0.08em;
    }

    .book-layout .book-feature-page {
        grid-template-rows: 82px 1fr;
        border-radius: 11px;
        background: rgba(255,255,255,0.72);
        border-color: rgba(126,91,52,0.16);
        overflow: hidden;
    }

    .book-layout .book-feature-media::after {
        content: '';
        position: absolute;
        inset: auto 0 0;
        height: 42%;
        background: linear-gradient(180deg, transparent, rgba(18,11,7,0.36));
        pointer-events: none;
    }

    .book-layout .book-feature-category,
    .book-layout .book-feature-badge {
        font-size: 0.45rem;
        padding: 0.22rem 0.36rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    }

    .book-layout .book-feature-copy {
        padding: 0.45rem;
        gap: 0.3rem;
    }

    .book-layout .book-feature-copy h2 {
        font-size: 0.72rem;
        line-height: 1.16;
        -webkit-line-clamp: 2;
    }

    .book-layout .book-feature-summary {
        display: -webkit-box;
        font-size: 0.58rem;
        line-height: 1.34;
        -webkit-line-clamp: 2;
    }

    .book-layout .book-feature-columns {
        display: block;
    }

    .book-layout .book-feature-block:first-child,
    .book-layout .book-feature-aside,
    .book-layout .book-programme-strip {
        display: none;
    }

    .book-layout .book-course-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.18rem;
    }

    .book-layout .book-info-item {
        padding: 0.24rem 0.28rem;
        border-radius: 8px;
        background: rgba(255,250,241,0.82);
        border-color: rgba(126,91,52,0.12);
    }

    .book-layout .book-info-item span {
        font-size: 0.4rem;
        letter-spacing: 0.05em;
    }

    .book-layout .book-info-item strong {
        font-size: 0.48rem;
        line-height: 1.25;
    }

    .book-layout .book-feature-block {
        padding: 0.3rem;
        margin-top: 0.04rem;
        background: rgba(255,255,255,0.52);
    }

    .book-layout .book-feature-block h3 {
        margin-bottom: 0.24rem;
        color: #8a6a34;
        font-size: 0.48rem;
        letter-spacing: 0.07em;
    }
}

@media print {
    @page {
        margin: 10mm;
    }

    body.book-layout {
        background: #fff;
    }

    body.book-layout::before {
        display: none;
    }

    .screen-only,
    .navbar,
    .footer,
    .chatbot-container,
    .chatbot-toggle {
        display: none !important;
    }

    .print-catalogue {
        display: block !important;
    }

    .print-sheet:first-child {
        page-break-before: avoid;
    }
}

body.book-layout.book-print-mode {
    background: #fff;
}

body.book-layout.book-print-mode::before {
    display: none;
}

body.book-layout.book-print-mode .screen-only,
body.book-layout.book-print-mode .navbar,
body.book-layout.book-print-mode .footer,
body.book-layout.book-print-mode .chatbot-container,
body.book-layout.book-print-mode .chatbot-toggle {
    display: none !important;
}

body.book-layout.book-print-mode .print-catalogue {
    display: block !important;
}
