﻿/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /*   --primary: #1a5276;
    --primary-light: #2980b9;
    --primary-bg: #f0f6fa;
    --accent: #e67e22;
    --text: #2c3e50;
    --text-light: #5d6d7e;
    --border: #d5dbdb;
    --bg: #ffffff;
    --sidebar-bg: #f8f9fa;
    --warning-bg: #fef9e7;
    --warning-border: #f39c12;
    --info-bg: #eaf2f8;
    --info-border: #2980b9;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;*/
    /*--primary: #1a5276;    
    --primary-light: #2980b9;
    --primary-bg: #f0f6fa;
    --border: #d5dbdb;
    --sidebar-bg: #f8f9fa;
    --warning-bg: #fef9e7;
    --warning-border: #f39c12;
    --info-bg: #eaf2f8;
    --info-border: #2980b9;*/

    --primary: #1a6394;       /* medium blue – section h2 titles */
    --primary-light: #2980b9; /* lighter blue – badges, links */
    --primary-bg: #f0f6fa;    /* light blue tint background */
    --text: #34495e;          /* body / h3 / h4 text */
    --text-light: #7f8c8d;    /* secondary text */

    --border: #dddddd;
    --sidebar-bg: #fafafa;
    --warning-bg: #fef9e7;
    --warning-border: #d4a017;
    --info-bg: #eaf4fb;
    --info-border: #2471a3;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/*body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: #f5f6f8;
}
*/
/*a {
    color: var(--primary-light);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
        color: var(--primary);
    }
*/
/* ===== Header ===== */
.site-header {
    background: var(--primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.logo-sub {
    font-size: 13px;
    opacity: .75;
    display: none;
}

@media (min-width: 768px) {
    .logo-sub {
        display: inline;
    }
}

.header-nav {
    display: flex;
    gap: 4px;
}

    .header-nav a {
        color: rgba(255,255,255,.8);
        padding: 8px 14px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        transition: all .15s;
    }

        .header-nav a:hover {
            background: rgba(255,255,255,.12);
            color: #fff;
            text-decoration: none;
        }

        .header-nav a.active {
            background: rgba(255,255,255,.2);
            color: #fff;
        }

/* ===== Page Layout ===== */
.page-container {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    padding: 0;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--bg);
    border-right: 1px solid var(--border);
    display: none;
}

@media (min-width: 1024px) {
    .sidebar {
        display: block;
    }
}

.sidebar-sticky {
    position: sticky;
    top: 64px;
    padding: 24px 20px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

    .sidebar-sticky h3 {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1.2px;
        color: var(--text-light);
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border);
    }

.toc {
    list-style: none;
}

    .toc li {
        margin-bottom: 2px;
    }

    .toc > li > a {
        display: block;
        padding: 5px 10px;
        font-size: 13.5px;
        color: var(--text);
        border-radius: 4px;
        transition: all .15s;
        line-height: 1.4;
    }

        .toc > li > a:hover,
        .toc > li > a.active {
            background: var(--primary-bg);
            color: var(--primary);
            text-decoration: none;
        }

        .toc > li > a.active {
            font-weight: 600;
            border-left: 3px solid var(--primary-light);
            padding-left: 7px;
        }

    .toc ul {
        list-style: none;
        margin-left: 12px;
    }

        .toc ul li a {
            display: block;
            padding: 3px 10px;
            font-size: 12.5px;
            color: var(--text-light);
            border-radius: 4px;
            line-height: 1.4;
        }

            .toc ul li a:hover {
                color: var(--primary);
                text-decoration: none;
            }

/* ===== Main Content ===== */
.content {
    flex: 1;
    min-width: 0;
    background: var(--bg);
    padding: 40px 48px 60px;
}

@media (max-width: 768px) {
    .content {
        padding: 24px 20px 40px;
    }
}

/* ===== Title Block ===== */
.page-title-block {
    margin-bottom: 20px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--primary);
}

    .page-title-block h1 {
        font-size: 28px;
        font-weight: 700;
        color: var(--primary);
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .page-title-block .subtitle {
        font-size: 15px;
        color: var(--text-light);
        margin-bottom: 12px;
    }

.meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
}

    .badge.outline {
        background: transparent;
        border: 1.5px solid var(--primary-light);
        color: var(--primary-light);
    }

/* ===== Sections ===== */
section {
    margin-bottom: 40px;
}

    section h2 {
        font-size: 22px;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 16px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border);
    }

    section h3 {
        font-size: 17px;
        font-weight: 600;
        color: var(--primary);
        margin-top: 24px;
        margin-bottom: 10px;
    }

    section h4 {
        font-size: 15px;
        font-weight: 600;
        color: var(--primary);
        margin-top: 16px;
        margin-bottom: 8px;
    }

.meet section h2 { color: var(--primary); }
.meet section h3 { color: var(--primary); }
.meet section h4 { color: var(--primary); font-size: 15px; font-weight: 600; }

    section p {
        margin-bottom: 12px;
        color: var(--text);
    }

    section ul, section ol {
        margin-bottom: 14px;
        padding-left: 24px;
        color: var(--text);
    }

    section li {
        margin-bottom: 6px;
        color: var(--text);
    }

    section strong {
        color: var(--text);
        font-weight: 700;
    }

/* ===== Callout Boxes ===== */
.callout {
    padding: 14px 18px;
    border-radius: 6px;
    margin: 16px 0;
    border-left: 4px solid;
}

    .callout.warning {
        background: var(--warning-bg);
        border-color: var(--warning-border);
    }

    .callout.info {
        background: var(--info-bg);
        border-color: var(--info-border);
    }

    .callout p {
        margin: 0;
        font-size: 14.5px;
    }

/* ===== Example Box ===== */
.example-box {
    background: #f4f6f7;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 18px;
    margin: 12px 0 16px;
    font-size: 14px;
}

    .example-box p {
        margin-bottom: 8px;
    }

        .example-box p:last-child {
            margin-bottom: 0;
        }

/* ===== Requirement Box ===== */
.requirement-box {
    background: var(--sidebar-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 22px;
    margin: 12px 0 20px;
}

    .requirement-box h4 {
        margin-top: 0;
        color: var(--primary);
    }

/* ===== Contact Grid ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.contact-card {
    background: var(--sidebar-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
}

    .contact-card h4 {
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: .8px;
        color: var(--text-light);
        margin: 0 0 6px;
    }

    .contact-card a {
        font-size: 14px;
        font-weight: 500;
    }

.contact-box {
    background: var(--primary-bg);
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 12px;
}

/* ===== Info Table ===== */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14.5px;
}

    .info-table th,
    .info-table td {
        padding: 10px 14px;
        text-align: left;
        border: 1px solid var(--border);
    }

    .info-table th {
        background: var(--primary);
        color: #fff;
        font-weight: 600;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: .5px;
    }

    .info-table tbody tr:nth-child(even) {
        background: #f8f9fa;
    }

/* ===== Checklist ===== */
.checklist {
    background: var(--sidebar-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 16px 0;
}

    .checklist h3 {
        margin-top: 0;
        margin-bottom: 12px;
        color: var(--primary);
    }

.check-list {
    list-style: none;
    padding-left: 0;
}

    .check-list li {
        position: relative;
        padding-left: 28px;
        margin-bottom: 8px;
        font-size: 14.5px;
    }

        .check-list li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 4px;
            width: 18px;
            height: 18px;
            border: 2px solid var(--primary-light);
            border-radius: 3px;
        }

/* ===== Process Flow ===== */
.process-flow {
    margin: 16px 0;
}

.process-step {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
}

    .process-step:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 19px;
        top: 44px;
        bottom: -16px;
        width: 2px;
        background: var(--border);
    }

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    padding-top: 2px;
}

    .step-content h4 {
        margin-top: 0;
        margin-bottom: 4px;
        font-size: 15px;
        color: var(--primary);
    }

    .step-content p {
        font-size: 14px;
        color: var(--text-light);
        margin-bottom: 0;
    }

/* ===== Subsection ===== */
.subsection {
    margin-left: 0;
    padding-left: 16px;
    border-left: 2px solid var(--border);
}

/* ===== Flowchart Placeholder ===== */
.flowchart-placeholder {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 48px 24px;
    text-align: center;
    color: var(--text-light);
    background: var(--sidebar-bg);
}

    .flowchart-placeholder .placeholder-icon {
        font-size: 40px;
        margin-bottom: 12px;
        opacity: .4;
    }

    .flowchart-placeholder p {
        margin: 0;
        font-size: 15px;
    }

/* ===== Doc Footer ===== */
.doc-footer {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-light);
}

    .doc-footer p {
        margin-bottom: 4px;
    }

/* ===== Print ===== */
@media print {
    .site-header, .sidebar {
        display: none;
    }

    .content {
        padding: 20px;
    }

    .page-container {
        display: block;
    }
}
