/* ===========================
   Books page (series picker + banner are shared with the Art page)
   =========================== */

/* ---------- Series picker ---------- */
.series-menu-toggle {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 0.25rem;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

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

.series-button-wrapper {
    width: 100%;
    min-height: 120px;
    overflow: hidden;
}

.series-button-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    text-align: center;
    width: 100%;
}

.series-button {
    width: 300px;
    max-width: 90%;
    height: auto;
}

/* ---------- Series banner ---------- */
.fiction-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
    border-radius: 0.5rem;
    margin: 1rem auto;
    width: 100%;
    padding: 0.5rem;
}

.series-banner-image {
    width: 400px;
    max-width: 90%;
    height: auto;
}

/* ---------- Books ---------- */
.book-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2rem 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 1242px) {
    .book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

.book-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
}

/* ---------- Content warnings ---------- */
.warnings-row {
    align-items: stretch;
}

.warning-subitems {
    padding-left: 20px;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    background-color: #232429;
    color: #fff;
    border-radius: 0.5rem;
}

.table-custom th,
.table-custom td {
    padding: 0.75rem;
}

.table-custom tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.table-section-header {
    background-color: #232429;
    color: #fff;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s, color 0.3s;
}

body.light-mode .table-custom {
    background-color: #f8f9fa;
    color: #222;
}

body.light-mode .table-custom tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .table-section-header {
    background-color: #f8f9fa;
    color: #222;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ---------- Accordion (dark default) ---------- */
.rz-accordion {
    background-color: #232429;
    color: #000;
}

body:not(.light-mode) .rz-accordion .rz-accordion-header {
    background-color: #4f4f4f !important;
    color: #000 !important;
    border-bottom: 1px solid #444 !important;
}

body:not(.light-mode) .rz-accordion .rz-accordion-header .rz-accordion-toggle-icon,
body:not(.light-mode) .rz-accordion .rz-accordion-header .rzi,
body:not(.light-mode) .rz-accordion .rz-accordion-header span:not(.rz-accordion-toggle-icon) {
    color: #fff !important;
}

.rz-accordion .rz-accordion-content {
    background-color: #2a2a2f !important;
    color: #000;
}

.rz-accordion .rz-accordion-header:hover {
    filter: brightness(1.1);
}

body:not(.light-mode) .rz-accordion .rz-accordion-header:hover,
body:not(.light-mode) .rz-accordion .rz-accordion-header:focus {
    background-color: #4f4f4f !important;
}

body.light-mode .rz-accordion {
    background-color: #f8f9fa;
    color: #fff;
}

body.light-mode .rz-accordion .rz-accordion-header {
    background-color: #e9ecef !important;
    color: #222 !important;
    border-bottom: 1px solid #ccc !important;
}

body.light-mode .rz-accordion .rz-accordion-header .rz-accordion-toggle-icon,
body.light-mode .rz-accordion .rz-accordion-header .rzi,
body.light-mode .rz-accordion .rz-accordion-header span:not(.rz-accordion-toggle-icon) {
    color: #222 !important;
}

body.light-mode .rz-accordion .rz-accordion-content,
body.light-mode .rz-accordion .rz-expander-content {
    background-color: #e9ecef !important;
    color: #222 !important;
}

body.light-mode .rz-accordion .rz-accordion-header:hover,
body.light-mode .rz-accordion .rz-accordion-header:focus {
    background-color: #dee2e6 !important;
}
