/* styles.css */
body {
    font-family: Arial, sans-serif;
    font-size: 100%;
    line-height: 1.6;
    padding: 0;
    background-color: #f7f6c0;
    color: #15025c;
    max-width: 1024px;
    margin: 0 auto;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: #15025c;
    color: #f7f6c0;
    text-decoration: none;
}

.skip-to-content:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

/* Navigation Menu */
.nav-menu {
    background-color: #15025c;
    padding: 15px;
    margin-bottom: 30px;
    width: 100%;
    border-radius: 8px;
    box-sizing: border-box;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-menu li {
    width: 100%;
}

.nav-menu button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: #f7f6c0;
    padding: 8px 15px;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
}

.nav-menu button:after {
    content: "▼";
    font-size: 0.8em;
    transition: transform 0.3s;
}

.nav-menu button[aria-expanded="false"]:after {
    transform: rotate(-90deg);
}

.nav-menu button:hover,
.nav-menu button:focus {
    background-color: #2b1080;
    outline: 2px solid #f7f6c0;
    outline-offset: -2px;
        color: #f7f6c0;
}

.nav-menu a {
    color: #f7f6c0;
    text-decoration: none;
    padding: 8px 15px;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu a:hover,
.nav-menu a:focus {
    background-color: #2b1080;
    outline: 2px solid #f7f6c0;
    outline-offset: -2px;
            color: #f7f6c0;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 20px !important;
}

.submenu[aria-hidden="false"] {
    max-height: 500px; /* Adjust based on content */
}

.menu-category {
    margin-bottom: 5px;
}

/* Rest of existing styles */
.container {
    max-width: 1024px;
    margin: 20px auto;
    padding: 20px;
    background: #f7f6c0;
    border: 1px solid #15025c;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
   
h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #15025c;
    line-height: 1.2;
    border-bottom: 2px solid #15025c;
    padding-bottom: 10px;
}
   
h2 {
    font-size: 1.5em;
    margin-top: 20px;
    color: #15025c;
    line-height: 1.2;
}

h3 {
    font-size: 1.25em;
    color: #15025c;
    line-height: 1.2;
}

/* Table of Contents */
.table-of-contents {
    margin: 2em 0;
    border: 1px solid #15025c;
    border-radius: 8px;
    padding: 0;
}

.toc-header {
    background-color: #15025c;
    color: #f7f6c0;
    padding: 10px 20px;
    margin: 0;
    border-radius: 7px 7px 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toc-header:after {
    content: "▼";
    font-size: 0.8em;
    transition: transform 0.3s;
}

.toc-header[aria-expanded="false"]:after {
    transform: rotate(-90deg);
}

.toc-content {
    padding: 20px;
    margin: 0;
}

.toc-content[aria-hidden="true"] {
    display: none;
}

.table-of-contents ol {
    padding-left: 20px;
    list-style-type: decimal;
    margin: 0;
}
   
.table-of-contents ol li {
    margin-bottom: 10px;
    line-height: 1.4;
}
   
.table-of-contents ol ol {
    margin-top: 10px;
    padding-left: 20px;
}
   
.content p {
    margin-top: 10px;
    text-align: left;
    margin-bottom: 1.2em;
}
   
.content {
    margin-top: 20px;
}

h2, h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    border-top: 2px solid #15025c;
    padding-top: 10px;
}

pre {
    background-color: #fff8e7;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    border: 1px solid #15025c;
    margin: 1em 0;
}
   
code {
    background-color: #fff8e7;
    padding: 2px 5px;
    border-radius: 3px;
    border: 1px solid #15025c;
}

a {
    color: #2b1080;
    text-decoration: underline;
}

a:hover, a:focus {
    color: #15025c;
    text-decoration: underline;
    outline: 2px solid #15025c;
    outline-offset: 2px;
}

* {
    letter-spacing: 0.12px;
    word-spacing: 0.16px;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #15025c;
    outline-offset: 2px;
}

html {
    font-display: swap;
}
