.ww-wiki-page {
    min-height: 100vh;
}

.ww-wiki-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
}

.ww-wiki-hero-copy {
    min-width: 0;
}

.ww-wiki-hero-actions,
.ww-wiki-form-actions,
.ww-wiki-article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.ww-wiki-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: end;
}

.ww-wiki-search {
    min-width: 0;
}

.ww-wiki-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.ww-wiki-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ww-wiki-stats span,
.ww-wiki-alert {
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.86);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: .92rem;
}

.ww-wiki-stats strong {
    color: #fff;
}

.ww-wiki-alert {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.ww-wiki-alert.is-success {
    border-color: rgba(65, 214, 147, .45);
    background: rgba(23, 137, 92, .22);
}

.ww-wiki-alert.is-error {
    border-color: rgba(255, 116, 116, .48);
    background: rgba(120, 22, 30, .25);
}

.ww-wiki-section-head,
.ww-wiki-article-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.ww-wiki-section-head h2,
.ww-wiki-article-head h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.45rem, 2.8vw, 2.3rem);
    line-height: 1.05;
}

.ww-wiki-form {
    display: grid;
    gap: 16px;
}

.ww-wiki-editor-shell {
    display: grid;
    gap: 10px;
}

.ww-wiki-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: rgba(3, 10, 18, .42);
}

.ww-wiki-toolbar button,
.ww-wiki-upload-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 7px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.9);
    padding: 8px 11px;
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
}

.ww-wiki-toolbar button:hover,
.ww-wiki-upload-btn:hover {
    border-color: rgba(86, 198, 255, .45);
    background: rgba(86, 198, 255, .14);
}

.ww-wiki-upload-btn input {
    display: none;
}

.ww-wiki-upload-status {
    min-height: 20px;
    color: rgba(255,255,255,.68);
    font-size: .9rem;
}

.ww-wiki-wysiwyg {
    min-height: 430px;
    max-height: 70vh;
    overflow: auto;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    background: rgba(255,255,255,.94);
    color: #17202a;
    line-height: 1.62;
    outline: none;
}

.ww-wiki-wysiwyg:focus {
    border-color: rgba(44, 150, 205, .7);
    box-shadow: 0 0 0 3px rgba(44, 150, 205, .2);
}

.ww-wiki-wysiwyg h2,
.ww-wiki-wysiwyg h3,
.ww-wiki-wysiwyg p,
.ww-wiki-wysiwyg ul,
.ww-wiki-wysiwyg ol,
.ww-wiki-wysiwyg blockquote,
.ww-wiki-wysiwyg figure {
    margin-top: 0;
}

.ww-wiki-wysiwyg h2 {
    font-size: 1.7rem;
    line-height: 1.12;
    margin-bottom: 12px;
    color: #0f2635;
}

.ww-wiki-wysiwyg h3 {
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #173449;
}

.ww-wiki-wysiwyg p,
.ww-wiki-wysiwyg li {
    font-size: 1rem;
}

.ww-wiki-wysiwyg blockquote {
    border-left: 4px solid #2c96cd;
    background: #edf7fc;
    margin: 0 0 16px;
    padding: 12px 14px;
    color: #173449;
}

.ww-wiki-wysiwyg figure {
    margin: 0 0 18px;
}

.ww-wiki-wysiwyg img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.ww-wiki-wysiwyg figcaption {
    color: #536577;
    font-size: .9rem;
    margin-top: 7px;
}

.ww-wiki-hidden-body {
    display: none;
}

.ww-wiki-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ww-wiki-results {
    display: grid;
    gap: 12px;
}

.ww-wiki-result {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(8, 16, 26, .42);
    color: rgba(255,255,255,.82);
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.ww-wiki-result:hover {
    transform: translateY(-2px);
    border-color: rgba(86, 198, 255, .46);
    background: rgba(15, 35, 52, .68);
}

.ww-wiki-result strong {
    color: #fff;
    font-size: 1.08rem;
}

.ww-wiki-result span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ww-wiki-result-meta,
.ww-wiki-byline {
    color: rgba(255,255,255,.58);
    font-size: .84rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ww-wiki-summary {
    margin: 0 0 22px;
    color: rgba(255,255,255,.78);
    font-size: 1.08rem;
    line-height: 1.65;
}

.ww-wiki-content {
    color: rgba(255,255,255,.86);
    line-height: 1.72;
    overflow-wrap: anywhere;
}

.ww-wiki-content h2,
.ww-wiki-content h3,
.ww-wiki-content h4 {
    color: #fff;
    margin: 28px 0 10px;
    line-height: 1.14;
}

.ww-wiki-content h2 {
    font-size: 1.55rem;
}

.ww-wiki-content h3,
.ww-wiki-content h4 {
    font-size: 1.22rem;
}

.ww-wiki-content p {
    margin: 0 0 16px;
}

.ww-wiki-content ul {
    margin: 0 0 18px;
    padding-left: 22px;
}

.ww-wiki-content ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.ww-wiki-content li {
    margin: 7px 0;
}

.ww-wiki-content a {
    color: #9addff;
}

.ww-wiki-content blockquote {
    margin: 0 0 18px;
    padding: 13px 16px;
    border-left: 4px solid rgba(86, 198, 255, .7);
    background: rgba(86, 198, 255, .12);
    color: rgba(255,255,255,.86);
}

.ww-wiki-content figure {
    margin: 0 0 22px;
}

.ww-wiki-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.ww-wiki-content figcaption {
    margin-top: 8px;
    color: rgba(255,255,255,.6);
    font-size: .9rem;
}

.ww-wiki-content code {
    display: inline-block;
    max-width: 100%;
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(255,255,255,.1);
    color: #d8f3ff;
    overflow-wrap: anywhere;
}

.ww-wiki-empty {
    display: grid;
    gap: 14px;
    justify-items: start;
    color: rgba(255,255,255,.78);
}

.ww-wiki-empty h2,
.ww-wiki-empty p {
    margin: 0;
}

@media (max-width: 760px) {
    .ww-wiki-hero,
    .ww-wiki-search-panel,
    .ww-wiki-search-row {
        grid-template-columns: 1fr;
    }

    .ww-wiki-hero-actions,
    .ww-wiki-form-actions,
    .ww-wiki-article-actions,
    .ww-wiki-stats {
        justify-content: stretch;
    }

    .ww-wiki-hero-actions .ww-theme-btn,
    .ww-wiki-form-actions .ww-theme-btn,
    .ww-wiki-article-actions .ww-theme-btn,
    .ww-wiki-search-row .ww-theme-btn {
        width: 100%;
    }

    .ww-wiki-section-head,
    .ww-wiki-article-head {
        display: grid;
    }

    .ww-wiki-toolbar {
        gap: 6px;
    }

    .ww-wiki-toolbar button,
    .ww-wiki-upload-btn {
        flex: 1 1 calc(50% - 6px);
    }

    .ww-wiki-wysiwyg {
        min-height: 360px;
        padding: 16px;
    }
}

