:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --ink: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f8fafc;
    --red: #e50914;
    --red-dark: #b91c1c;
    --code: #0b1120;
    --green: #047857;
    --blue: #0369a1;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}

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

a:hover {
    color: var(--red-dark);
    text-decoration: underline;
}

.shell {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    background: rgba(255, 255, 255, 0.96);
    border-right: 1px solid var(--line);
    height: 100vh;
    overflow: auto;
    padding: 22px 18px;
    position: sticky;
    top: 0;
}

.brand {
    align-items: center;
    display: flex;
    margin-bottom: 22px;
}

.brand img {
    display: block;
    height: 56px;
    object-fit: contain;
    width: auto;
}

.version-pill {
    background: #fee2e2;
    border-radius: 999px;
    color: var(--red-dark);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
    padding: 5px 10px;
    text-transform: uppercase;
}

.nav-title {
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 18px 0 8px;
    text-transform: uppercase;
}

.sidebar a {
    border-radius: 8px;
    color: var(--muted);
    display: block;
    font-size: 14px;
    padding: 7px 10px;
}

.sidebar a:hover {
    background: #fff1f2;
    color: var(--red);
    text-decoration: none;
}

.sidebar a.active {
    background: #fff1f2;
    box-shadow: inset 3px 0 0 var(--red);
    color: var(--red);
    font-weight: 800;
}

.content {
    min-width: 0;
    padding: 34px;
}

.poster-hero {
    margin: 0 auto 24px;
    max-width: 1180px;
}

.apiql-v3-poster {
    aspect-ratio: 3 / 2;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.hero {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.07);
    margin: 0 auto 24px;
    max-width: 1180px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    padding: 42px;
}

.eyebrow {
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    letter-spacing: 0;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    margin: 0 0 16px;
}

h2 {
    font-size: 1.75rem;
    margin: 0 0 14px;
}

h3 {
    font-size: 1.15rem;
    margin: 28px 0 10px;
}

h4 {
    font-size: 1rem;
    margin: 18px 0 8px;
}

p {
    margin: 0 0 14px;
}

.lead {
    color: #475569;
    font-size: 1.05rem;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.button {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    padding: 11px 16px;
}

.button.primary {
    background: var(--red);
    color: #fff;
}

.button.secondary {
    background: var(--ink);
    color: #fff;
}

.button:hover {
    color: #fff;
    text-decoration: none;
}

.hero-panel {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.transport-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}

.transport {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.transport strong {
    color: var(--ink);
    display: block;
    font-size: 1.05rem;
}

.section {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    margin: 0 auto 18px;
    max-width: 1180px;
    padding: 28px;
}

.grid-2,
.grid-3 {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.tile strong {
    color: var(--ink);
    display: block;
    margin-bottom: 6px;
}

.label {
    color: var(--red);
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

pre {
    background: var(--code);
    border: 1px solid #1e293b;
    border-radius: 8px;
    color: #e5e7eb;
    font-size: 13px;
    line-height: 1.6;
    margin: 12px 0 18px;
    overflow: auto;
    padding: 16px;
}

code,
kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

p code,
li code,
td code {
    background: #f1f5f9;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--red-dark);
    padding: 2px 5px;
}

table {
    border-collapse: collapse;
    margin: 12px 0 18px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--soft);
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.callout {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #92400e;
    margin: 16px 0;
    padding: 14px 16px;
}

.ok {
    color: var(--green);
    font-weight: 800;
}

.info {
    color: var(--blue);
    font-weight: 800;
}

.footer {
    color: var(--muted);
    margin: 26px auto 0;
    max-width: 1180px;
    padding: 12px 0 34px;
    text-align: center;
}

@media (max-width: 1060px) {
    .shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        height: auto;
        position: static;
    }

    .content {
        padding: 18px;
    }

    .hero-inner,
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .apiql-v3-poster {
        border-radius: 6px;
    }

    .hero-inner,
    .section {
        padding: 20px;
    }

    .transport-grid {
        grid-template-columns: 1fr;
    }

    .brand img {
        height: 44px;
    }
}
