/* Module Nav Bar Styles */
.module-nav {
    position: fixed;
    top: 50px; /* height of global nav bar */
    left: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    z-index: 999;
    display: flex;
    justify-content: center;
    gap: 16px;
    background: #f5f7fa;
    padding: 0px 0 0 0;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
}

.module-nav-btn {
    background: none;
    border: none;
    color: #4a6fa5;
    font-size: 1.15rem;
    padding: 12px 32px;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none !important;
}
.module-nav-btn.active {
    background: #4a6fa5;
    color: #fff;
    font-weight: bold;
}
.module-nav-btn:focus-visible {
    outline: 2px solid #4a6fa5;
}
.module-nav-btn:active,
.module-nav-btn:focus,
.module-nav-btn:hover {
    text-decoration: none !important;
}

@media (max-width: 600px) {
    .module-nav {
        flex-direction: column;
        gap: 0;
        justify-content: flex-start;
        padding: 0;
    }
    .module-nav.minimized {
        height: 44px;
        overflow: hidden;
        padding-bottom: 0;
    }
    .module-nav-toggle {
        position: absolute;
        top: 4px;
        right: 8px;
        background: #4a6fa5;
        color: #fff;
        border: 2px solid #fff;
        border-radius: 50%;
        font-size: 1.5em;
        z-index: 1001;
        cursor: pointer;
        display: block;
        box-shadow: 0 2px 6px rgba(0,0,0,0.10);
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s, color 0.2s, border 0.2s;
    }
    .module-nav-toggle:active, .module-nav-toggle:focus {
        background: #385a8a;
        border-color: #ff9e3d;
        outline: none;
    }
    .module-nav-btn {
        border-radius: 0;
        width: 100%;
        text-align: left;
        padding: 12px 18px;
    }
}
@media (min-width: 601px) {
    .module-nav-toggle {
        display: none !important;
    }
}

/* Section Navigation Buttons (Back/Next) */
.section-nav-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    margin-bottom: 0;
}
.section-nav-btns button {
    background: #4a6fa5;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 28px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.section-nav-btns button:disabled {
    background: #bcd2ee;
    color: #fff;
    cursor: not-allowed;
}
.section-nav-btns button:focus-visible {
    outline: 2px solid #4a6fa5;
}
.section-nav-btns button:hover:not(:disabled) {
    background: #385a8a;
}

[id] {
    scroll-margin-top: 120px;
}

.lab-nav-btn {
    background: #f5f5f5;
    color: #222;
    border: 1px solid #ccc;
    margin-left: 0.5em;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 0.5em 1em;
    border-radius: 6px;
    transition: background 0.2s, box-shadow 0.2s;
}
.lab-nav-btn:hover {
    background: #e0e7ef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.lab-nav-btn svg {
    margin-right: 0.5em;
    height: 1.1em;
    width: 1.1em;
    display: inline-block;
    vertical-align: middle;
}

.section-toc {
  text-align: left;
  font-size: 1em;
  margin-bottom: 1.5em;
}
.section-toc a {
  color: #4a6fa5;
  text-decoration: none;
  margin-right: 0.7em;
}
.section-toc a:hover {
  text-decoration: underline;
}
section {
  margin-bottom: 2.5em;
}
ul, ol {
  margin-bottom: 1.2em;
}
li {
  margin-bottom: 0.5em;
}
h2, h3, h4 {
  margin-top: 1.5em;
  margin-bottom: 0.7em;
}

.module-nav-dropdown-content {
    display: none;
}
.module-nav-dropdown.active .module-nav-dropdown-content,
.module-nav-dropdown:hover .module-nav-dropdown-content {
    display: block;
} 