:root {
    --ink: #0f1117;
    --ink-soft: #3a3d4a;
    --ink-muted: #6b6f80;
    --bg: #f7f6f2;
    --surface: #ffffff;
    --accent: #1a4fff;
    --accent-light: #e8eeff;
    --rule: #e2e0d8;
    --brand-dark: #EF8019;
    --brand-mid: #1a3766;
    --green: #0a7c4b;
    --green-light: #e4f5ed;
    --red-light: #fdecea;
    --red: #c0392b;
}


.nav-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.nav-logo {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.nav-name {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

.nav-name span {
    color: #ffffff;
}

.tabs-bar {
    background: var(--brand-dark);
    padding: 0 40px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.tabs {
    display: flex;
    gap: 3px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    padding: 3px;
}

.tab-btn {
    padding: 7px 22px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.tab-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 3px 10px rgba(26, 79, 255, 0.4);
}

.meta-bar {
    display: flex;
    gap: 20px;
}

.meta-bar span {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.4);
}

.meta-bar strong {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}


.doc-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    max-width: 1060px;
    margin: 0 auto;
    padding: 36px 24px 80px;
}

.sidebar {
    position: sticky;
    top: 84px;
    height: fit-content;
    padding-right: 28px;
}

.sidebar-title {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 10px;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 1px;
}

.sidebar-nav a {
    display: block;
    padding: 6px 11px;
    border-radius: 6px;
    font-size: 12.5px;
    color: var(--ink-soft);
    text-decoration: none;
    transition: all 0.15s;
    border-left: 2px solid transparent;
}

.sidebar-nav a:hover {
    background: #ef801914;
    color: #EF8019;
    border-left-color: #EF8019;
}

.doc-content {
    min-width: 0;
}

.section {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--rule);
    padding: 30px 36px;
    margin-bottom: 16px;
    scroll-margin-top: 84px;
}

.section-num {
    display: inline-block;
    background: var(--brand-dark);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
}

.section h3 {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    margin: 18px 0 7px;
}

.section p {
    color: var(--ink-soft);
    margin-bottom: 11px;
    font-size: 13.5px;
}

.section p:last-child {
    margin-bottom: 0;
}

.section a {
    color: #EF8019;
}

ul.doc-list {
    list-style: none;
    margin: 8px 0 12px;
}

ul.doc-list li {
    padding: 5px 0 5px 20px;
    position: relative;
    font-size: 13.5px;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--rule);
}

ul.doc-list li:last-child {
    border-bottom: none;
}

ul.doc-list li::before {
    content: '›';
    position: absolute;
    left: 5px;
    color: #EF8019;
    font-weight: 700;
}

.infobox {
    border-radius: 8px;
    padding: 13px 16px;
    margin: 14px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.infobox.blue {
    background: #ef80191a;
    border-left: 3px solid #EF8019;
}

.infobox.green {
    background: var(--green-light);
    border-left: 3px solid var(--green);
}

.infobox.red {
    background: var(--red-light);
    border-left: 3px solid var(--red);
}

.infobox-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.infobox-text {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.55;
}

.infobox-text strong {
    color: var(--ink);
    font-weight: 600;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 13px;
}

.data-table th {
    background: var(--brand-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 9px 13px;
    text-align: left;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.03em;
}

.data-table th:first-child {
    border-radius: 7px 0 0 0;
}

.data-table th:last-child {
    border-radius: 0 7px 0 0;
}

.data-table td {
    padding: 9px 13px;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:nth-child(even) td {
    background: #fafaf8;
}

.contact-card {
    /* background: linear-gradient(135deg, var(--brand-dark) 0%, #1a3766 100%); */
    background: linear-gradient(270deg, #ffaf37 0%, #dd8f00 100%);
    border-radius: 10px;
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.contact-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    color: #fff;
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-detail {
    text-align: right;
}

.contact-detail a {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: block;
}

.contact-detail a:hover {
    text-decoration: underline;
}

footer {
    background: var(--brand-dark);
    padding: 20px 40px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

footer strong {
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {

    nav,
    .tabs-bar {
        padding: 0 16px;
    }

    .tabs-bar {
        padding-bottom: 14px;
        flex-direction: column;
    }

    .tabs {
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
        font-size: 12px;
    }

    .meta-bar {
        display: none;
    }

    .doc-layout {
        grid-template-columns: 1fr;
        padding: 16px 14px 60px;
    }

    .sidebar {
        display: none;
    }

    .section {
        padding: 20px 18px;
    }

    .contact-card {
        flex-direction: column;
    }

    .contact-detail {
        text-align: left;
    }
}