.hamburger-logo {
    margin-right: 0.5em;
}
.hamburger-title {
    font-weight: bold;
    font-size: 1.25em;
}
.hamburger-version {
    margin-left: 0.5em;
    color: #555;
    font-size: 1em;
}
.hamburger-modal-separator {
    width: 100%;
    height: 2px;
    background: #f0f0f0;
    border-radius: 1px;
    margin-bottom: 1.5em;
}
/* Hamburger vertical modal styles */
.hamburger-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.18);
    z-index: 2000;
    display: none;
    transition: background 0.3s ease;
}
.hamburger-modal.show {
    display: block;
}
.hamburger-modal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: #fff;
    color: #222;
    box-shadow: 2px 0 12px rgba(0,0,0,0.18);
    padding: 2em 1em;
    z-index: 2100;
}
.hamburger-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hamburger-menu-list li {
    margin-bottom: 1.5em;
}
.hamburger-menu-list a {
    color: #222;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: color 0.2s;
}
.hamburger-menu-list a:hover {
    color: #336699;
}
.version-select-label {
    text-align: left !important;
    left: 0 !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}
.version-select-label {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    display: block !important;
    padding: 0 8px !important;
    font-size: 0.95em !important;
    color: #fff !important;
    background: transparent !important;
    z-index: 2 !important;
    line-height: 1 !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.sticky-header {
    box-sizing: border-box !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: auto !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.sticky-header #menuBtn {
    border: none !important;
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
}
/* Force sticky header and its form to always be horizontal (row) on all screen sizes */
.sticky-header, .sticky-header .header-left, .sticky-header form, .sticky-header #bibleForm {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100%;
    gap: 0px !important;
}

.sticky-header input,
.sticky-header button,
.sticky-header select {
    width: auto !important;
    margin: 0 1px !important;
    font-size: 1em !important;
}
body > * {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.content, .main, .wrapper, .bible-content, .bible-main, .bible-container {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
body, .container, table, tr, td, th {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
table, tr, td {
    border: none !important;
    outline: none !important;
}
/* Clean style for in-content chapter header */
.chapter-sticky-header {
        margin: 0 !important;
        padding: 0 !important;
    background: none !important;
    border: none !important;
    color: #111 !important;
    font-weight: bold;
    font-size: 1.22em !important;
    text-align: left !important;
    padding: 0 !important;
    letter-spacing: normal;
    box-shadow: none !important;
    border-radius: 0 !important;
}
/* Compact navigation arrow buttons */
button[name="nav"] {
    padding: 0.1em 0.4em;
    min-width: 0;
    width: 2.2em;
    height: 2.2em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    background: transparent;
    box-shadow: none;
}
#chapter {
    width: 70px !important;
    min-width: 0;
    box-sizing: border-box;
}

body {
    font-family: Calibri, sans-serif;
    margin: 4vw;
    /* max-width removed to allow natural content width */
    margin-left: auto;
    margin-right: auto;
    //background: #f7f7f7; // (very light gray)
    background: #fafafa; // (almost white, soft) // preferred 2
    //background: #f4f4f4; // (soft light gray)
    //background: #f5f6fa; // (bluish light gray, very gentle) -> preferred
    //background: #f9f9f6; // (warm, slightly creamy)
    //background: #f0f0f0; // (neutral light gray)
    //background: #f8f8ff; // (hint of blue, subtle)
    //background: #f3f6f9; // (cool, modern light gray)
    //background: #f6f5f3; // (warm, off-white)
    //background: #f2f2f2; // (classic light gray)

}
input {
    padding: 0.5em 1em;
    margin: 0.5em 0.3em;
    font-size: 1em;
    max-width: 100%;
    box-sizing: border-box;
}
button {
    padding: 0.5em 1.2em;
    font-size: 1em;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    cursor: pointer;
    transition: background 0.2s;
}
button:hover {
    background: #e0e0e0;
}
table {
    margin-top: 0 !important;
    border-collapse: collapse;
    width: 100%;
    word-break: break-word;
}
th, td {
    border: none;
    padding: 0.5em 0.3em;
    text-align: left;
    font-size: 1em;
}
td:first-child {
    white-space: nowrap;
    vertical-align: top;
    padding-right: 0.2em;
}
th {
    background-color: #f2f2f2;
}

/* Modal styles */
.modal-ro-note {
    display: none !important;
    position: fixed !important;
    z-index: 9999 !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0,0,0,0.4) !important;
    pointer-events: auto !important;
}
/* Interlinear ABA verse table styles */
.verse-table-aba {
    /* width removed to allow natural content width */
    border-collapse: collapse !important;
    margin-bottom: 1em !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
    table-layout: auto !important;
    font-size: 1.08em !important;
    overflow: visible !important;
}
.verse-table-aba tr {
    background: #fff !important;
}
.verse-table-aba td {
    vertical-align: top !important;
    padding: 8px 4px !important;
    text-align: center !important;
    min-width: 60px !important;
    font-size: 1em !important;
    color: #222 !important;
    border: none !important;
}
.verse-table-aba .aba-title-row td {
    background: #fff !important;
    font-weight: bold !important;
    padding: 1.2em 0 !important;
    text-align: center !important;
    font-size: 1.35em !important;
    color: #225599 !important;
    border-bottom: 4px solid #225599 !important;
    letter-spacing: 0.5px !important;
}
.verse-table-aba .aba-ref-cell {
    font-size: 1.05em !important;
    color: #000 !important;
    font-weight: bold !important;
    text-decoration: underline !important;
    letter-spacing: 1px !important;
    background: #f7faff !important;
    border-right: 1px solid #e0e7ef !important;
}
.verse-table-aba .aba-strong {
    color: #336699 !important;
    font-weight: bold !important;
    font-size: 0.95em !important;
}
.verse-table-aba .aba-greek {
    font-size: 1.1em !important;
    font-family: serif !important;
    color: #222 !important;
}
.verse-table-aba .aba-ro {
    font-size: 1.05em !important;
    color: #222 !important;
}
.verse-table-aba tr {
    height: auto !important;
}
.verse-table-aba td {
    height: auto !important;
}
.verse-table-aba {
    box-shadow: 0 2px 8px rgba(34,85,153,0.07);
}
/* Ensure parent containers do not restrict table height/overflow */
.bible-content, .bible-main, .bible-container, .main, .wrapper {
    /* overflow removed to allow natural content width */
    /* height removed to allow natural content width */
    /* max-height removed to allow natural content width */
}
.modal-ro-note.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background: rgba(0,0,0,0.4) !important;
}

/* Fix for Prefs-modal checkboxes: always show label text */
.modal-prefs-content label, .modal-prefs-content label span {
  color: #222 !important;
  font-size: 1em !important;
  display: inline;
  font-weight: normal;
  background: none !important;
}
.modal-prefs-content input[type="checkbox"] {
  margin-right: 0.5em;
}

/* Responsive Design: Mobile Styles */
@media (max-width: 600px) {
    body {
        margin: 2vw;
        font-size: 1em;
    }
    table, th, td {
        font-size: 0.98em;
    }
    .modal-ro-note-content {
        max-width: 95vw;
        padding: 1em;
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
        /* Hide default scrollbar on mobile, we'll use custom one */
        scrollbar-width: none; /* Firefox */
    }
    .modal-ro-note-content::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    /* Custom draggable scroll slider for mobile */
    .modal-scroll-slider {
        position: fixed;
        right: 8px;
        top: 15%;
        bottom: 15%;
        width: 60px;
        background: rgba(0,0,0,0.1);
        border-radius: 30px;
        z-index: 99999;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 8px 0;
    }
    .modal-scroll-track {
        flex: 1;
        width: 4px;
        background: #ddd;
        border-radius: 2px;
        position: relative;
        margin: 8px 0;
    }
    .modal-scroll-thumb {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 56px;
        height: 56px;
        background: #337ab7;
        border: 3px solid #fff;
        border-radius: 50%;
        box-shadow: 0 3px 12px rgba(0,0,0,0.4);
        cursor: grab;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: none;
    }
    .modal-scroll-thumb:active {
        cursor: grabbing;
        background: #2563a8;
        box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    }
    .modal-scroll-thumb::before {
        content: '⋮';
        color: #fff;
        font-size: 24px;
        font-weight: bold;
        line-height: 1;
    }
    .modal-scroll-arrow {
        width: 40px;
        height: 40px;
        background: #555;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    /* Keep sticky header and its form horizontal on mobile */
    .sticky-header form,
    .sticky-header #bibleForm {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        width: auto !important;
        margin-bottom: 0 !important;
        gap: 8px !important;
    }
    .sticky-header input,
    .sticky-header button,
    .sticky-header select {
        width: auto !important;
        margin: 0 !important;
        font-size: 1em !important;
    }
    input, button {
        font-size: 1em;
        width: 100%;
        box-sizing: border-box;
        margin: 0.5em 0 0.5em 0;
    }
    form {
        display: block !important;
        width: 100%;
        margin-bottom: 1em;
    }
    h2 {
        font-size: 1.2em;
        word-break: break-word;
    }
}