:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-muted: #f2f5fa;
    --text: #1d2533;
    --text-muted: #556074;
    --border: #d8e0eb;
    --accent: #1769e0;
    --accent-strong: #0f56c0;
    --shadow: 0 18px 48px rgba(25, 40, 72, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(23, 105, 224, 0.08), transparent 32%),
        linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.landing-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.landing-card {
    width: 100%;
    max-width: 1080px;
    padding: 40px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(216, 224, 235, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.landing-card h1,
.document-shell h1 {
    margin: 0 0 12px;
    line-height: 1.2;
    color: #151b26;
}

.landing-card h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.landing-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.card-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.card-link {
    display: block;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card-link:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(23, 105, 224, 0.12);
    border-color: rgba(23, 105, 224, 0.38);
}

.card-link strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
    color: #17202d;
}

.card-link span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.document-page {
    padding: 32px 20px 48px;
}

.document-shell {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 28px 36px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(216, 224, 235, 0.9);
    box-shadow: var(--shadow);
}

.top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.nav-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-pill:hover {
    text-decoration: none;
    border-color: rgba(23, 105, 224, 0.4);
    color: var(--accent-strong);
}

.nav-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.doc-label {
    margin: 0 0 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.header-meta {
    margin: 0 0 28px;
    color: var(--text-muted);
    font-style: italic;
}

.document-shell h1 {
    font-size: clamp(2rem, 3vw, 2.4rem);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.document-shell h2 {
    margin-top: 36px;
    margin-bottom: 14px;
    color: #182131;
    font-size: 1.32rem;
}

.document-shell h3 {
    margin-top: 28px;
    margin-bottom: 10px;
    color: #223047;
    font-size: 1.08rem;
}

.document-shell p,
.document-shell ul {
    margin: 0 0 16px;
}

.document-shell ul {
    padding-left: 22px;
}

.document-shell li + li {
    margin-top: 8px;
}

.home-link {
    display: inline-flex;
    margin-top: 24px;
    font-weight: 600;
}

@media (max-width: 720px) {
    .landing-card,
    .document-shell {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .top-nav {
        align-items: flex-start;
    }
}
