/*
Theme Name: Digital Book - Retro Style
Theme URI: https://digitalbook.io/
Description: 1:1 Replica of digitalbook.io with retro brown/cream color scheme
Author: Digital Book Team
Author URI: https://digitalbook.io/
Version: 1.0.0
*/

/* ============================================ */
/* Retro Vintage Color Scheme */
/* ============================================ */

:root {
    /* Original light theme colors */
    --retro-brown: #724F36;
    --retro-cream: #F8F3E9;
    --retro-dark: #2C241E;
    --retro-border: #D9CFC1;
    --retro-light-brown: #A67C52;
    --retro-dark-blue: #1E3A4A;
    --retro-gold: #C9A962;
    --light-bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --text-muted: #888888;
}

/* ============================================ */
/* Global Styles */
/* ============================================ */

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--retro-cream);
    color: var(--retro-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--retro-dark);
}

a {
    color: var(--retro-brown);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--retro-light-brown);
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--retro-brown);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--retro-light-brown);
    color: white;
}

/* ============================================ */
/* Header Styles */
/* ============================================ */

.site-header {
    background-color: var(--retro-dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--retro-cream);
    text-decoration: none;
}

.logo span {
    color: var(--retro-gold);
}

.header-search {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--retro-border);
    border-radius: 25px;
    background-color: rgba(255,255,255,0.1);
    color: var(--retro-cream);
    font-size: 14px;
}

.header-search input::placeholder {
    color: rgba(255,255,255,0.6);
}

.header-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--retro-cream);
    cursor: pointer;
}

.header-menu {
    display: flex;
    gap: 20px;
}

.header-menu a {
    color: var(--retro-cream);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.header-menu a:hover {
    color: var(--retro-gold);
}

/* ============================================ */
/* Hero Section */
/* ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--retro-dark) 0%, var(--retro-dark-blue) 100%);
    padding: 60px 20px;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    color: var(--retro-cream);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
}

/* ============================================ */
/* Main Content */
/* ============================================ */

.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--retro-dark);
    border-bottom: 2px solid var(--retro-border);
    padding-bottom: 10px;
}

/* ============================================ */
/* Book Grid */
/* ============================================ */

.book-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

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

@media (max-width: 480px) {
    .book-grid {
        grid-template-columns: 1fr;
    }
}

.book-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.book-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: var(--retro-border);
}

.book-info {
    padding: 15px;
}

.book-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-author {
    font-size: 13px;
    color: var(--retro-brown);
    margin-bottom: 5px;
}

.book-year {
    font-size: 12px;
    color: var(--retro-dark);
    opacity: 0.6;
}

/* ============================================ */
/* Sidebar */
/* ============================================ */

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--retro-border);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    font-size: 14px;
    color: var(--retro-dark);
}

.sidebar a:hover {
    color: var(--retro-brown);
}

.sidebar .current a {
    color: var(--retro-brown);
    font-weight: 600;
}

/* ============================================ */
/* Archive Page Layout */
/* ============================================ */

.archive-layout {
    display: flex;
    gap: 30px;
}

.archive-content {
    flex: 1;
}

/* ============================================ */
/* Single Book Page */
/* ============================================ */

.single-book-container {
    display: flex;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.single-book-cover {
    width: 306px;
    flex-shrink: 0;
}

.single-book-cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.single-book-info {
    flex: 1;
}

.single-book-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.single-book-author {
    font-size: 18px;
    color: var(--retro-brown);
    margin-bottom: 10px;
}

.single-book-meta {
    font-size: 14px;
    color: var(--retro-dark);
    opacity: 0.7;
    margin-bottom: 20px;
}

.single-book-excerpt {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--retro-dark);
}

.read-online-btn {
    background-color: var(--retro-brown);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.read-online-btn:hover {
    background-color: var(--retro-light-brown);
    color: white;
}

/* ============================================ */
/* Related Books */
/* ============================================ */

.related-books {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--retro-border);
}

.related-books h3 {
    margin-bottom: 20px;
}

.related-books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .related-books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================ */
/* Reader Page */
/* ============================================ */

.reader-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.reader-header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reader-title {
    font-size: 20px;
    margin: 0;
}

.reader-nav {
    display: flex;
    gap: 10px;
}

.reader-btn {
    padding: 10px 20px;
    background: var(--retro-brown);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.reader-btn:hover {
    background: var(--retro-light-brown);
}

.reader-btn:disabled {
    background: var(--retro-border);
    cursor: not-allowed;
}

.reader-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 2;
    color: var(--retro-dark);
}

.reader-content p {
    margin-bottom: 24px;
    text-align: justify;
    text-indent: 30px;
}

.reader-content h1,
.reader-content h2,
.reader-content h3 {
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--retro-border);
}

.reader-content h1 { font-size: 28px; }
.reader-content h2 { font-size: 24px; }
.reader-content h3 { font-size: 20px; }

.reader-footer {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reader-page-info {
    font-size: 14px;
    color: var(--retro-dark);
    opacity: 0.7;
}

/* ============================================ */
/* Search Results */
/* ============================================ */

.search-results-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Dark theme adjustments for other elements */
.search-query {
    color: var(--text-muted);
}

.no-results {
    background: var(--card-bg);
    padding: 60px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.no-results h3 {
    color: var(--retro-dark);
}

.no-results p {
    color: var(--text-muted);
}

.search-query {
    font-size: 14px;
    color: var(--retro-dark);
    opacity: 0.7;
    margin-bottom: 20px;
}

.search-query strong {
    color: var(--retro-brown);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.no-results p {
    color: var(--retro-dark);
    opacity: 0.6;
}

/* ============================================ */
/* Footer */
/* ============================================ */

.site-footer {
    background-color: var(--card-bg);
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--retro-border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-section h4 {
    color: var(--retro-gold);
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #666;
    font-size: 14px;
    text-decoration: none;
}

.footer-section a:hover {
    color: #333;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
    line-height: 1.6;
}

/* ============================================ */
/* Genre Quick Links */
/* ============================================ */

.genre-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
}

.genre-tag {
    padding: 8px 20px;
    background: white;
    border: 1px solid var(--retro-border);
    border-radius: 25px;
    font-size: 14px;
    color: var(--retro-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.genre-tag:hover {
    background: var(--retro-brown);
    border-color: var(--retro-brown);
    color: white;
}

/* ============================================ */
/* Responsive Adjustments */
/* ============================================ */

@media (max-width: 768px) {
    .single-book-container {
        flex-direction: column;
        align-items: center;
    }
    
    .single-book-cover {
        width: 250px;
    }
    
    .single-book-info {
        text-align: center;
    }
    
    .archive-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        margin: 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
}

/* ============================================ */
/* Novel Homepage Styles */
/* ============================================ */

.novel-intro-container {
    display: flex;
    gap: 40px;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.novel-cover {
    flex-shrink: 0;
}

.novel-cover img {
    width: 306px;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.novel-info {
    flex: 1;
}

.novel-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--retro-dark);
    margin-bottom: 10px;
}

.novel-author {
    font-size: 1.2rem;
    color: var(--retro-brown);
    margin-bottom: 20px;
}

.novel-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin: 25px 0;
}

.novel-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--retro-dark);
    font-size: 1rem;
}

.stat-item i {
    color: var(--retro-gold);
}

/* Chapters Section */
.chapters-section {
    padding: 40px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.chapters-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.chapter-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: var(--retro-cream);
    border-radius: 8px;
    text-decoration: none;
    color: var(--retro-dark);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.chapter-item:hover {
    background: var(--retro-brown);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(114, 79, 54, 0.3);
}

.chapter-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--retro-light-brown);
    min-width: 80px;
}

.chapter-item:hover .chapter-number {
    color: rgba(255,255,255,0.8);
}

.chapter-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.chapter-new {
    background: #E74C3C;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

/* Content Preview */
.content-preview {
    padding: 40px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.preview-content {
    margin-top: 20px;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--retro-dark);
}

.preview-content p {
    margin-bottom: 1.5em;
}

.preview-content h2,
.preview-content h3 {
    color: var(--retro-brown);
    margin: 1.5em 0 0.5em;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.empty-state i {
    font-size: 4rem;
    color: var(--retro-border);
    margin-bottom: 20px;
}

.empty-state h2 {
    font-size: 1.5rem;
    color: var(--retro-dark);
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
}

/* Responsive */
@media (max-width: 900px) {
    .novel-intro-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .novel-cover img {
        width: 250px;
        height: auto;
    }
    
    .novel-title {
        font-size: 1.8rem;
    }
    
    .novel-stats {
        justify-content: center;
    }
    
    .chapters-list-container {
        grid-template-columns: 1fr;
    }
}

/* ============================================ */
/* Chapters List Styles */
/* ============================================ */

.chapters-list {
    margin-top: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.chapter-link {
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    background: var(--card-bg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--retro-dark);
    transition: all 0.2s ease;
    border: 1px solid var(--retro-border);
}

.chapter-link:hover {
    background: var(--retro-brown);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(114, 79, 54, 0.3);
}

.chapter-number {
    font-size: 12px;
    font-weight: 600;
    color: var(--retro-light-brown);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.chapter-link:hover .chapter-number {
    color: rgba(255,255,255,0.8);
}

.chapter-title {
    font-size: 14px;
    font-weight: 500;
}

/* ============================================ */
/* Reader Mode Styles */
/* ============================================ */

.reader-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.reader-header {
    background: linear-gradient(135deg, var(--retro-brown), var(--retro-light-brown));
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.reader-title {
    color: white;
    font-size: 24px;
    margin: 0;
    flex: 1;
}

.reader-nav {
    display: flex;
    gap: 10px;
}

.reader-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s ease;
}

.reader-btn:hover {
    background: rgba(255,255,255,0.3);
}

.reader-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.reader-content {
    padding: 40px 60px;
    min-height: 400px;
}

.reader-content p {
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--retro-dark);
    margin-bottom: 20px;
    text-align: justify;
}

.reader-footer {
    background: var(--retro-cream);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.reader-page-info {
    font-size: 14px;
    color: var(--retro-dark);
}

@media (max-width: 768px) {
    .reader-content {
        padding: 20px;
    }
    
    .reader-header {
        padding: 15px 20px;
    }
    
    .reader-title {
        font-size: 18px;
    }
    
    .reader-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* Legal Pages Styles */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.legal-content h2 {
    color: #333;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.legal-content h3 {
    color: #555;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.legal-content ul {
    list-style-type: disc;
    margin-bottom: 20px;
    margin-left: 20px;
}

.legal-content li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.legal-content a {
    color: #007bff;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Legal Sidebar Styles */
.sidebar .sidebar-section h3.sidebar-title {
    color: #555;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.sidebar .sidebar-section ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.sidebar .sidebar-section ul li {
    margin-bottom: 10px;
}

.sidebar .sidebar-section ul li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.sidebar .sidebar-section ul li a:hover {
    color: #007bff;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-content {
        padding: 15px;
    }
    
    .legal-content h2 {
        font-size: 22px;
    }
    
    .legal-content h3 {
        font-size: 18px;
    }
    
    .legal-content p, .legal-content li {
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .legal-content {
        max-width: 100%;
        padding: 0;
    }
    
    .legal-content h2, .legal-content h3 {
        page-break-after: avoid;
    }
}

/* Hide AddToAny Share Buttons */
.addtoany_content_bottom {
    display: none !important;
}

/* Footer text visibility fix */
.site-footer,
.site-footer * {
    background-color: transparent;
}

.site-footer {
    background-color: #ffffff !important;
}

.site-footer .footer-section h4 {
    color: #c9a24a !important;
}

.site-footer .footer-section a,
.site-footer .footer-section li,
.site-footer .footer-section p {
    color: #5f5f5f !important;
}

.site-footer .footer-section a:hover {
    color: #2f2f2f !important;
    text-decoration: underline !important;
}

.site-footer .footer-bottom,
.site-footer .footer-bottom p {
    color: #666666 !important;
}

/* ============================================ */
/* Compliance Pages */
/* ============================================ */

.compliance-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 10px 0 20px;
    color: #2c241e;
}

.compliance-page h1 {
    font-size: 42px;
    line-height: 1.2;
    margin: 0 0 24px;
    color: #2c241e;
}

.compliance-page h2 {
    font-size: 24px;
    line-height: 1.35;
    margin: 34px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d9cfc1;
    color: #724f36;
}

.compliance-page p,
.compliance-page li {
    font-size: 16px;
    line-height: 1.8;
    color: #3f352e;
}

.compliance-page ul {
    margin: 12px 0 20px 24px;
    padding: 0;
}

.compliance-effective-date {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f8f3e9;
    border: 1px solid #d9cfc1;
    color: #724f36 !important;
    font-size: 14px !important;
}

.compliance-notice {
    margin-top: 40px;
    padding: 18px 20px;
    border-left: 4px solid #c9a962;
    background: #f8f3e9;
    border-radius: 8px;
}

.compliance-notice p {
    margin: 0;
    font-size: 14px;
}

/* ============================================ */
/* Global text visibility and safe link fallback */
/* ============================================ */

body,
.site-main,
.main-content,
.content-area,
.archive-layout,
.book-grid,
.book-card,
.sidebar-section,
.legal-content,
.page-content,
.entry-content,
.no-results,
.search-results,
.book-detail,
.book-info,
.chapter-list,
.table-of-contents,
.site-footer {
    color: #2c241e !important;
}

.book-card p,
.book-card span,
.book-meta,
.book-author,
.book-year,
.sidebar-section li,
.sidebar-section span,
.legal-content p,
.legal-content li,
.page-content p,
.entry-content p,
.site-footer li,
.site-footer span,
.site-footer p {
    color: #555555 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.sidebar-section a,
.book-title a,
.book-card a,
.legal-content a,
.page-content a,
.entry-content a,
.site-footer a {
    color: #724f36 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.sidebar-section a:hover,
.book-title a:hover,
.book-card a:hover,
.legal-content a:hover,
.page-content a:hover,
.entry-content a:hover,
.site-footer a:hover {
    color: #2c241e !important;
    text-decoration: underline !important;
}

.header-menu .menu-text {
    color: var(--retro-cream) !important;
    font-size: 14px;
    font-weight: 500;
}