/*
 * Blog content presentation styles.
 *
 * Trix is the source format for Blog v1.2 editor content. The editor, admin
 * preview, and public post output all use Trix-compatible HTML, so this file
 * only adds YouBrew presentation polish. It must not convert spacing rules or
 * override Trix's block flow, otherwise edit/save cycles can stop matching the
 * public view.
 */
.trix-content.blog-trix-editor,
.trix-content.blog-post-content {
    overflow-wrap: break-word;
    word-break: break-word;
    color: inherit;
}

.trix-content.blog-trix-editor h1,
.trix-content.blog-post-content h1 {
    font-size: 1.65rem;
    line-height: 1.25;
    font-weight: 800;
}

.trix-content.blog-trix-editor strong,
.trix-content.blog-trix-editor b,
.trix-content.blog-post-content strong,
.trix-content.blog-post-content b {
    font-weight: 800;
}


.trix-content.blog-trix-editor u,
.trix-content.blog-post-content u {
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.trix-content.blog-trix-editor a,
.trix-content.blog-post-content a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.trix-content.blog-trix-editor blockquote,
.trix-content.blog-post-content blockquote {
    border-left-color: #d6a756;
    border-radius: 0.75rem;
    padding: 0.85rem 1.15rem;
    background: #fff8ec;
    color: #4a3420;
    font-style: italic;
}

.trix-content.blog-trix-editor code,
.trix-content.blog-post-content code {
    display: inline-block;
    border: 1px solid #d9e2ec;
    border-radius: 0.35rem;
    padding: 0.08rem 0.35rem;
    background: #f4f7fb;
    color: #172033;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92em;
    font-style: normal;
}

.trix-content.blog-trix-editor pre,
.trix-content.blog-post-content pre {
    border: 1px solid #d9e2ec;
    border-radius: 0.85rem;
    padding: 1rem;
    background: #111827;
    color: #f8fafc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95rem;
    line-height: 1.65;
    white-space: pre;
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
    tab-size: 4;
}

.trix-content.blog-trix-editor pre {
    min-height: 3rem;
}


.trix-content.blog-trix-editor pre,
.trix-content.blog-trix-editor pre *,
.trix-content.blog-post-content pre,
.trix-content.blog-post-content pre * {
    overflow-wrap: normal;
    word-break: normal;
    word-wrap: normal;
}

trix-editor.blog-trix-editor pre {
    overflow-x: auto;
    max-width: 100%;
}

.trix-content.blog-trix-editor pre,
.trix-content.blog-trix-editor pre *,
.trix-content.blog-post-content pre,
.trix-content.blog-post-content pre * {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.trix-content.blog-trix-editor pre code,
.trix-content.blog-post-content pre code {
    display: inline;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
}

/* Trix editor chrome only. Do not change child block spacing here. */
trix-editor.blog-trix-editor {
    min-height: 18rem;
    overflow-x: hidden;
    border: 1px solid var(--border, #d9e2ec);
    border-radius: 0.65rem;
    padding: 0.75rem;
    background: #ffffff;
    font-weight: 400;
}

trix-editor.blog-trix-editor:focus {
    outline: 2px solid rgba(214, 167, 86, 0.35);
    outline-offset: 2px;
}
