﻿/* Network pages style harmonized with develop pages */

:root {
    --bg: #f4f8fc;
    --card: #ffffff;
    --text: #18273c;
    --line: #d7e2ef;
    --primary: #00408f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
}

/* Sticky global navigation style matching develop pages */
#nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

/* Center the legacy root table and give it develop-like card tone */
body > table {
    width: min(100%, 1160px);
    margin: 18px auto 36px;
    border-collapse: collapse;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(22, 44, 82, 0.07);
}

/* Override old fixed-width attributes for better centering and mobile fit */
body > table [width] {
    width: auto !important;
    max-width: 100% !important;
}

body > table table {
    width: 100% !important;
    max-width: 100% !important;
}

body > table > tbody > tr > td {
    padding: 0 14px;
    border: 0;
}

/* Keep compatibility with old align attributes */
div[align="center"],
div[align="left"] {
    width: 100%;
    text-align: inherit;
}

h1,
h2,
h3 {
    color: var(--primary);
    margin: 0.9rem 0 0.65rem;
    line-height: 1.35;
}

h1 {
    font-size: clamp(1.25rem, 2.6vw, 1.95rem);
}

h2 {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
}

h3 {
    font-size: clamp(1rem, 1.9vw, 1.2rem);
    font-weight: 600;
}

p {
    margin: 0.7rem 0 0.95rem;
    color: var(--text);
}

td,
p,
h1,
h2,
h3 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

a:hover {
    border-bottom-color: var(--primary);
}

blockquote {
    margin: 0;
    padding: 0;
}

font {
    color: inherit;
    font-size: inherit;
    font-family: inherit;
}

table {
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

img[usemap] {
    max-width: 100%;
    height: auto;
}

@media (max-width: 900px) {
    body > table {
        width: calc(100% - 20px);
        margin: 10px auto 20px;
        border-radius: 10px;
    }

    body > table > tbody > tr > td {
        padding: 0 10px;
    }

    body {
        font-size: 14px;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 13px;
    }

    h1 {
        font-size: 1.2rem;
    }
}

/* Shared blue footer */
.site-footer {
    margin-top: 20px;
    background: linear-gradient(180deg, #0a4f9f 0%, #003d82 100%);
    color: #eaf2ff;
    border-top: 1px solid #0f5ab4;
}

.site-footer .footer-inner {
    width: min(100%, 1160px);
    margin: 0 auto;
    padding: 18px 14px;
}

.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    line-height: 1.7;
}

.site-footer .footer-links a {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.35);
}

.site-footer .footer-links a:hover {
    border-bottom-color: #ffffff;
}

.site-footer .footer-copy {
    margin-top: 10px;
    font-size: 0.92rem;
    color: #d9e8ff;
}

@media (max-width: 520px) {
    .site-footer .footer-inner {
        padding: 14px 10px;
    }

    .site-footer .footer-copy {
        font-size: 0.85rem;
    }
}
