/* CSS Document - Final version with better paragraph spacing */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    background-color: #f8f9fa;
    overflow: hidden;
}

/* Top Bar */
.top-bar {
    background-color: #0066CC;
    color: white;
    height: 45px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-top: env(safe-area-inset-top);
    min-height: calc(45px + env(safe-area-inset-top));
}

.top-bar h1 {
    margin: 0;
    font-size: 23px;
    font-weight: 400;
    text-align: left;
}

/* Wrapper */
.wrapper {
    display: flex;
    flex: 1;
    margin-top: calc(45px + env(safe-area-inset-top));
    overflow: hidden;
}

/* Sidebar - Full height fix */
.sidebar {
    background-color: #003366;
    width: 200px;
    padding: 30px 0 20px 0;
    text-align: center;
    overflow-y: auto;
    height: 100%;
    min-height: 100%;
    padding-top: calc(20px + env(safe-area-inset-top, 15px));
}

.sidebar img {
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li a {
    display: block;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
}

.sidebar ul li a:hover,
.sidebar ul li a.current {
    background-color: #004C99;
}

/* Content Area */
.content {
    background-color: #E2E2E2;
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* Better paragraph spacing */
.content p {
    margin-bottom: 22px;     /* 1.5 spacing - nice balanced gap */
    line-height: 1.65;
}

/* Make the Essentials section tighter (single spaced) */
.content .essentials p {
    margin-bottom: 12px;     /* smaller gap for the download links */
}

/* Remove extra margin from the very last paragraph */
.content p:last-child {
    margin-bottom: 0;
}

/* Mobile */
@media (max-width: 992px) {
    .wrapper {
        flex-direction: column;
        margin-top: calc(45px + env(safe-area-inset-top));
    }

    .sidebar {
        width: 100%;
        height: auto;
        min-height: auto;
        padding-top: 20px;
    }

    .content {
        padding: 25px 20px;
    }
}