/* v1.3.1b Article Editor Image Controls & Search */

.article-editor-shell {
    border: 1px solid var(--border-light, #38445a);
    background: rgba(255,255,255,.025);
    padding: 14px;
}

.article-editor-modebar,
.article-editor-toolbar,
.article-inline-tools,
.selected-image-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.article-inline-tools input {
    flex: 1;
    min-width: 260px;
}

.editor-divider {
    display: inline-block;
    width: 1px;
    height: 30px;
    background: var(--border-light, #38445a);
    margin: 0 6px;
}

.editor-mini-label,
.selected-image-panel label {
    width: auto;
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--muted, #9fb6d8);
}

#imageAlign,
#selectedImageAlign {
    width: 150px;
}

#imageWidth,
#selectedImageWidth {
    width: 95px;
}

#selectedImageAlt {
    min-width: 220px;
    flex: 1;
}

.selected-image-panel {
    border: 1px solid var(--border-light, #38445a);
    background: rgba(162,88,1,.12);
    padding: 10px;
}

.selected-image-panel strong {
    color: #fff;
    margin-right: 8px;
}

.article-visual-editor,
.article-code-editor {
    width: 100%;
    min-height: 460px;
    padding: 18px;
    border: 1px solid var(--border-light, #38445a);
    background: #ffffff;
    color: #111111;
    line-height: 1.7;
    overflow: auto;
}

.article-code-editor {
    display: none;
    background: #101010;
    color: #e8e8e8;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 0.92rem;
    white-space: pre;
}

.article-visual-editor img {
    cursor: pointer;
}

.article-image-selected {
    outline: 4px solid #f59e0b !important;
    outline-offset: 4px;
}

.article-visual-editor table {
    border-collapse: collapse;
    width: 100%;
}

.article-visual-editor td,
.article-visual-editor th {
    border: 1px solid #999;
    padding: 6px;
}

.editor-image-left {
    float: left;
    max-width: 45%;
    margin: 0 18px 12px 0;
}

.editor-image-right {
    float: right;
    max-width: 45%;
    margin: 0 0 12px 18px;
}

.editor-image-center {
    display: block;
    max-width: 80%;
    margin: 16px auto;
}

.editor-image-full {
    display: block;
    width: 100%;
    height: auto;
    margin: 16px 0;
}

/* Public top toolbar search */
.nav-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
}

.nav-search input {
    width: 180px;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 0;
}

.nav-search button {
    min-height: 36px;
    padding: 0 10px;
}

/* Search page */
.search-summary {
    margin: 18px 0 28px;
    color: var(--muted, #9fb6d8);
}

.search-group {
    margin-bottom: 46px;
}

.search-result {
    display: grid;
    gap: 8px;
}

.search-result-url {
    color: var(--accent, #D9B26A);
    font-size: .85rem;
    overflow-wrap: anywhere;
}

@media(max-width: 960px) {
    .nav-search {
        width: 100%;
        margin: 10px 0;
    }

    .nav-search input {
        flex: 1;
        width: auto;
    }
}
