
:root {
    --blue-dark: #1B3A5C;
    --blue-med: #2E75B6;
    --blue-light: #5B9BD5;
    --blue-pale: #D5E8F0;
    --blue-bg: #EBF3F9;
    --gray-text: #333333;
    --gray-light: #F5F5F5;
    --gray-med: #999999;
    --white: #FFFFFF;
    --orange: #FF9800;
    --sidebar-width: 280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-text);
    background: var(--gray-light);
    line-height: 1.6;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--blue-dark);
    overflow-y: auto;
    padding: 20px 0;
    z-index: 100;
}

.sidebar-header {
    padding: 10px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 10px;
}

.sidebar-header h2 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 4px;
}

.sidebar-header p {
    color: var(--blue-light);
    font-size: 12px;
}

.sidebar-nav a {
    display: block;
    padding: 8px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.sidebar-nav a.active {
    background: var(--blue-med);
    color: var(--white);
    font-weight: 600;
}

.sidebar-nav .section-label {
    display: block;
    padding: 12px 20px 4px;
    color: var(--blue-light);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Main content */
.main {
    margin-left: var(--sidebar-width);
    padding: 0;
    min-height: 100vh;
}

/* Hero section (landing page) */
.hero {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-med));
    color: var(--white);
    padding: 60px 40px;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero .subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero .summary-table {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

/* Content area */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.content h1 {
    color: var(--blue-dark);
    font-size: 32px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--blue-med);
}

.content h2 {
    color: var(--blue-med);
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content h3 {
    color: var(--blue-dark);
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.content h4 {
    color: var(--blue-dark);
    font-size: 17px;
    margin-top: 20px;
    margin-bottom: 8px;
}

.content p {
    margin-bottom: 12px;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.content th {
    background: var(--blue-med);
    color: var(--white);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
}

.content td {
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
    min-width: 80px;
}

.content tr:nth-child(even) td {
    background: var(--gray-light);
}

.content table td:first-child,
.content table th:first-child {
    white-space: nowrap;
}

.content table td:last-child,
.content table th:last-child {
    white-space: normal;
}

.content ul, .content ol {
    margin: 10px 0 10px 24px;
}

.content li {
    margin-bottom: 6px;
}

.content hr {
    border: none;
    border-top: 2px solid var(--blue-pale);
    margin: 30px 0;
}

.content code {
    background: var(--gray-light);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

/* Cards grid */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.card h3 {
    color: var(--blue-dark);
    margin-bottom: 8px;
    font-size: 18px;
}

.card p {
    color: var(--gray-med);
    font-size: 14px;
}

.card .num {
    display: inline-block;
    background: var(--blue-med);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Download button */
.download-btn {
    display: inline-block;
    background: var(--blue-med);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    margin: 10px 5px;
}

.download-btn:hover {
    background: var(--blue-dark);
}

/* Breadcrumbs */
.breadcrumb {
    padding: 15px 40px;
    font-size: 13px;
    color: var(--gray-med);
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb a {
    color: var(--blue-med);
    text-decoration: none;
}

/* Details link */
.details-link {
    display: inline-block;
    background: var(--blue-pale);
    color: var(--blue-dark);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
}

.details-link:hover {
    background: var(--blue-med);
    color: var(--white);
}

/* Prev/next navigation */
.page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: var(--white);
    border-top: 1px solid #e0e0e0;
    margin-top: 30px;
}

.page-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue-med);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid var(--blue-pale);
    border-radius: 6px;
    background: var(--blue-bg);
    transition: background 0.2s, color 0.2s;
}

.page-nav a:hover {
    background: var(--blue-med);
    color: var(--white);
}

.page-nav .spacer {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        max-height: 60px;
        overflow: hidden;
        transition: max-height 0.3s;
    }
    .sidebar.open {
        max-height: 100vh;
    }
    .main {
        margin-left: 0;
    }
    .hero h1 { font-size: 28px; }
    .content { padding: 20px; }
    .cards { grid-template-columns: 1fr; }
}
