/* Explain: Styles for the "Between the Lines of the New Testament" section, including the ongoing series ribbon. */
/* "Between the Lines of the New Testament" homepage section (EN / NL / DE) */
.ntl-details {
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, 0.55);
    overflow: hidden;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8), 0 0 30px -18px rgba(197, 160, 89, 0.25);
}

.ntl-banner {
    position: relative;
    display: block;
    cursor: pointer;
    list-style: none;
    outline: none;
}

.ntl-banner::-webkit-details-marker {
    display: none;
}

.ntl-banner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease, filter 0.5s ease;
}

.ntl-banner-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0) 68%);
    transition: opacity 0.4s ease;
}

.ntl-banner:hover img,
.ntl-banner:focus-visible img {
    transform: scale(1.015);
    filter: brightness(1.05);
}

.ntl-banner-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 0 1rem;
}

.ntl-hint-open,
.ntl-hint-close {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    max-width: 100%;
    padding: 0.65rem 1.4rem;
    border: 1px solid var(--primary-color);
    border-radius: 0.2rem;
    background: rgba(0, 0, 0, 0.65);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-align: center;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ntl-banner:hover .ntl-hint-open,
.ntl-banner:focus-visible .ntl-hint-open {
    background: var(--primary-color);
    color: #000;
}

.ntl-hint-close {
    display: none;
}

.ntl-details[open] .ntl-hint-open {
    display: none;
}

.ntl-details[open] .ntl-hint-close {
    display: inline-flex;
}

.ntl-panel {
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    background: rgba(5, 5, 5, 0.72);
}

.ntl-scroll {
    max-height: 26rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.75rem;
}

.ntl-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .ntl-list {
        grid-template-columns: 1fr 1fr;
    }
}

.ntl-book {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 44px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(197, 160, 89, 0.18);
    border-radius: 0.2rem;
    background: rgba(197, 160, 89, 0.04);
    text-decoration: none;
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.ntl-book:hover,
.ntl-book:focus-visible {
    border-color: var(--primary-color);
    background: rgba(197, 160, 89, 0.12);
    transform: translateX(2px);
    outline: none;
}

.ntl-book-num {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: 999px;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.ntl-book-name {
    flex: 1 1 auto;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ntl-book:hover .ntl-book-name,
.ntl-book:focus-visible .ntl-book-name {
    color: var(--primary-color);
}

.ntl-book-arrow {
    flex: 0 0 auto;
    color: var(--primary-color);
    font-size: 0.8rem;
    opacity: 0.5;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ntl-book:hover .ntl-book-arrow,
.ntl-book:focus-visible .ntl-book-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* "Ongoing series" ribbon overlaid on the New Testament banner (EN / NL / DE) */
.ntl-ongoing {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    max-width: 300px;
    aspect-ratio: 3 / 2;
    background: url('https://files.cdn-files-a.com/uploads/12319002/normal_6ae5a8be582f6.png?format=avif') no-repeat top right / contain;
    pointer-events: none;
    z-index: 6;
    mix-blend-mode: screen;
}

@media (min-width: 768px) {
    .ntl-ongoing {
        width: 34%;
        max-width: 340px;
    }
}

@media (max-width: 640px) {
    .ntl-scroll {
        max-height: 22rem;
    }

    .ntl-banner-hint {
        bottom: 0.6rem;
    }

    .ntl-hint-open,
    .ntl-hint-close {
        font-size: 0.62rem;
        padding: 0.5rem 0.9rem;
        letter-spacing: 0.14em;
    }
}