.doc-card {
    overflow: hidden;
}

.doc-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent-strong) 10%, transparent);
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.doc-content {
    color: var(--ink);
}

.doc-page-title,
.doc-section-title {
    margin-bottom: 0.8rem;
}

.doc-page-title {
    font-size: 1.5rem;
}

.doc-section-title {
    margin-top: 1.4rem;
    font-size: 1.15rem;
}

.doc-paragraph {
    margin-bottom: 0.9rem;
    color: var(--graphite);
    line-height: 1.7;
}

.doc-list {
    margin: 0 0 1rem 1.2rem;
    padding: 0;
}

.doc-list li {
    margin-bottom: 0.45rem;
    color: var(--graphite);
    line-height: 1.65;
}

.doc-list--indented {
    margin-left: 1.6rem;
}

.doc-update {
    margin: 1rem 0 0.5rem;
    color: var(--accent-strong);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.doc-code {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 14px;
    background: var(--paper-2);
    overflow-x: auto;
}

.doc-content code {
    padding: 0.08rem 0.35rem;
    border-radius: 6px;
    background: color-mix(in srgb, var(--accent-strong) 8%, transparent);
    color: var(--accent-strong);
}

/* ── release notes ────────────────────────────────────────────────────── */

/* Read like a document, not like a UI: generous rhythm, and the version
   headings large enough to scan for the one you are on. */
.release-notes h2 {
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hair);
    font-family: var(--font-display);
    font-size: var(--text-lg);
}

.release-notes h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.release-notes h3 {
    margin: 1.75rem 0 0.75rem;
    font-size: var(--text-base);
    font-weight: 600;
}

.release-notes p,
.release-notes li {
    line-height: 1.65;
    color: var(--graphite);
}

.release-notes code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--accent-strong);
}
