/* Lumora Authors Suite - Premium Public Styles */

/* ====================== BOOK GRID ====================== */
.lumora-book-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

/* Book Card */
.book-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


.book-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}


.book-card-content {
    padding: 18px 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    color: #1a1a1a !important;
}

.book-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.28rem;
    line-height: 1.3;
    color: #000;
}

.book-author {
    color: #2874f0;
    font-size: 0.95rem;
    margin: 0;
}

/* ====================== SINGLE BOOK PAGE ====================== */

/* Wrapper: break out of theme flex (GeneratePress .site-content is flex-row) */
.lumora-book-page {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    clear: both;
}

/* Force parent containers to stack vertically when our book page is present */
.site-content:has(.lumora-book-page),
.site-content:has(.lumora-book-single),
#content:has(.lumora-book-page),
.content-area:has(.lumora-book-page) {
    display: block !important;
    flex-direction: column !important;
}

.site-content > .lumora-book-page,
.site-content > .lumora-book-single,
.site-content > .lumora-buy-bar,
.site-content > .about-the-book {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
}

.lumora-book-single {
    max-width: 1180px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 50px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.book-cover {
    text-align: center;
}

.book-cover img {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 300 / 470;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.book-content h1 {
    font-size: 2.6rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 12px 0;
    color: #1a1a1a;
}

/* Small "by Author" on Book Page */
.by-author {
    font-size: 17px;
    color: #1a1a1a;
    margin: 12px 0 12px 0;
    font-weight: 500;
    line-height: 1.4;
}

.by-author .author-name {
    font-size: 17px;
    color: #2874f0;
    text-decoration: none;
}

.by-author .author-name:hover {
    color: #1e5ed8;
    text-decoration: underline;
}

/* Vital Details */
.book-meta {
    background: #F2F2F2;
    padding: 22px 25px;
    max-width: 80%;
    border-radius: 12px;
    margin: 25px 0 30px 0;
    color:#000;
    font-size: 1.02rem;    
    line-height: 1.3;
}

.book-meta h3 {
    font-size: 21px;
    font-weight: 500;    
    margin: 0 0 14px 0;
    color: #1a1a1a;
    border-bottom: 1px solid #828282;
    padding-bottom: 10px;
}


.book-meta p {
    margin: 6px 0;
}

/* Full-width buy bar (above About the Book) */
.lumora-buy-bar {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    clear: both;
    margin: 10px 0 0 0;
    padding: 66px 0 20px 0;
    background: transparent;
    border-top: 1px solid #e0e0e0;
    box-sizing: border-box;
    text-align: center;
}

.lumora-buy-bar .buy-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 1180px;
}

.buy-buttons {
    margin: 15px 0 35px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Shared button base — works for both <a> and <button>, any theme */
.lumora-buy-bar .lumora-btn,
.buy-buttons .lumora-btn,
a.lumora-btn,
button.lumora-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 32px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1.08rem !important;
    font-family: inherit !important;
    line-height: 1.25 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
    max-width: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
    vertical-align: middle !important;
}

.lumora-buy-bar .lumora-btn:hover,
.buy-buttons .lumora-btn:hover,
a.lumora-btn:hover,
button.lumora-btn:hover {
    text-decoration: none !important;
    transform: translateY(-3px) !important;
}

.amazon-btn {
    background: linear-gradient(135deg, #FF9900, #e68a00) !important;
    color: #fff !important;
}
.amazon-btn:hover {
    background: linear-gradient(135deg, #e68a00, #FF9900) !important;
    color: #fff !important;
}

.flipkart-btn {
    background: linear-gradient(135deg, #2874f0, #1e5ed8) !important;
    color: #fff !important;
}
.flipkart-btn:hover {
    background: linear-gradient(135deg, #1e5ed8, #2874f0) !important;
    color: #fff !important;
}

.google-books-btn {
    background: linear-gradient(135deg, #4285F4, #34A853) !important;
    color: #fff !important;
}
.google-books-btn:hover {
    background: linear-gradient(135deg, #34A853, #4285F4) !important;
    color: #fff !important;
}

.read-book-btn {
    background: linear-gradient(135deg, #00256B, #1a3a7a) !important;
    color: #fff !important;
}
.read-book-btn:hover {
    background: linear-gradient(135deg, #1a3a7a, #00256B) !important;
    color: #fff !important;
}

.cite-btn {
    background: linear-gradient(135deg, #6B2D8B, #8E44AD) !important;
    color: #fff !important;
}
.cite-btn:hover {
    background: linear-gradient(135deg, #8E44AD, #6B2D8B) !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(107, 45, 139, 0.35) !important;
}


@media (max-width: 768px) {
    .book-meta {
        background: #F2F2F2;
        padding: 22px 25px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 12px;
        margin: 25px 0 30px;
        line-height: 1.45;
        font-size: 1.02rem;
    }
}


/* ====================== ABOUT THE BOOK - MODERN SECTIONS ====================== */
.about-the-book {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
    clear: both;
    margin: 0 !important;
    padding: 48px 20px 40px;
    background: #ffffff !important;
    border-top: none;
    border-bottom: 1px solid #e6e8ec;
    box-sizing: border-box;
}

.about-the-book h2 {
    font-size: 1.85rem;
    text-align: left;
    margin: 0 auto 24px;
    max-width: 1100px;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.02em;
    padding-bottom: 12px;
    border-bottom: 3px solid #2874f0;
}

.about-the-book .book-description {
    max-width: 1100px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.75;
    color: #333;
}



/* ====================== ARCHIVES & RESPONSIVE ====================== */
.lumora-archive-page {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
}

.archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.archive-title {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.archive-subtitle {
    font-size: 1.2rem;
    color: #666;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .lumora-book-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 992px) {
    .lumora-book-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .lumora-book-grid,
    .author-books-section .lumora-book-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lumora-book-single {
        grid-template-columns: 1fr;
        gap: 30px;
        justify-items: center;
    }

    .book-cover img {
        max-width: 260px;
    }

    .book-content {
        width: 100%;
        text-align: left;
    }

    .book-content h1 {
        font-size: 1.9rem;
    }

    .book-meta {
        max-width: 100%;
    }

    .buy-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .lumora-book-grid,
    .author-books-section .lumora-book-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }
}

/* Pagination */
.lumora-pagination {
    text-align: center;
    margin: 60px 0 40px;
}

.lumora-pagination a,
.lumora-pagination .current {
    padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #2874f0;
    font-weight: 500;
    transition: all 0.3s;
}

.lumora-pagination a:hover,
.lumora-pagination .current {
    background: #2874f0;
    color: white;
    border-color: #2874f0;
}


/* ====================== SINGLE AUTHOR PAGE ====================== */
.lumora-author-single {
    max-width: 1150px;
    margin: 40px auto;
    padding: 0 20px;
}

.author-hero {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 80px 0 50px;
    border-radius: 16px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
}

.author-avatar img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 12px solid #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.section-title {
    font-size: 1.5em;
    text-align: left;
    margin-top: 36px;
    margin-bottom: 21px;
    color: #1a1a1a;
}

.section-title:after {
    content: '';
    display: block;
    height: 3px;
    border-bottom: 3px solid #2874f0;
    margin: 15px auto;
}

.author-bio {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.85;
    color: #444;
}



/* ====================== MODERN AUTHOR INFO CARD ====================== */
/* Parent full-width so card does not shrink when author has no books */
.lumora-author-single {
    max-width: 1200px;
    width: 100% !important;
    margin: 0 auto;
    padding: 0 20px 40px;
    box-sizing: border-box;
    display: block;
}

.author-info-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 40px;
    max-width: 100% !important;
    width: 100% !important;
    margin: 40px 0 20px;
    box-sizing: border-box;
    display: block !important;
}

.author-info-inner {
    display: flex !important;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: nowrap;
    width: 100% !important;
    box-sizing: border-box;
}

.author-photo {
    flex: 0 0 200px;
    width: 200px;
    max-width: 200px;
}

.author-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 6px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: block;
}

.author-details {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
}

.author-name-single {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #1a1a1a;
    border-bottom: 3px solid #2874f0;
    padding-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
}

.author-books-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.author-bio {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

/* Responsive */
@media (max-width: 768px) {
    .author-info-inner {
        flex-direction: column;
        text-align: center;
    }
    .author-photo {
        flex: none;
        margin: 0 auto;
        max-width: 260px;
    }
}


/* ====================== AUTHOR ARCHIVE SQUARE IMAGES ====================== */
.author-card img.author-archive-img,
.author-card .author-archive-img {
    width: 100%;
    height: 320px;           /* Square look ke liye fixed height */
    object-fit: cover;
    object-position: center;
}


/* Optional: Make it perfectly square on larger screens */
@media (min-width: 768px) {
    .author-card img.author-archive-img {
        height: 340px;
    }
}

/* ====================== PERFECT SQUARE AUTHOR ARCHIVE IMAGES ====================== */
.lumora-book-grid .author-card {
    display: flex;
    flex-direction: column;
}

.lumora-book-grid .author-archive-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.lumora-book-grid .author-archive-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 3px;
  max-height: none;
  object-fit: cover;
}



/* ======================
   BOOK PRICE
====================== */

.book-price {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 10px 0 20px 0;
}


/* ====================== AUTHOR BOOKS SECTION FIX ====================== */

/* Shadow Hataya */
.author-books-grid .book-card,
.author-books-section .book-card {
    box-shadow: none !important;
}

/* Zoom effect hatao */
.author-books-grid .book-card:hover img,
.author-books-section .book-card:hover img {
    transform: none !important;
}

/* Image height fix */
.author-books-grid .book-card img,
.author-books-section .book-card img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}


/* ====================== ARCHIVES CLEAN LOOK ====================== */

/* Author Archive + Book Archive - Shadow & Border Remove */
.lumora-archive-page .book-card,
.lumora-archive-page .author-card,
.author-books-grid .book-card,
.author-books-section .book-card {
    box-shadow: none !important;
    border: none !important;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

/* Image consistency */
.lumora-archive-page .book-card img,
.author-books-grid .book-card img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    transform: none !important;    
}

/* Author Archive Image Fix */
.author-card img.author-archive-img {
    box-shadow: none !important;
}



/* ====================== ARCHIVE PAGES - FONT SIZE & MARGIN FIX ====================== */

/* Author Archive - Name Font Size */
.lumora-archive-page .author-card h3,
.lumora-archive-page .author-card .book-card h3 {
    font-size: 1.1rem !important;     /* Pehle 1.28rem tha */
    margin: 12px 0 8px 0 !important;
    line-height: 1.4;
    font-weight: 600;
}

/* Book Archive - Book Title Font Size */
.lumora-archive-page .book-card h3,
.lumora-book-grid .book-card h3 {
    font-size: 1.15rem !important;
    margin: 0 !important;   /* Upar margin kam kiya */
    padding: 0;
    line-height: 1.35;
}

/* Book Archive - Extra text jaise "Best Book In India" */
.lumora-archive-page .book-card p,
.lumora-book-grid .book-card p {
    font-size: 0.95rem !important;
    padding-top: 6px !important;
    color: #1a1a1a;
}

/* Overall spacing tight karne ke liye */
.book-card-content {
    padding-top: 6px !important;
}


/* ======================
   MOBILE AUTHOR PAGE FIX
====================== */

@media (max-width: 480px) {

    .lumora-author-single,
    .author-info-card {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .author-info-inner {
        display: flex;
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        text-align: center;
        width: 100%;
        margin: 0 auto;
    }

    .author-photo {
        width: 100%;
        max-width: 220px;
        margin: 0 auto 20px auto !important;
    }

    .author-photo img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .author-details {
        width: 100%;
        min-width: unset !important;
        text-align: left;
    }

    body,
    html {
        overflow-x: hidden;
    }
}


/* ======================
   MOBILE BOOK IMAGE CENTER
====================== */

@media (max-width: 480px) {

    .book-cover {
        text-align: center;
        width: 100%;
    }

    .book-cover img {
        display: block;
        max-width: 100%;
        width: 100%;
        width: auto;
        height: auto;
    }

    .lumora-book-single {
        justify-items: center;
        text-align: center;
    }

    .book-content {
        width: 100%;
        text-align: left; /* content left hi rahega */
    }
}
/* ====================== LINK COLORS ====================== */
/* Author links – keep original blue */
.lumora-book-single .by-author a,
.lumora-author-single a {
    color: #2874f0 !important;
    text-decoration: none;
}

.lumora-book-single .by-author a:hover,
.lumora-author-single a:hover {
    color: #1e5ed8 !important;
    text-decoration: underline;
}

/* Published by + publisher page links – dark navy */
.lumora-book-single .book-meta a,
.lumora-publisher-single a,
.publisher-contact-meta a,
.pub-meta-item a {
    color: #00256B !important;
    text-decoration: none;
}

.lumora-book-single .book-meta a:hover,
.lumora-publisher-single a:hover,
.publisher-contact-meta a:hover,
.pub-meta-item a:hover {
    color: #001a4d !important;
    text-decoration: underline;
}

/* Keep buy / cite buttons white text (theme-proof) */
.lumora-buy-bar .lumora-btn,
.lumora-buy-bar .lumora-btn:hover,
.buy-buttons .lumora-btn,
.buy-buttons .lumora-btn:hover,
.lumora-book-single .lumora-btn,
.lumora-book-single .lumora-btn:hover {
    color: #fff !important;
    text-decoration: none !important;
}

/* ====================== PUBLISHER CONTACT (icons) ====================== */
.publisher-contact-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0 22px 0;
}

.publisher-contact-meta .pub-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f5f7fb;
    border: 1px solid #e6ebf2;
    border-radius: 10px;
    color: #00256B !important;
    text-decoration: none !important;
    font-size: 0.98rem;
    line-height: 1.35;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.publisher-contact-meta .pub-meta-item:hover {
    background: #eef3ff;
    border-color: #c9d8f5;
    box-shadow: 0 2px 8px rgba(0, 37, 107, 0.12);
    color: #001a4d !important;
    text-decoration: none !important;
}

.publisher-contact-meta .pub-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    background: #fff;
    color: #00256B;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.publisher-contact-meta .pub-meta-whatsapp .pub-meta-icon {
    color: #25D366;
}

.publisher-contact-meta .pub-meta-text {
    word-break: break-word;
    overflow-wrap: anywhere;
    color: inherit;
}

@media (max-width: 480px) {
    .publisher-contact-meta .pub-meta-item {
        padding: 9px 12px;
        font-size: 0.92rem;
    }
}

/* ====================== CITE THIS BOOK ====================== */
/* .cite-btn styles live with other .lumora-btn color variants above */

.lumora-cite-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.lumora-cite-modal.is-open {
    display: flex;
    animation: lumora-cite-fade 0.2s ease;
}

@keyframes lumora-cite-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lumora-cite-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lumora-cite-dialog {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    padding: 0;
    z-index: 1;
    animation: lumora-cite-slide 0.25s ease;
}

@keyframes lumora-cite-slide {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lumora-cite-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.lumora-cite-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.lumora-cite-close {
    background: #f3f4f6 !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    font-size: 1.35rem !important;
    line-height: 1 !important;
    cursor: pointer;
    color: #555 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s, color 0.2s;
    padding: 0 !important;
    box-shadow: none !important;
}

.lumora-cite-close:hover {
    background: #e5e7eb !important;
    color: #111 !important;
}

/* Modern segmented tab bar */
.lumora-cite-tabs {
    display: flex;
    gap: 0;
    padding: 16px 24px 0;
    margin: 0 24px;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.lumora-cite-tabs::-webkit-scrollbar {
    display: none;
}

.lumora-cite-tab {
    flex: 1 1 auto;
    border: none !important;
    background: transparent !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    color: #64748b !important;
    font-family: inherit !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
    line-height: 1.3 !important;
    min-height: 0 !important;
    height: auto !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.lumora-cite-tab:hover {
    color: #334155 !important;
    background: rgba(255, 255, 255, 0.5) !important;
}

.lumora-cite-tab.active {
    background: #fff !important;
    color: #6B2D8B !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

.lumora-cite-body {
    padding: 18px 24px;
}

.lumora-cite-text {
    margin: 0;
    padding: 18px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.98rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    color: #1e293b;
    font-family: 'Georgia', 'Times New Roman', 'Liberation Serif', serif;
    max-height: 240px;
    overflow: auto;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.lumora-cite-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px 22px;
    flex-wrap: wrap;
}

.cite-copy-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #6B2D8B, #8E44AD) !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer;
    font-family: inherit !important;
    padding: 12px 28px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    line-height: 1.25 !important;
    box-shadow: 0 4px 14px rgba(107, 45, 139, 0.3) !important;
    transition: all 0.25s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    min-height: 0 !important;
    height: auto !important;
}

.cite-copy-btn:hover {
    background: linear-gradient(135deg, #8E44AD, #6B2D8B) !important;
    transform: translateY(-2px);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(107, 45, 139, 0.4) !important;
}

.lumora-cite-copied {
    color: #059669;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lumora-cite-copied::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #d1fae5;
    color: #059669;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

@media (max-width: 480px) {
    .lumora-cite-dialog {
        border-radius: 16px;
    }
    .lumora-cite-header,
    .lumora-cite-body,
    .lumora-cite-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    .lumora-cite-tabs {
        margin: 0 16px;
        padding: 4px;
    }
    .lumora-cite-tab {
        padding: 9px 8px !important;
        font-size: 0.8rem !important;
    }
}


/* Available on — desktop row, mobile stacked */
.lumora-available-label {
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    color: #1d2327 !important;
    margin-right: 6px;
    white-space: nowrap;
}
.lumora-buy-bar .buy-buttons,
.lumora-available-on-bar .buy-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
@media (max-width: 600px) {
    .lumora-buy-bar .buy-buttons,
    .lumora-available-on-bar .buy-buttons,
    .lumora-sch-available-on .buy-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    .lumora-available-label {
        text-align: center;
        margin: 0 0 4px 0 !important;
        width: 100%;
        display: block;
    }
    .lumora-buy-bar .lumora-btn,
    .lumora-available-on-bar .lumora-btn,
    .lumora-sch-available-on .lumora-btn {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
    }
}

/* ====================== MODERN VITAL DETAILS ====================== */
.book-meta.lumora-vital-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 18px 12px;
    margin-top: 18px;
}
.book-meta.lumora-vital-details h3 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    padding-bottom: 10px;
    border-bottom: 2px solid #2874f0;
}
.lumora-vital-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.lumora-vital-list li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 10px;
}
.lumora-vital-list li.vital-full {
    grid-column: 1 / -1;
}
/* Last incomplete row: single leftover cell → full width */
.lumora-vital-list > li:not(.vital-full):last-child:nth-child(odd) {
	grid-column: 1 / -1;
}
/* When Publishing Group (vital-full) is last, expand previous item if odd count */
.lumora-vital-list > li.vital-full:last-child + li,
.lumora-vital-list > li:not(.vital-full):nth-last-child(2):nth-child(odd) {
	grid-column: 1 / -1;
}

.lumora-vital-list .vital-key {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}
.lumora-vital-list .vital-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    word-break: break-word;
}
.lumora-vital-list .vital-val a {
    color: #2874f0;
    text-decoration: none;
}
.lumora-vital-list .vital-val a:hover {
    text-decoration: underline;
}
@media (max-width: 600px) {
    .lumora-vital-list {
        grid-template-columns: 1fr;
    }
}

/* Author scholarly profile links */
.author-scholar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.author-scholar-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: #eef3ff;
    color: #1e5ed8 !important;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid #d6e2ff;
    transition: background 0.15s, border-color 0.15s;
}
.author-scholar-link:hover,
.author-scholar-link:focus {
    background: #2874f0 !important;
    color: #ffffff !important;
    border-color: #2874f0 !important;
}
.author-scholar-link:hover .pub-meta-text,
.author-scholar-link:focus {
    color: #ffffff !important;
}
.author-scholar-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}
.author-scholar-profiles {
    margin-top: 18px;
}
.publisher-contact-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}
.publisher-contact-block {
    margin-top: 16px;
}

/* Publisher contact modern */
.publisher-contact-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}
.pub-meta-row-phones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}
.pub-meta-sep {
    color: #94a3b8;
    font-weight: 600;
}
.publisher-info-card .pub-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none !important;
    color: #1e293b !important;
    font-size: 0.92rem;
    font-weight: 500;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.publisher-info-card .pub-meta-item:hover {
    border-color: #2874f0;
    box-shadow: 0 2px 10px rgba(40, 116, 240, 0.1);
}
.publisher-info-card .pub-meta-icon {
    display: inline-flex;
    color: #2874f0;
}
.publisher-info-card .pub-meta-whatsapp .pub-meta-icon {
    color: #16a34a;
}
