/*
 * Block editor canvas styles.
 *
 * Loaded with add_editor_style() (see AI_Style\Block_Editor_Support), so every
 * selector here is scoped to the editor canvas by WordPress — `body` becomes
 * `.editor-styles-wrapper`. It makes the canvas read like the conversation
 * document the content is published into: the #1f1b28 conversation
 * background, the theme's text colours, and its font.
 *
 * Block-level styles (code, quote, table, buttons…) live in theme.json so
 * they apply to the editor and the front end alike. The values below mirror
 * the :root tokens and the `.post-content` rules in style.css; keep them in
 * step when those change.
 */

body {
    background-color: #1f1b28; /* --color-bg-secondary */
    color: #ede9f3;            /* --color-text-secondary */
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

/* Post title, styled like .ai-style-singular-meta__title. */
.editor-post-title,
.editor-post-title__input,
.wp-block-post-title {
    color: #ffffff; /* --color-text-primary */
    font-family: inherit;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff; /* --color-text-primary */
    font-family: inherit;
    line-height: 1.3;
}

a:where(:not(.wp-element-button)) {
    color: #ffffff; /* --color-text-primary */
    text-decoration: underline;
    text-underline-offset: 2px;
}

code,
kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 0.875em;
}

:not(pre) > code {
    background-color: #2e2839; /* --color-bg-message-user */
    border-radius: 6px;        /* --radius-sm */
    padding: 0.125em 0.375em;
}

/* Core's table borders use currentColor, which is near-white here. */
.wp-block-table :is(thead, tfoot, th, td) {
    border-color: #494158; /* --color-border-primary */
}

.wp-block-table :is(th, td) {
    padding: 0.5em 0.75em;
}

.wp-block-table th {
    color: #ffffff; /* --color-text-primary */
}
