﻿/* ── Page header ── */

.md-page-header {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.md-page-header h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.md-page-header p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ── Syntax demo blocks ── */

.div-syntax-block {
    display: flex;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
}

.div-syntax-demo {
    width: 50%;
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.6;
    overflow-x: auto;
}

.div-syntax-demo pre {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: pre-wrap;
    word-break: break-word;
}

.div-syntax-demo pre code {
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: inherit;
}

.div-syntax-result {
    width: 50%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.div-syntax-html {
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.6;
    overflow-x: auto;
}

.div-syntax-html pre {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: pre-wrap;
    word-break: break-word;
}

.div-syntax-html pre code {
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: inherit;
}

.div-syntax-output {
    padding: 0.75rem 1rem;
    background: var(--color-surface-warm);
    flex: 1;
    line-height: 1.6;
}

.div-syntax-output p {
    margin: 0 0 0.4em;
    font-size: 0.82rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* Column headers */
.div-syntax-header {
    display: flex;
    border: 1px solid var(--color-border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-light);
    background: var(--color-surface-warm);
    margin-bottom: -1px; /* merge with block border */
}

.div-syntax-header-left {
    width: 50%;
    padding: 0.4rem 1rem;
    border-right: 1px solid var(--color-border);
}

.div-syntax-header-right {
    width: 50%;
    padding: 0.4rem 1rem;
}

@media (max-width: 600px) {
    .div-syntax-block {
        flex-direction: column;
    }

    .div-syntax-demo,
    .div-syntax-result {
        width: 100%;
        border-right: none;
    }

    .div-syntax-demo {
        border-bottom: 1px solid var(--color-border);
    }

    .div-syntax-header {
        flex-direction: column;
    }

    .div-syntax-header-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .div-syntax-header-right {
        width: 100%;
    }
}
