:root {
    --brand: #5b9bd5;
    --brand-dark: #397bb7;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f8fafc;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; }
body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    background: #fff;
    color: var(--ink);
    font: 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { max-width: 100%; }

.topnav {
    position: sticky;
    top: 0;
    z-index: 1200;
    width: 100%;
    border-bottom: 1px solid #eee;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.topnav .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    max-width: 1200px;
    min-height: 66px;
    margin: 0 auto;
    padding: 8px 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: #222;
    font-size: 15px;
    font-weight: 800;
}
.brand img { display: block; width: auto; height: 50px; object-fit: contain; }
.site-navigation { margin-left: auto; }
.site-menu > ul {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-menu a,
.dropdown-toggle {
    color: #444;
    font: inherit;
    font-size: 14px;
    border: 0;
    background: none;
    cursor: pointer;
}
.site-menu a:hover,
.dropdown-toggle:hover { color: var(--brand-dark); }
.dropdown { position: relative; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 5px; padding: 8px 0; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1300;
    min-width: 230px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(15,23,42,.14);
}
.dropdown-menu[hidden] { display: none !important; }
.dropdown-menu a { display: block; padding: 9px 10px; border-radius: 7px; white-space: nowrap; }
.dropdown-menu a:hover { background: #f5f7fb; }
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 7px 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.network-footer { margin-top: 60px; background: #0f172a; color: #cbd5e1; font-size: 14px; }
.network-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
    padding: 30px 20px;
}
.network-footer strong { display: block; margin-bottom: 8px; color: #fff; }
.network-footer p { margin: 0; }
.network-footer ul { margin: 0; padding: 0; list-style: none; columns: 2; }
.network-footer li { margin-bottom: 6px; }
.network-footer a { color: #cbd5e1; }
.network-footer a:hover { text-decoration: underline; }
.network-copy { padding: 12px; background: #020617; text-align: center; font-size: 13px; }

@media (max-width: 768px) {
    .topnav .container { min-height: 60px; padding: 6px 12px; }
    .brand span { display: none; }
    .brand img { height: 44px; }
    .menu-toggle { display: inline-flex; }
    .site-navigation {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        right: 12px;
        left: 12px;
        z-index: 1300;
        max-height: calc(100vh - 80px);
        margin: 0;
        overflow-y: auto;
        border: 1px solid #eee;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,.14);
    }
    .topnav.is-open .site-navigation { display: block; }
    .site-menu > ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; }
    .site-menu > ul > li { width: 100%; }
    .site-menu > ul > li > a,
    .dropdown-toggle { display: flex; width: 100%; justify-content: space-between; padding: 10px 12px; border-radius: 7px; }
    .dropdown-menu { position: static; width: 100%; min-width: 0; margin-top: 2px; padding: 4px 0 4px 12px; border: 0; box-shadow: none; }
    .network-container { grid-template-columns: 1fr; }
    .network-footer ul { columns: 1; }
}

/* Shared breadcrumb */
.breadcrumb {
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1;
}

.breadcrumb a {
    color: var(--brand-dark);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li:last-child span {
    display: block;
    max-width: min(620px, 70vw);
    overflow: hidden;
    color: #475569;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .breadcrumb {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .breadcrumb ol,
    .breadcrumb li {
        gap: 6px;
    }

    .breadcrumb li:last-child {
        flex: 1 1 100%;
    }

    .breadcrumb li:last-child::before {
        content: "";
    }

    .breadcrumb li:last-child span {
        max-width: 100%;
    }
}
