/* ==========================================================================
   TETON WAGON TRAIN & HORSE ADVENTURE - ABOUT / HISTORY BOOK STYLESHEET
   turnjs4 Book Experience & Frontier Chronicle Design (about.css)
   ========================================================================== */

.heading-hero {
    background-image: linear-gradient(rgba(27, 59, 43, 0.70), rgba(27, 59, 43, 0.76)), url('../images/history/IMG_5201.webp');
}

/* --------------------------------------------------------------------------
   1. BOOK STAGE & ENVIRONMENT
   -------------------------------------------------------------------------- */

.book-reading-environment {
    width: 100%;
    min-height: calc(100vh - 160px);
    /* background: 
        radial-gradient(ellipse at 50% 25%, rgba(255, 235, 190, 0.14) 0%, rgba(35, 22, 12, 0.85) 60%, rgba(14, 9, 5, 0.98) 100%),
        linear-gradient(180deg, #1d120a 0%, #120b06 100%); */
    background: transparent;
    padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-2xl) var(--spacing-sm);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow-x: hidden;
}

/* Ambient Overhead Lamp Glow */
.book-reading-environment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    height: 380px;
    background: radial-gradient(ellipse at 50% 0%, rgba(240, 200, 140, 0.22) 0%, rgba(240, 200, 140, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

/* Instructions Banner */
.book-hint-bar {
    position: relative;
    z-index: 5;
    margin-bottom: var(--spacing-md);
    padding: 0.5rem 1.4rem;
    background: rgba(30, 18, 10, 0.75);
    border: 1px solid rgba(194, 155, 56, 0.35);
    border-radius: 30px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: #e8d7be;
    text-align: center;
    animation: fadeInDown 0.8s ease;
}

.book-hint-icon {
    font-size: 1.15rem;
    color: #dfb15b;
}

/* Main Book Desk Stage */
.book-desk-stage {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--spacing-sm) auto var(--spacing-lg) auto;
    width: 100%;
    max-width: 1180px;
    min-height: 660px;
    user-select: none;
    margin: var(--spacing-2xl);
    /* background: rgba(255, 235, 190, 0.14); */
}

/* Deep 3D Table Shadow Beneath Book */
.book-table-shadow {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    height: 50px;
    background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 75%);
    pointer-events: none;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   2. FLOATING NAVIGATION PADDLES
   -------------------------------------------------------------------------- */

.book-paddle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 52px;
    height: 64px;
    background: rgba(35, 20, 10, 0.85);
    border: 1px solid rgba(212, 163, 89, 0.45);
    border-radius: 8px;
    color: #e5c386;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.book-paddle:hover:not(.disabled) {
    background: rgba(65, 38, 20, 0.95);
    border-color: #dfb15b;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(223, 177, 91, 0.25), inset 0 0 15px rgba(212, 163, 89, 0.25);
    transform: translateY(-50%) scale(1.08);
}

.book-paddle:active:not(.disabled) {
    transform: translateY(-50%) scale(0.96);
}

.book-paddle.disabled,
.book-paddle[disabled] {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

.book-paddle-prev {
    left: 10px;
}

.book-paddle-next {
    right: 10px;
}

.book-paddle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

/* --------------------------------------------------------------------------
   3. TURN.JS FLIPBOOK CONTAINER & GENERAL PAGES
   -------------------------------------------------------------------------- */

#about-book {
    position: relative;
    margin: 0 auto;
    transform-origin: center center;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.85),
        0 10px 25px rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    transition: box-shadow 0.3s ease;
    background:rgba(255, 235, 190, 0.14);
}

/* Individual Book Pages */
#about-book .page {
    box-sizing: border-box;
    overflow: stretch;
    background-color: #291208;
    background-size: cover;
    background-repeat: no-repeat;
}

#about-book .even{
    background-image: var(--parchment-img-page);
    background-position: left center;
}

@media (max-width: 767px) {
    #about-book .even{
        background-image: var(--parchment-img-page-odd);
        background-position: right center;
    }
}

#about-book .odd{
    background-image: var(--parchment-img-page-odd);
    background-position: right center;
}

/* Realistic Spine / Gutter Shadows inside the spread */
#about-book .even .book-spine-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(45, 28, 15, 0.08) 50%, rgba(20, 10, 5, 0.3) 100%);
    pointer-events: none;
    z-index: 10;
}

#about-book .odd .book-spine-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(45, 28, 15, 0.08) 50%, rgba(20, 10, 5, 0.3) 100%);
    pointer-events: none;
    z-index: 10;
}

/* Turn.js shadows */
#about-book .shadow {
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6) !important;
}

/* --------------------------------------------------------------------------
   4. HARD LEATHER COVERS (FRONT & BACK)
   -------------------------------------------------------------------------- */

.hard {
    background-color: #2b180d !important;
    background-image:
        radial-gradient(circle at 50% 30%, rgba(138, 77, 39, 0.35) 0%, rgba(25, 12, 6, 0.9) 100%),
        url('../images/theme/Aged Chestnut Leather Texture.png') !important;
    background-size: cover !important;
    background-position: center !important;
    border: 2px solid #5a361c;
    border-radius: 4px;
    color: #e5cb9b;
    position: relative;
    box-shadow:
        inset 0 0 35px rgba(0, 0, 0, 0.8),
        inset 0 0 10px rgba(223, 177, 91, 0.3) !important;
}

/* Front Cover Layout */
.book-cover-front {
    height: 100%;
    padding: 2.2rem 1.8rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Gold Tooled Leather Perimeter Inset */
.cover-tooling-border {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 14px;
    right: 14px;
    border: 2px solid rgba(212, 163, 89, 0.55);
    outline: 1px dashed rgba(212, 163, 89, 0.35);
    outline-offset: -7px;
    border-radius: 4px;
    pointer-events: none;
}

/* Antique Corner Filigree Brackets */
.corner-bracket {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: #dfb15b;
    border-style: solid;
    pointer-events: none;
}

.corner-tl { top: 20px; left: 20px; border-width: 3px 0 0 3px; }
.corner-tr { top: 20px; right: 20px; border-width: 3px 3px 0 0; }
.corner-bl { bottom: 20px; left: 20px; border-width: 0 0 3px 3px; }
.corner-br { bottom: 20px; right: 20px; border-width: 0 3px 3px 0; }

/* Front Cover Titles */
.cover-header-brand {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.82rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #dfb15b;
    margin-top: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.cover-main-img img{
    width: 70%;
    margin: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.8));
}

.cover-emblem-svg {
    width: 82px;
    height: 82px;
    fill: #dfb15b;
}

.cover-book-title {
    font-weight: bold; /* it was an h1; kept looking the same as plain text */
    font-family: 'Rye', Georgia, serif;
    font-size: 2.1rem;
    line-height: 1.22;
    color: #f7e3ba;
    letter-spacing: 1px;
    margin: 0.5rem 0;
    text-shadow:
        0 2px 1px rgba(255, 255, 255, 0.2),
        0 -1px 2px rgba(0, 0, 0, 0.9),
        0 4px 10px rgba(0, 0, 0, 0.9);
}

.cover-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: #d1b179;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.cover-divider {
    width: 140px;
    height: 2px;
    background: linear-gradient(to right, transparent, #dfb15b, transparent);
    margin: 0.6rem auto;
}

.cover-footer-meta {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.78rem;
    color: #bda072;
    letter-spacing: 1.5px;
    margin-bottom: 0.4rem;
}

/* Interactive Clasp / Corner Peel Callout */
.cover-open-prompt {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: rgba(15, 8, 4, 0.65);
    border: 1px solid rgba(223, 177, 91, 0.5);
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #f7e3ba;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    animation: pulseCoverPrompt 2.5s infinite;
}

/* --------------------------------------------------------------------------
   5. INTERIOR PARCHMENT PAGE CONTENT & TYPOGRAPHY
   -------------------------------------------------------------------------- */

.book-page-inner {
    height: 100%;
    padding: 1.35rem 2.2rem 1.15rem 2.2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.inside-cover-back{
    box-sizing: border-box;
    overflow: stretch;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: var(--parchment-img-page-odd);
    background-position: right center;
}

.inside-cover-front{
    box-sizing: border-box;
    overflow: stretch;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: var(--parchment-img-page);
    background-position: left center;
}

@media (max-width: 770px) {

    .mobile-page,
    .inside-cover-front {
        box-sizing: border-box;
        overflow: stretch;
        background-size: cover;
        background-repeat: no-repeat;
        background-image: var(--parchment-img-page-odd);
        background-position: right center;
    }
}

/* Archival Running Header */
.page-archival-header {
    border-bottom: 1px solid rgba(110, 70, 35, 0.3);
    padding-bottom: 0.25rem;
    margin-bottom: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.68rem;
    color: #7a502e;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Chapter Headings */
.chapter-title {
    font-family: 'Rye', Georgia, serif;
    font-size: 1.25rem;
    color: #4a2d18;
    margin-top: 5px;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.5px;
    line-height: 1.22;
}

.chapter-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.74rem;
    color: #8c5b32;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

/* Paragraph Content */
.page-body-text {
    font-family: 'Montserrat', Georgia, serif;
    font-size: 0.81rem;
    line-height: 1.48;
    color: #2e1e12;
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(2px 2px 10px #ffffff);
}

/* Ornate Dropped Capital */
.dropcap::first-letter {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2.6rem;
    float: left;
    line-height: 0.82;
    padding-right: 7px;
    padding-top: 3px;
    color: #8b2512;
    font-weight: 700;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
}

/* Archival Photo Frames */
.archival-figure {
    margin: 0.3rem auto 0.4rem auto;
    text-align: center;
}

.archival-photo-wrap {
    display: inline-block;
    padding: 4px;
    background: #e9dec9;
    border: 1px solid #9c784f;
    border-radius: 3px;
    box-shadow:
        0 3px 10px rgba(45, 30, 15, 0.22),
        inset 0 0 5px rgba(0, 0, 0, 0.12);
}

.archival-img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 130px;
    object-fit: cover;
    border-radius: 2px;
    filter: sepia(0.2) contrast(1.05);
}

#short {
    display: block;
    max-width: 100%;
    height: 5.5rem;
    max-height: 130px;
    object-fit: cover;
    border-radius: 2px;
    filter: sepia(0.2) contrast(1.05);
}

.archival-caption {
    margin-top: 0.25rem;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-style: italic;
    color: #68482d;
    line-height: 1.25;
}

/* Timeline & Dedication List */
.bookplate-dedication {
    border: 2px solid rgba(138, 98, 55, 0.35);
    background: rgba(255, 255, 255, 0.3);
    padding: 0.9rem 1rem;
    border-radius: 4px;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.bookplate-quote {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.95rem;
    font-style: italic;
    color: #53341b;
    line-height: 1.45;
    margin: 0;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.timeline-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    line-height: 1.35;
    color: #3b2718;
}

.timeline-year {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #8b2512;
    min-width: 60px;
    font-size: 0.85rem;
}

/* Media Honors Badge Pills */
.media-badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.6rem 0;
}

.media-badge {
    padding: 0.25rem 0.65rem;
    background: rgba(138, 98, 55, 0.12);
    border: 1px solid rgba(138, 98, 55, 0.35);
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #55351e;
    letter-spacing: 0.5px;
}

/* Page Call-to-Action Buttons */
.book-cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.book-btn-link {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    text-align: center;
    background: linear-gradient(135deg, #7c2415 0%, #56160a 100%);
    border: 1px solid #a83c27;
    border-radius: 4px;
    color: #fff4e0 !important;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.book-btn-link:hover {
    background: linear-gradient(135deg, #962e1c 0%, #6e1d0f 100%);
    box-shadow: 0 5px 12px rgba(124, 36, 21, 0.4);
    transform: translateY(-1px);
}

.book-btn-secondary {
    background: transparent;
    border: 1px solid #8c5b32;
    color: #5a371c !important;
}

.book-btn-secondary:hover {
    background: rgba(140, 91, 50, 0.12);
    border-color: #5a371c;
}

/* Running Page Footer */
.page-archival-footer {
    border-top: 1px dashed rgba(110, 70, 35, 0.3);
    padding-top: 0.35rem;
    margin-top: auto;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: #000;
    letter-spacing: 2px;
}

/* Back Cover Layout */
.book-cover-back {
    height: 100%;
    padding: 2.2rem 1.8rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.back-brand-seal {
    width: 90px;
    height: 90px;
    border: 2px dashed #dfb15b;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1.2rem auto;
    font-family: 'Rye', serif;
    font-size: 1.15rem;
    color: #f7e3ba;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    background-color: #00000091;
}

.back-brand-seal img {
    width: 1.5rem;
    height: 1.5rem;
}

.back-brand-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    letter-spacing: 1px;
    color: #dfb15b;
}

/* --------------------------------------------------------------------------
   6. CARVED WOODEN CONTROLS DOCK
   -------------------------------------------------------------------------- */

.book-controls-dock {
    position: relative;
    z-index: 10;
    margin-top: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 960px;
}

/* Primary Bar */
.dock-primary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: rgba(28, 16, 9, 0.92);
    border: 1px solid rgba(212, 163, 89, 0.45);
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.7),
        inset 0 1px 2px rgba(255, 230, 180, 0.15);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.dock-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.1rem;
    background: linear-gradient(180deg, #442614 0%, #2b160b 100%);
    border: 1px solid #7a4d26;
    border-radius: 6px;
    color: #f7e3ba;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.dock-btn:hover:not(.disabled) {
    background: linear-gradient(180deg, #5c341b 0%, #3e1f10 100%);
    border-color: #dfb15b;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(223, 177, 91, 0.3);
    transform: translateY(-1px);
}

.dock-btn:active:not(.disabled) {
    transform: translateY(1px);
}

.dock-btn.disabled,
.dock-btn[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Center Indicator */
.dock-page-indicator {
    font-family: 'Rye', Georgia, serif;
    font-size: 1.05rem;
    color: #e5cb9b;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
}

/* Secondary Actions Bar (Quick Jump Chips & Tools) */
.dock-secondary-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
}

.book-jump-btn {
    padding: 0.3rem 0.75rem;
    background: rgba(35, 20, 10, 0.7);
    border: 1px solid rgba(194, 155, 56, 0.3);
    border-radius: 20px;
    color: #cbb493;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.book-jump-btn:hover {
    background: rgba(65, 38, 20, 0.9);
    border-color: #dfb15b;
    color: #ffffff;
}

.book-jump-btn.active {
    background: #7c2415;
    border-color: #dfb15b;
    color: #fff4e0;
    box-shadow: 0 0 10px rgba(223, 177, 91, 0.4);
}

/* Tool Buttons (Sound Toggle & Reading Mode) */
.dock-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    background: rgba(45, 26, 14, 0.85);
    border: 1px solid rgba(212, 163, 89, 0.4);
    border-radius: 20px;
    color: #f7e3ba;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dock-tool-btn:hover {
    border-color: #dfb15b;
    background: rgba(70, 42, 23, 0.95);
    color: #ffffff;
}

.dock-tool-btn.active {
    background: #dfb15b;
    color: #2b180d;
    border-color: #ffffff;
    font-weight: 700;
}

.dock-tool-btn.muted {
    opacity: 0.65;
}

/* --------------------------------------------------------------------------
   7. ACCESSIBLE CONTINUOUS TEXT TRANSCRIPT SECTION
   -------------------------------------------------------------------------- */

.accessible-transcript-section {
    display: none; /* Toggled on via "Show Continuous Text View" button */
    width: 100%;
    max-width: 960px;
    margin: var(--spacing-xl) auto 0 auto;
    position: relative;
    z-index: 5;
    animation: fadeInUp 0.5s ease;
}

.continuous {
    margin-bottom: 0px !important;
}

.subtitle{
    margin-bottom: var(--spacing-xl);
}

.card-inner p{
    text-align: left;
    margin-bottom: var(--spacing-xl);
}

.float-right {
    float: right;
    margin: 0 var(--spacing-md) var(--spacing-xs);
}

.float-left {
    float: left;
    margin: 0 var(--spacing-md) var(--spacing-sm);
}

.tall  {
    max-height: 200px;
}

.glow {
    margin: 0 auto;
}

/* .transcript-card {
    background-image: var(--parchment-img-clean);
    background-size: cover;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color: var(--text-main);
}

.transcript-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    border-bottom: 2px solid rgba(194, 155, 56, 0.35);
    padding-bottom: var(--spacing-md);
}

.transcript-title {
    font-family: 'Rye', Georgia, serif;
    font-size: 2.2rem;
    color: var(--text-accent);
    margin: 0 0 0.5rem 0;
}

.transcript-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin: 0;
}

.transcript-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.3rem;
    text-align: justify;
}

.transcript-figure-left {
    float: left;
    width: 200px;
    margin: 0.3rem 1.8rem 1.2rem 0;
    text-align: center;
}

.transcript-figure-left img {
    width: 100%;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

.transcript-img-right {
    float: right;
    width: 280px;
    margin: 0.3rem 0 1.2rem 1.8rem;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

.transcript-clearfix {
    clear: both;
} */

/* --------------------------------------------------------------------------
   8. RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .book-paddle {
        width: 44px;
        height: 56px;
    }

    .book-paddle-prev { left: 4px; }
    .book-paddle-next { right: 4px; }

    .book-page-inner {
        padding: 1.6rem 1.4rem 1.4rem 1.4rem;
    }

    .chapter-title {
        font-size: 1.25rem;
    }

    .page-body-text {
        font-size: 0.82rem;
        line-height: 1.52;
    }
}

@media (max-width: 767px) {
    .book-reading-environment {
        padding: var(--spacing-md) 0.5rem var(--spacing-xl) 0.5rem;
    }

    .book-hint-bar {
        font-size: 0.78rem;
        padding: 0.4rem 1rem;
    }

    /* Hide floating paddles on small screens to save width */
    .book-paddle {
        display: none !important;
    }

    .book-desk-stage {
        min-height: 380px;
        margin: var(--spacing-xs) auto;
    }

    .book-cover-front,
    .book-cover-back {
        padding: 1.6rem 1.2rem;
    }

    .cover-book-title {
        font-size: 1.55rem;
    }

    .cover-subtitle {
        font-size: 0.88rem;
    }

    .cover-main-emblem {
        margin: 0.2rem 0;
    }

    .cover-emblem-svg {
        width: 60px;
        height: 60px;
    }

    .book-page-inner {
        padding: 1.3rem 1.1rem 1.1rem 1.1rem;
    }

    .chapter-title {
        font-size: 1.15rem;
    }

    .page-body-text {
        font-size: 0.8rem;
        line-height: 1.45;
        margin-bottom: 0.5rem;
    }

    .dropcap::first-letter {
        font-size: 2.4rem;
        line-height: 0.85;
    }

    .dock-primary-bar {
        padding: 0.5rem 0.8rem;
    }

    .dock-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.78rem;
    }

    .dock-page-indicator {
        font-size: 0.9rem;
    }

    .book-jump-btn {
        font-size: 0.68rem;
        padding: 0.25rem 0.55rem;
    }

    /* .transcript-figure-left,
    .transcript-img-right {
        float: none;
        width: 100%;
        margin: 1rem 0;
    } */
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
    }


/* Reserve initial stage and book container geometry before turn.js executes */
#about-book {
    width: min(980px, calc(100vw - 60px));
    height: max(calc(min(980px, calc(100vw - 60px)) * 0.72), 650px);
}

@media (max-width: 767px) {
    #about-book {
        width: min(calc(100vw - 24px), 440px);
        height: max(calc(min(calc(100vw - 24px), 440px) * 1.6), 750px);
    }
}

/* Override hard cover texture to valid existing leather image asset */
.hard {
    background-image:
        radial-gradient(circle at 50% 30%, rgba(138, 77, 39, 0.35) 0%, rgba(25, 12, 6, 0.9) 100%),
        var(--lether-img) !important;
}
