#editor h1, #editor h2, #editor h3{
    font-weight: 600;
}

#editor > *+*{
    margin-bottom: 5px;
}

#editor h1{
    font-size: 35px;
}

#editor h2{
    font-size: 30px;
}

#editor h3{
    font-size: 26px;
}

#editor pre{
    padding: 10px;
    background-color: #f4f4f5;
    overflow-x: auto;
}

#editor a{
    color: #0985c3;
}

#editor figure {
    margin: 1.5rem 0;
    text-align: center;
}

#editor figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

#editor .attachment__caption {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

/* ── PGN chess viewer ───────────────────────────────────────────────────── */
.pgnvjs {
    margin: 2rem 0;
    width: 100%;
}

/* board is 340 px (set by boardSize); moves fill the rest of the blog column.
   !important is required because pgn-viewer injects its own CSS after this file. */
.pgnvjs.layout-left {
    grid-template-columns: 340px 1fr !important;
}

/* on small screens stack vertically */
@media (max-width: 700px) {
    .pgnvjs.layout-left {
        grid-template-columns: 1fr !important;
    }
    .pgnvjs.layout-left .outerBoard,
    .pgnvjs.layout-left .moves {
        grid-column: 1 !important;
    }
}