/* Bible study session page: make its contents and its note privacy plain.
   Tester feedback: the deeper study material sat far down the page with nothing
   at the top to say it was there, and it was unclear who could read a note. */

/* "In this session" links in the page header. */
.study-outline {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    margin-top: 1.75rem;
}

.study-outline-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.study-outline-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.study-outline-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 2.75rem;
    padding: 0.375rem 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.study-outline-list a:hover {
    background: rgba(255, 255, 255, 0.14);
}

.study-outline-count {
    min-width: 1.375rem;
    padding: 0.0625rem 0.375rem;
    border-radius: 999px;
    background: var(--brand-accent, #fcd34d);
    color: var(--brand-navy, #2b3a7f);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

/* Leave room for the site header when a link jumps to its section. */
#passage-title,
#guide-title,
#community-wisdom-title,
#study-language-title,
#study-commentary-title {
    scroll-margin-top: 6rem;
}

/* One line under the notes tabs saying what the open tab shows. */
.study-notes-scope-help {
    margin: 0.5rem 0 0;
    color: var(--study-muted, #5b6474);
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
}

/* Who can read the note being written, shown before it is saved. */
.study-note-audience {
    margin: 0 0 0.75rem;
    padding: 0.625rem 0.75rem;
    border-left: 3px solid var(--brand-navy, #2b3a7f);
    border-radius: 0.5rem;
    background: #ffffff;
    color: var(--study-ink, #1f2937);
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.45;
}

@media (max-width: 768px) {
    /* On a phone the links become one row that scrolls sideways, like app tabs. */
    .study-outline {
        justify-content: flex-start;
    }

    .study-outline-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .study-outline-list::-webkit-scrollbar {
        display: none;
    }
}
