@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fa;
    color: #222;
    display: flex;
    min-height: 100vh;
}

/* Sidebar Nav */
nav#sidebar {
    width: 240px;
    min-width: 240px;
    background: #1a2639;
    color: #cdd6e0;
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

nav#sidebar .site-title {
    background: #0e1724;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1.2rem 1.1rem;
    letter-spacing: 0.02em;
    border-bottom: 2px solid #2ecc71;
    text-decoration: none;
    display: block;
}

nav#sidebar ul {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

nav#sidebar ul li a {
    display: block;
    padding: 0.55rem 1.1rem;
    color: #cdd6e0;
    text-decoration: none;
    font-size: 0.88rem;
    border-left: 3px solid transparent;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

nav#sidebar ul li a:hover,
nav#sidebar ul li a.active {
    background: #243447;
    border-left-color: #2ecc71;
    color: #fff;
}

nav#sidebar ul li.has-sub > a {
    font-weight: 600;
}

nav#sidebar ul.sub-menu {
    padding: 0;
}

nav#sidebar ul.sub-menu li a {
    padding-left: 2rem;
    font-size: 0.83rem;
    color: #a8b9c8;
}

nav#sidebar ul.sub-menu li a:hover {
    color: #fff;
    background: #1e2f42;
}

/* Main Content */
main#content {
    flex: 1;
    padding: 2.5rem 3rem;
    max-width: 900px;
}

main#content h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1a2639;
    margin-bottom: 1.2rem;
    border-bottom: 3px solid #2ecc71;
    padding-bottom: 0.4rem;
}

main#content h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #243447;
    margin-top: 1.8rem;
    margin-bottom: 0.7rem;
}

main#content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 1.4rem;
    margin-bottom: 0.5rem;
}

main#content p {
    line-height: 1.75;
    margin-bottom: 1rem;
    color: #333;
}

main#content ul, main#content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.75;
}

main#content a {
    color: #1a7a4a;
    text-decoration: underline;
}

main#content a:hover {
    color: #2ecc71;
}

main#content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* Sizing and Alignment Utilities */
main#content img:not(.full-width) {
    max-width: 380px; /* Matched to original site's "Large" setting */
}

.align-right {
    float: right !important;
    margin-left: 1.5rem !important;
    margin-bottom: 1rem !important;
    clear: right;
}

.align-left {
    float: left !important;
    margin-right: 1.5rem !important;
    margin-bottom: 1rem !important;
    clear: left;
}

.align-center {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Clearfix for containers with floated images */
main#content section::after,
main#content .mYVXT::after,
main#content .tyJCtd::after {
    content: "";
    display: table;
    clear: both;
}


main#content iframe {
    max-width: 100%;
    border: none;
    border-radius: 6px;
    margin: 1rem 0;
}

main#content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.2rem;
}

main#content td, main#content th {
    border: 1px solid #d0d7df;
    padding: 0.5rem 0.8rem;
    font-size: 0.92rem;
}

main#content th {
    background: #1a2639;
    color: #fff;
}

main#content tr:nth-child(even) td {
    background: #f0f4f8;
}

@media (max-width: 700px) {
    body { flex-direction: column; }
    nav#sidebar {
        width: 100%;
        min-width: 0;
        height: auto;
        position: relative;
    }
    main#content { padding: 1.2rem 1rem; }
}
