/* =========================
   Base Styles
   ========================= */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    background: #f5f5f5;
}

/* =========================
   Header & Brand Area
   ========================= */
header {
    background: #0b3d91;
    color: #fff;
    padding: 1rem 1.5rem;
}

    header h1 {
        margin: 0;
    }

    header p {
        margin: 0.25rem 0 0;
        font-size: 0.95rem;
        opacity: 0.9;
    }

h1 span.section-number {
    padding-right: 6px;
}

/* Speaking Access header with logo */
.sa-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #0d47a1; /* same blue you’re using */
    color: white;
}

.sa-logo {
    width: 60px; /* adjust to your preference */
    height: auto;
}

.sa-titleblock h1 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
}

.sa-titleblock .subtitle {
    margin: 0;
    font-size: 1rem;
    color: #dfe8ff; /* softer blue-white for readability */
}





/* =========================
   Skip Link (Accessibility)
   ========================= */
.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: #ffffff;
    color: #000000;
    padding: 8px 12px;
    z-index: 1000;
}

    .skip-link:focus {
        top: 10px;
    }

/* =========================
   Layout
   ========================= */
.layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* =========================
   Navigation Sidebar
   ========================= */
nav {
    width: 260px;
    max-width: 100%;
    background: #ffffff;
    border-right: 1px solid #ddd;
    padding: 1rem;
    box-sizing: border-box;
}

    nav h2 {
        font-size: 1.1rem;
        margin-top: 0;
    }

    nav ul {
        list-style: none;
        padding-left: 0;
        margin: 0;
    }

    nav li {
        margin: 0.25rem 0;
    }

    nav a {
        text-decoration: none;
        color: #0b3d91;
        font-size: 0.95rem;
    }

        nav a:hover,
        nav a:focus {
            text-decoration: underline;
        }

/* =========================
   Main Content Area
   ========================= */
main {
    flex: 1;
    padding: 1.5rem;
    box-sizing: border-box;
    padding-left: 20px;
}

    main h2 {
        margin-left: 0;
        font-weight: bold;
    }

    main h3 {
        margin-left: 1.5rem;
    }

    main p,
    main ul,
    main ol {
        margin-left: 3rem;
    }

/* =========================
   Sections / Cards
   ========================= */
section {
    margin-bottom: 1.5rem;
    background: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    border: 1px solid #ddd;
}

    section h3 {
        margin-top: 0;
    }

ul.bullet-list {
    margin-top: 0.5rem;
}

/* =========================
   Page-level TOC ("On this page")
   ========================= */
.page-toc {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

    .page-toc h3 {
        font-weight: bold;
    }

    .page-toc ul {
        list-style: none;
        padding-left: 0;
        margin: 0;
    }

    .page-toc li {
        margin: 0.25rem 0;
    }

    .page-toc a {
        text-decoration: none;
        color: #333;
        font-size: 0.95rem;
    }

        .page-toc a:hover,
        .page-toc a:focus {
            text-decoration: underline;
        }

.toc-list li {
    margin: 4px 0;
}

/* =========================
   Volume Commands Grid
   ========================= */
.volume-grid {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.volume-box {
    flex: 1;
    background: #ffffff;
    padding: 10px 5px;
}
.sa-header {
    flex-wrap: wrap;
}

.sa-search {
    flex-basis: 100%;
}

/* Optional: make the box a bit wider */
.sa-search-input {
    width: min(640px, 92vw);
}
/* =========================
   Responsive Adjustments
   ========================= */
@media (max-width: 800px) {
    .layout {
        flex-direction: column;
    }

    nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
}
