/* Developer page: API and Linux CLI. */

.dev-page {
    background: var(--sienna);
    flex: 1;
}

.dev-header {
    text-align: center;
    padding: 2rem 0 0.5rem;
}

.dev-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--cream);
}

.dev-header .page-intro {
    font-size: 1rem;
    font-weight: 400;
    color: var(--cream-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.dev-content {
    padding: 1.5rem 0 4rem;
}

.dev-content .container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dev-card {
    background: var(--color-surface);
    border: 3px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 6px 6px 0 var(--color-shadow);
    padding: 1.5rem;
    scroll-margin-top: 6rem;
    min-width: 0;
}

.dev-card h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.dev-card h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--color-text);
}

.dev-card p {
    margin-bottom: 0.75rem;
}

.dev-card a:not(.btn) {
    color: var(--color-primary);
    text-decoration: underline;
}

.dev-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0 0.25rem;
}

.dev-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0.25rem 0 1rem;
}

.dev-list li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.dev-card code {
    font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--cream-light);
    border: 2px solid var(--color-border);
    border-radius: 6px;
    padding: 0.05rem 0.35rem;
}

/* A long chip stays on one line and scrolls, so its border does not split. */
.dev-card :not(pre) > code {
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
    vertical-align: bottom;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.dev-code {
    font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.55;
    font-weight: 400;
    background: var(--dark-brown);
    color: var(--cream-light);
    border: 3px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 4px 4px 0 var(--color-shadow);
    padding: 1rem;
    margin: 0.75rem 0 1rem;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    white-space: pre;
}

.dev-code code {
    font-family: inherit;
    font-size: inherit;
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    color: inherit;
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
}

@media (min-width: 768px) {
    .dev-header {
        padding: 3rem 0 1rem;
    }

    .dev-header h1 {
        font-size: 2.25rem;
    }

    .dev-header .page-intro {
        font-size: 1.125rem;
    }

    .dev-card {
        padding: 2rem;
    }
}

.dev-help {
    color: var(--cream-light);
    text-align: center;
    max-width: 40rem;
    margin: 0.5rem auto 0;
    line-height: 1.6;
}

.dev-help a {
    color: var(--cream);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .dev-actions .btn {
        width: 100%;
    }
}
