.wrap {
    max-width: none;
}

/* The official announcement background is light, including in dark themes. */
body .phpbb_announcement,
body .phpbb_announcement > div,
body .phpbb_announcement strong {
    color: #243746 !important;
}

body .phpbb_announcement > div {
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

body .phpbb_announcement a,
body .phpbb_announcement a:visited {
    color: #155b8a !important;
}

.cn-style-title {
    display: block;
    padding: 5px 8px;
    font-weight: bold;
}

.cn-style-select {
    display: block;
    width: 100%;
    padding: 5px 8px;
    box-sizing: border-box;
    border: 1px solid var(--vf-line, #b4bac0);
    border-radius: 3px;
    background: var(--vf-input, #fff);
    color: var(--vf-text, #333);
    font: inherit;
    text-align: left;
}

.cn-style-apply {
    margin-top: 6px;
}

.cn-style-auto-save .cn-style-apply {
    display: none;
}

/* Full-size photographs occupy a line; smileys retain their inline layout. */
.content img.postimage {
    display: block;
}

/* Native post links are inline-block, so the image's link must break too. */
.content a.postlink:has(> img.postimage) {
    display: block;
    width: fit-content;
    max-width: 100%;
}

/* Long migrated names/URLs must wrap inside their profile column. */
.postprofile dt,
.postprofile dd,
.postprofile a {
    overflow-wrap: anywhere;
    min-width: 0;
}

@media (min-width: 701px) {
    /* Native search reserves 30%, which is excessive on a full-width forum. */
    .search .postprofile {
        box-sizing: border-box;
        width: 22%;
        max-width: 260px;
    }

    .search .postbody {
        width: calc(100% - min(22%, 260px) - 20px);
    }
}
