.bslib-sidebar,
.sidebar {
    color: #2b2b2b !important;
}
/* 
.sb-white {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.sb-white :is(h4, h5) {
    margin: 0 0 8px 0;
    font-family: "Libre Baskerville", serif;
    color: var(--ink);
}

.sb-white p {
    margin: 0 0 10px 0;
    color: #2b2b2b !important;
} */

.sb-white {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: clamp(10px, 1.2vw, 14px);
    padding: clamp(10px, 2vw, 14px);
    margin-bottom: clamp(10px, 2vw, 14px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.sb-white h4 {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    line-height: 1.3;
    margin: 0 0 clamp(6px, 1.2vw, 10px) 0;
    font-family: "Libre Baskerville", serif;
    color: var(--ink);
}

.sb-white h5 {
    font-size: clamp(0.85rem, 1.3vw, 1rem);
    line-height: 1.3;
    margin: 0 0 clamp(6px, 1.2vw, 10px) 0;
    font-family: "Libre Baskerville", serif;
    color: var(--ink);
}

.sb-white p {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    margin: 0 0 clamp(8px, 1.4vw, 12px) 0;
    color: #2b2b2b !important;
}

.sb-notepad {
    position: relative;
    background: #fffdf6;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    padding: 14px 14px 8px 18px;
    margin-bottom: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.sb-notepad::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to bottom,
            rgba(76, 107, 0, 0.10) 0px,
            rgba(76, 107, 0, 0.10) 1px,
            transparent 1px,
            transparent 26px);
    opacity: 0.35;
    pointer-events: none;
}

.sb-notepad::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 14px;
    width: 2px;
    background: rgba(200, 60, 60, 0.35);
    pointer-events: none;
}

.sb-notepad>* {
    position: relative;
    z-index: 1;
}

.sb-notepad :is(h4, h5) {
    margin: 0 0 2px 0;
    font-family: "Libre Baskerville", serif;
    color: var(--ink);
}

.sb-notepad h4 {
    padding-right: 0 !important;
    margin: 0 0 2px 0;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.sb-notepad h4 {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    line-height: 1.3;
}

.sb-notepad h5 {
    font-size: clamp(0.85rem, 1.3vw, 1rem);
    line-height: 1.3;
}

.sb-notepad .prose,
.sb-notepad p,
.sb-notepad li {
    font-size: clamp(0.9rem, 1.25vw, 1rem);
    line-height: clamp(1.45, 1.6vw, 1.6);
}

.sb-notepad ul,
.sb-notepad ol {
    padding-left: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: clamp(8px, 1.6vw, 12px);
}

.sb-notepad li {
    margin-bottom: clamp(4px, 1vw, 6px);
}

/*  text area input in notepad */

.sb-notepad .form-group {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sb-notepad textarea.form-control {
    width: 100%;
    flex: 1;
    min-height: 0;

    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;

    padding: 6px 6px 6px 0;
    margin: 0;

    resize: none;

    font-family: inherit;
    font-size: inherit;
    line-height: 26px;

    position: relative;
    z-index: 2;
}

.sb-notepad textarea.form-control:focus {
    background: transparent;
    box-shadow: none;
    outline: none;
}


.toc-title {
    display: block;
    font-family: "Libre Baskerville", serif;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;

    margin-bottom: 12px;
    padding-top: 20px;
    padding-left: 6px;

    color: var(--ink);
}

/* emoji picker */

.sb-emoji-picker {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.sb-emoji-btn {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 6px 10px;
    cursor: pointer;
    line-height: 1;
    font-size: 18px;
}

.sb-emoji-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.sb-emoji-btn:active {
    transform: translateY(1px);
}

.sb-notepad {
    position: relative;
}

.sb-notepad .sb-reveal-btn {
    appearance: none;
    border: 1px solid rgba(31, 35, 24, 0.18) !important;
    background: rgba(255, 255, 255, 0.55) !important;
    color: rgba(31, 35, 24, 0.88) !important;
    font-weight: 650 !important;
    font-size: 0.88rem !important;
    line-height: 1 !important;
    padding: 9px 12px !important;
    border-radius: 999px !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05) !important;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.sb-notepad .sb-reveal-btn:hover,
.sb-notepad .sb-reveal-btn:focus {
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(31, 35, 24, 0.26) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px);
    outline: none !important;
}

.sb-notepad .sb-reveal-btn:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.sb-notepad .sb-reveal-btn.btn:focus,
.sb-notepad .sb-reveal-btn.btn:active:focus,
.sb-notepad .sb-reveal-btn.btn.focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(31, 35, 24, 0.12) !important;
}

.sb-notepad .sb-reveal-btn[disabled],
.sb-notepad .sb-reveal-btn:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.sb-notepad .sb-reveal-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.sb-notepad h4 {
    margin-top: 0;
    padding-right: 120px;
}

.sb-notepad.sb-answer .sb-answer-body {
    flex: 1;
    min-height: 0;
    padding-top: 46px;
}

div.sb-notepad.sb-answer {
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.sb-answer-col>.sb-notepad {
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.sb-answer-col>.sb-notepad .sb-answer-body {
    flex: 1;
    min-height: 0;
    padding-top: 46px;
}

.sb-notepad:has(.sb-answer-body) {
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.sb-notepad:has(.sb-answer-body) .sb-answer-body {
    flex: 1;
    min-height: 0;
    padding-top: 46px;
}


.sb-notepad.sb-question {
    min-height: 220px;
}

.sb-notepad.sb-question .sb-q-label {
    margin: 0 0 8px 0;
    font-family: "Libre Baskerville", serif;
    color: var(--ink);
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.sb-reveal-pill {
    appearance: none;
    border: 1px solid rgba(31, 35, 24, 0.18);
    background: rgba(255, 255, 255, 0.55);
    color: rgba(31, 35, 24, 0.88);
    font-weight: 650;
    font-size: 0.88rem;
    line-height: 1;
    padding: 9px 12px;
    border-radius: 999px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transition:
        transform 120ms ease,
        background 120ms ease,
        border-color 120ms ease,
        box-shadow 120ms ease;
}

.sb-reveal-pill:hover,
.sb-reveal-pill:focus {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(31, 35, 24, 0.26);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.sb-reveal-pill:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sb-reveal-pill.btn:focus,
.sb-reveal-pill.btn:active:focus,
.sb-reveal-pill.btn.focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 35, 24, 0.12);
}