@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    --ink: #0f172a;
    --slate: #475569;
    --muted: #64748b;
    --faint: #94a3b8;
    --line: #e3e8ef;
    --line-strong: #cbd5e1;
    --paper: #fff;
    --wash: #f6f8fa;
    --blue: #0e7cb4;
    --blue-dark: #0a5f8f;
    --navy: #0d1526;
    --green: #2e8b62;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--wash);
    color: var(--slate);
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.font-secondary,
.navbar-brand,
.landing-navbar .nav-link {
    font-family: Archivo, "IBM Plex Sans", sans-serif;
}

.font-weight-semibold { font-weight: 600 !important; }
.font-weight-bolder { font-weight: 700 !important; }
.text-large { font-size: 110% !important; }
.line-height-1 { line-height: 1 !important; }
.bg-color-white { background-color: #fff !important; }

.landing-navbar {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 64px;
    background: rgba(255, 255, 255, .94) !important;
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(140%) blur(8px);
}

.landing-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.landing-navbar .navbar-brand img {
    display: none;
}

.landing-navbar .navbar-brand::before {
    content: "";
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, #c8871b 0 22deg, transparent 22deg 30deg);
    box-shadow: inset 0 0 0 3px #c8871b, inset 0 0 0 9px #fff, inset 0 0 0 11px #c8871b;
}

.landing-navbar .nav-link {
    color: #334155;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.landing-navbar-alt {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-shadow: none !important;
}

.btn-round { border-radius: 6px; }
.btn-primary {
    min-height: 36px;
    padding: 7px 16px;
    border: 1px solid var(--blue-dark) !important;
    border-radius: 6px;
    background: var(--blue) !important;
    color: #fff !important;
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--blue-dark) !important;
    color: #fff !important;
}

.content-wrapper {
    min-height: calc(100vh - 200px);
    padding-top: 96px;
    padding-bottom: 60px;
    background: var(--wash);
}

.content-card {
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: none;
}

.content-card h1,
.doc-content h1 {
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--blue);
    color: var(--ink);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -.025em;
}

.content-card h2,
.doc-content h2 {
    margin-top: 32px;
    margin-bottom: 14px;
    color: var(--ink);
    font-size: 1.35rem;
}
.doc-content h2:first-of-type { margin-top: 0; }
.disclaimer {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--wash);
    font-size: 0.9rem;
}

.content-card h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 1.05rem;
}

.content-card p,
.content-card li,
.doc-content p,
.doc-content li {
    color: var(--slate);
    font-size: 1rem;
    line-height: 1.75;
}

.content-card a,
.doc-content a { color: var(--blue); }
.content-card a:hover,
.doc-content a:hover { color: var(--blue-dark); }

.last-update {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-style: italic;
}

.footer {
    background: var(--navy) !important;
    border-top: 0;
    color: #94a3b8;
}
.footer a,
.footer-link {
    color: #cbd5e1 !important;
    margin-left: 1.5rem;
    text-decoration: none;
}
.footer .text-dark,
.footer a.text-dark { color: #fff !important; }
.footer hr { border-top-color: #1e293b; }

.doc-wrapper {
    display: flex;
    min-height: calc(100vh - 80px);
    padding-top: 64px;
}
.doc-sidebar {
    width: 280px;
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 100;
    overflow-y: auto;
    padding: 28px 18px;
    background: var(--wash);
    border-right: 1px solid var(--line);
}
.doc-sidebar-title {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blue);
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 600;
}
.doc-sidebar-title i { margin-right: 8px; color: var(--blue); }
.doc-nav { list-style: none; margin: 0; padding: 0; }
.doc-nav li { margin-bottom: 4px; }
.doc-nav a {
    display: block;
    padding: 8px 12px;
    border-radius: 5px;
    color: var(--slate);
    font-size: 14px;
    text-decoration: none;
}
.doc-nav a:hover { background: #e8f2f9; color: var(--blue); }
.doc-nav a.active { background: var(--blue); color: #fff; }
.doc-nav-sub { margin-top: 4px; padding-left: 16px; }
.doc-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px 32px 64px;
    background: var(--paper);
}
.doc-content code {
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--wash);
    color: #a63a31;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.9rem;
}
.doc-content pre {
    padding: 15px;
    overflow-x: auto;
    border-radius: 6px;
    background: var(--wash);
}
.hint-box {
    margin: 20px 0;
    padding: 15px 20px;
    border-left: 4px solid var(--green);
    border-radius: 0 6px 6px 0;
    background: #e4f1ea;
}
.hint-box i { margin-right: 10px; color: var(--green); }
.data-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table th,
.data-table td {
    padding: 12px 15px;
    border: 1px solid var(--line);
    text-align: left;
}
.data-table th {
    background: var(--blue);
    color: #fff;
    font-weight: 600;
}
.data-table tr:nth-child(even) { background: var(--wash); }
.download-btn {
    display: inline-block;
    margin: 5px 10px 5px 0;
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--blue);
    color: #fff !important;
    font-size: 0.9rem;
    text-decoration: none;
}
.download-btn:hover { background: var(--blue-dark); color: #fff !important; text-decoration: none; }

.highlight {
    margin-bottom: 30px;
    padding: 28px;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    text-align: center;
}
.highlight h2 { margin: 0; color: #fff; font-size: 2.2rem; }
.highlight p { margin: 10px 0 0; color: #cbd5e1; }

.compensation-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}
.compensation-table th,
.compensation-table td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}
.compensation-table th {
    background: var(--wash);
    color: var(--ink);
    font-weight: 600;
}

.article-kicker {
    margin: 0 0 10px;
    color: var(--blue);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.article-lead { font-size: 1.1rem; }
.article-faq { margin-top: 40px; }
.article-faq article { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
.article-faq h3 { margin: 0 0 8px; font-size: 1.05rem; }
.article-faq p { margin: 0; }
.article-nav-links { margin-top: 28px; display: grid; gap: 8px; }
.doc-content pre,
.content-card pre {
    padding: 16px 18px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--wash);
    color: var(--ink);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.85rem;
    line-height: 1.7;
}

@media (max-width: 991px) {
    .doc-sidebar { display: none; }
    .doc-content { margin-left: 0; padding: 24px 16px 48px; }
    .content-card { padding: 24px 18px; }
}
