:root {
    --bg:#0b1220;
    --ink:#17263c;
    --muted:#59677a;
    --blue:#2563eb;
    --line:#e4eaf3;
    --paper:#fff;
    --pale:#f4f7fb
}
* {
    box-sizing:border-box
}
html {
    scroll-behavior:smooth
}
body {
    margin:0;
    background:var(--pale);
    font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;
    color:var(--ink);
    line-height:1.75
}
a {
    color:var(--blue)
}
.wrap {
    width:min(1120px,calc(100% - 40px));
    margin:auto
}
.top {
    background:#0b1220;
    color:#fff
}
.top-inner {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:20px 0
}
.brand {
    font-weight:800;
    letter-spacing:.02em;
    color:#fff;
    text-decoration:none;
    font-size:19px
}
.brand span {
    color:#7db5ff
}
.top small {
    color:#aebbd0
}
.hero {
    background:linear-gradient(120deg,#101c32,#173c66);
    color:#fff;
    padding:75px 0 82px
}
.eyebrow {
    font-size:12px;
    letter-spacing:.16em;
    text-transform:uppercase;
    color:#9ec9ff;
    font-weight:800
}
.hero h1 {
    font-size:clamp(34px,5vw,60px);
    max-width:850px;
    line-height:1.13;
    letter-spacing:-.04em;
    margin:16px 0 20px
}
.hero p {
    max-width:780px;
    font-size:19px;
    color:#d4e0f0;
    line-height:1.65
}
.chips {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:28px
}
.chips span {
    border:1px solid #6888ad;
    padding:6px 13px;
    border-radius:30px;
    color:#d9e7f7;
    font-size:13px
}
.layout {
    display:grid;
    grid-template-columns:250px minmax(0,1fr);
    gap:35px;
    align-items:start;
    padding:40px 0 80px
}
.toc {
    position:sticky;
    top:20px;
    background:white;
    border:1px solid var(--line);
    border-radius:14px;
    padding:22px;
    max-height:90vh;
    overflow:auto
}
.toc strong {
    display:block;
    margin-bottom:12px
}
.toc a {
    display:block;
    text-decoration:none;
    color:#40536e;
    font-size:13px;
    padding:7px 0;
    border-bottom:1px solid #f1f3f8;
    line-height:1.35
}
.toc a:hover {
    color:var(--blue)
}
main {
    min-width:0
}
.intro,.section,.faq,.endnote {
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:16px;
    padding:34px;
    margin-bottom:20px
}
.intro p {
    font-size:18px
}
.notice {
    background:#edf4ff;
    border-left:4px solid #3474d4;
    padding:16px 18px;
    border-radius:8px;
    color:#244266;
    font-size:14px
}
.section {
    display:grid;
    grid-template-columns:42px 1fr;
    gap:15px;
    scroll-margin-top:25px
}
.section-num {
    color:#a0b2cb;
    font-size:17px;
    font-weight:800;
    padding-top:5px
}
h2 {
    font-size:clamp(22px,2.5vw,29px);
    line-height:1.28;
    margin:0 0 20px;
    letter-spacing:-.02em
}
p {
    margin:0 0 16px
}
p:last-child {
    margin-bottom:0
}
.lead-answer {
    font-weight:600;
    color:#203e66
}
.faq details {
    border-top:1px solid var(--line);
    padding:17px 0
}
.faq summary {
    cursor:pointer;
    font-weight:700;
    line-height:1.45
}
.faq details p {
    margin:12px 0 0;
    color:var(--muted)
}
footer {
    background:#0b1220;
    color:#aab8ce;
    padding:34px 0;
    font-size:14px
}
footer strong {
    color:white
}
@media(max-width:850px) {
    .layout {
        grid-template-columns:1fr
    }
    .toc {
        position:static;
        max-height:270px
    }
    .hero {
        padding:50px 0
    }
    .section {
        grid-template-columns:1fr;
        padding:25px
    }
    .section-num {
        display:none
    }
    .intro,.faq,.endnote {
        padding:25px
    }
}
@media(max-width:500px) {
    .wrap {
        width:min(100% - 28px,1120px)
    }
    .top small {
        display:none
    }
    .hero p {
        font-size:16px
    }
    .hero h1 {
        font-size:35px
    }
}
/* Layout repair: prevent article content from entering narrow numbering column */
.section {
    grid-template-columns:42px minmax(0,1fr)
}
.section > div:not(.section-num) {
    min-width:0;
    overflow-wrap:break-word
}
.section-num {
    white-space:nowrap
}
.section h3 {
    font-size:20px;
    line-height:1.4;
    margin:26px 0 12px;
    color:#203e66
}
@media(max-width:850px) {
    .section {
        grid-template-columns:minmax(0,1fr)
    }
}
