@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+Hebrew:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@100..900&display=swap");

.note-verbum-page {
    min-height: 100dvh;
}

.h-dvh {
    height: 100dvh;
}

.note-verbum-grid {
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .note-verbum-grid {
        display: grid;
        grid-template-columns: 3fr 3fr 4fr;
    }

    .note-verbum-grid[data-compare="false"] {
        grid-template-columns: 1fr 1fr;
    }

    .note-verbum-grid[data-compare="false"] .note-verbum-secondary {
        display: none;
    }
}

@media (max-width: 639px) {
    .note-verbum-secondary {
        display: none;
    }
}

.note-verbum-dropdown {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.note-verbum-dropdown.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.note-verbum-switch {
    appearance: none;
    width: 42px;
    height: 22px;
    background: rgba(58, 94, 131, 0.3);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background 0.2s ease;
}

.note-verbum-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.note-verbum-switch:checked {
    background: rgba(58, 94, 131, 1);
}

.note-verbum-switch:checked::after {
    transform: translateX(20px);
}

.note-verbum-book-active {
    background: rgba(67, 135, 204, 1);
    color: #ffffff;
}

.note-verbum-chapter-active {
    background: rgba(67, 135, 204, 1);
    color: #ffffff;
}

.note-verbum-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.note-verbum-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.note-verbum-scroll::-webkit-scrollbar-thumb {
    background: transparent;
}

.note-verbum-scroll::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

.note-verbum-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.note-verbum-info-button {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(58, 94, 131, 0.6);
    color: rgba(58, 94, 131, 1);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: "Instrument Sans", sans-serif;
    line-height: 1;
}

.note-verbum-info-button:hover {
    background: rgba(58, 94, 131, 0.1);
}

.note-verbum-info-button-mobile {
    display: inline-flex;
}

.note-verbum-info-overlay.hidden {
    display: none;
}

.note-verbum-info-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 40;
}

.note-verbum-info-card {
    width: 100%;
    max-width: 520px;
    max-height: calc(100dvh - 3rem);
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 639px) {
    .note-verbum-info-card {
        height: 100%;
    }
}

.note-verbum-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.note-verbum-info-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.note-verbum-info-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.note-verbum-info-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.note-verbum-info-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.note-verbum-info-notes {
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-y: auto;
    padding-right: 6px;
    flex: 1 1 auto;
    min-height: 0;
}

@media (min-width: 640px) {
    .note-verbum-info-button-mobile {
        display: none;
    }
}

.verse-number {
    margin-right: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    top: -0.5em;
    right: -0.2em;
    vertical-align: baseline;
}

.heading {
    font-weight: bold;
    margin-top: 1.5rem;
    line-height: 1.4;
    display: block;
}

.instrument-sans {
    font-family: "Instrument Sans", sans-serif;
}

.font-notoSans {
    font-family: "Noto Sans", sans-serif;
}

.font-notoSerif {
    font-family: "Noto Serif", serif;
}

.font-notoSansMono {
    font-family: "Noto Sans Mono", monospace;
}

.font-notoSerifHebrew {
    font-family: "Noto Serif Hebrew", serif;
}

.font-notoSansfHebrew {
    font-family: "Noto Sans Hebrew", sans-serif;
}
