/* Phase 18.2 content editor */

.content-editor-heading,
.content-editor-section-heading,
.content-editor-actions {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-bottom:18px;
}

.content-editor-form,
.content-editor-sections {
    display:grid;
    gap:18px;
}

.content-editor-panel,
.content-section-editor {
    padding:22px;
}

.content-page-toggles {
    display:flex;
    flex-wrap:wrap;
    gap:14px;
}

.content-editor-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.content-editor-grid label {
    display:grid;
    gap:6px;
    font-weight:750;
}

.content-editor-grid input,
.content-editor-grid textarea {
    width:100%;
}

.content-editor-full {
    grid-column:1/-1;
}

.content-section-controls {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
}

.content-section-controls label {
    display:flex;
    align-items:center;
    gap:6px;
    font-size:.82rem;
    font-weight:750;
}

.content-section-controls input[type="number"] {
    width:78px;
}

.content-editor-toggle {
    display:flex!important;
    align-items:center;
    gap:7px;
}

.content-editor-toggle input {
    width:auto;
}

.danger-text {
    color:#8a1717;
}

.new-section-editor {
    border-left:6px solid var(--gold);
}

.content-editor-actions {
    position:sticky;
    bottom:0;
    z-index:30;
    justify-content:flex-end;
    margin:0;
    padding:14px;
    border:1px solid #d8d0c2;
    border-radius:8px 8px 0 0;
    background:rgba(255,255,255,.96);
    box-shadow:0 -8px 22px rgba(7,21,34,.1);
}

@media(max-width:760px) {
    .content-editor-heading,
    .content-editor-section-heading {
        align-items:stretch;
        flex-direction:column;
    }

    .content-editor-grid {
        grid-template-columns:1fr;
    }

    .content-editor-full {
        grid-column:auto;
    }

    .content-section-editor .panel-head {
        align-items:flex-start;
        flex-direction:column;
    }

    .content-page-toggles {
        align-items:flex-start;
        flex-direction:column;
    }
}
