* {
    box-sizing: border-box;
    padding: 0px;
    margin: 0px;
    font-family: 'Questrial', sans-serif;
}

html {
    font-size: 14px;
    background-color: black;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: black;
    color: white;    
}

.ListItemStandard {
    margin: 10px 0;
}

h3 small {
    font-size: 1em;
    color: white;
}


.doc-layout {
    display: flex;
    align-items: flex-start;
    /* gap shrinks on small screens but never hits 0 */
    gap: clamp(8px, 2vw, 24px);
}

.doc-sidebar {
    /* sidebar stays within a sensible range and never collapses into nothing */
    flex: 0 0 clamp(180px, 25%, 280px);
    min-width: 160px;
}

.doc-content {
    flex: 1 1 auto;
    /* IMPORTANT: allows the content column to shrink instead of overflowing */
    min-width: 0;
}

/* Make nav buttons obey the sidebar width (no overflow into the content) */
#docNav .nav-link,
#docNav .fixed-nav-button {
    width: 100%;
    max-width: 100%;
    white-space: normal; /* allow wrapping */
    overflow-wrap: anywhere; /* break long words if needed */
    box-sizing: border-box;
}

/* Optional: on very small screens, stack instead of squeezing too hard */
@media (max-width: 576px) {
    .doc-layout {
        flex-direction: column;
    }

    .doc-sidebar {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }
}