/*
 * Modern Forum 1.2.0 — OAF component compatibility.
 *
 * This stylesheet intentionally does NOT theme ordinary XenForo UI.
 * It is loaded after the behavior sheet and styles only Modern Forum-owned
 * components plus editor compatibility needed by those workflows.
 */

.oafModernEditorialShell {
    --oaf-editorial-paper:#f7f4ec;
    --oaf-editorial-paper-strong:#f0ebe0;
    --oaf-editorial-card:#fffdf8;
    --oaf-editorial-ink:#11110f;
    --oaf-editorial-muted:#625e56;
    --oaf-editorial-line:#cbc5b8;
    --oaf-editorial-line-soft:#ded8cd;
    --oaf-editorial-blue:#2f5278;
    --oaf-editorial-blue-dark:#1e3e61;
    --oaf-editorial-red:#a54134;
    --oaf-editorial-serif:Georgia,"Times New Roman",serif;
    --oaf-editorial-sans:Arial,Helvetica,sans-serif;
}

/* Quick actions ------------------------------------------------------- */
.oafModernEditorialShell .oafQuickAction {
    border-radius:2px!important;
    box-shadow:none!important;
    font-family:var(--oaf-editorial-sans)!important;
    font-weight:700!important;
}
.oafModernEditorialShell .oafQuickAction--newPosts,
.oafModernEditorialShell .oafQuickAction:not(.oafQuickAction--submit) {
    background:var(--oaf-editorial-card)!important;
    border:1px solid #aaa398!important;
    color:var(--oaf-editorial-ink)!important;
}
.oafModernEditorialShell .oafQuickAction--newPosts:hover,
.oafModernEditorialShell .oafQuickAction--newPosts:focus {
    background:#fff!important;
    border-color:var(--oaf-editorial-red)!important;
    color:var(--oaf-editorial-red)!important;
}
.oafModernEditorialShell .oafQuickAction--submit,
.oafModernEditorialShell .oafQuickAction.oafQuickAction--submit {
    background:var(--oaf-editorial-ink)!important;
    border:1px solid var(--oaf-editorial-ink)!important;
    color:#fff!important;
}
.oafModernEditorialShell .oafQuickAction--submit:hover,
.oafModernEditorialShell .oafQuickAction--submit:focus {
    background:var(--oaf-editorial-blue-dark)!important;
    border-color:var(--oaf-editorial-blue-dark)!important;
    color:#fff!important;
}

/* Navigation utilities created/moved by Modern Forum ----------------- */
.oafModernEditorialShell .oafNavUtilityLink,
.oafModernEditorialShell .oafSearchToggle {
    color:#f4f1e8!important;
    text-shadow:none!important;
}
.oafModernEditorialShell .oafNavUtilityLink:hover,
.oafModernEditorialShell .oafNavUtilityLink:focus,
.oafModernEditorialShell .oafSearchToggle:hover,
.oafModernEditorialShell .oafSearchToggle:focus {
    color:#fff!important;
}
.oafModernEditorialShell .oafSearchPopover {
    background:#171716!important;
    border:1px solid #44423e!important;
    box-shadow:0 14px 36px rgba(0,0,0,.35)!important;
}

/* Clickable semantic forum icons ------------------------------------- */
.oafModernEditorialShell .node .oafNodeGlyph,
.oafModernEditorialShell .node .nodeIcon .oafNodeGlyph {
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    color:#565650!important;
}
.oafModernEditorialShell .node.unread .oafNodeGlyph,
.oafModernEditorialShell .node .unread .oafNodeGlyph {
    color:var(--oaf-editorial-red)!important;
}
.oafModernEditorialShell .node .nodeIcon.oafNodeIconPostable:hover .oafNodeGlyph,
.oafModernEditorialShell .node .nodeIcon.oafNodeIconPostable:has(.oafNodePostLink:focus-visible) .oafNodeGlyph {
    color:var(--oaf-editorial-red)!important;
    transform:translateY(-1px);
}

/* Submit Work chooser ------------------------------------------------ */
.oafModernEditorialShell .xenOverlay:has(.oafSubmitWorkChooser) .formOverlay,
.oafModernEditorialShell .xenOverlay:has(.oafSubmitWorkChooser) .section,
.oafModernEditorialShell .oafSubmitWorkChooser {
    background:var(--oaf-editorial-card)!important;
    background-image:none!important;
    border-color:var(--oaf-editorial-line)!important;
    color:var(--oaf-editorial-ink)!important;
    box-shadow:0 16px 48px rgba(17,17,15,.22)!important;
}
.oafModernEditorialShell .xenOverlay:has(.oafSubmitWorkChooser) h2,
.oafModernEditorialShell .xenOverlay:has(.oafSubmitWorkChooser) .heading {
    background:var(--oaf-editorial-paper-strong)!important;
    background-image:none!important;
    border-color:var(--oaf-editorial-line)!important;
    color:var(--oaf-editorial-ink)!important;
    font-family:var(--oaf-editorial-serif)!important;
    text-shadow:none!important;
}
.oafModernEditorialShell .oafSubmitWorkCategory {
    background:var(--oaf-editorial-paper-strong)!important;
    border-bottom:1px solid var(--oaf-editorial-line)!important;
}
.oafModernEditorialShell .oafSubmitWorkCategory h3 {
    color:var(--oaf-editorial-ink)!important;
    font-family:var(--oaf-editorial-serif)!important;
    font-weight:700!important;
}
.oafModernEditorialShell .oafSubmitWorkCategory .description,
.oafModernEditorialShell .oafSubmitWorkForum .description {
    color:var(--oaf-editorial-muted)!important;
}
.oafModernEditorialShell .xenOverlay .oafSubmitWorkChooser a.oafSubmitWorkForum,
.oafModernEditorialShell .oafSubmitWorkChooser a.oafSubmitWorkForum {
    background:var(--oaf-editorial-card)!important;
    border-bottom:1px solid var(--oaf-editorial-line-soft)!important;
    color:var(--oaf-editorial-blue)!important;
}
.oafModernEditorialShell .xenOverlay .oafSubmitWorkChooser a.oafSubmitWorkForum:hover,
.oafModernEditorialShell .xenOverlay .oafSubmitWorkChooser a.oafSubmitWorkForum:focus,
.oafModernEditorialShell .oafSubmitWorkChooser a.oafSubmitWorkForum:hover,
.oafModernEditorialShell .oafSubmitWorkChooser a.oafSubmitWorkForum:focus {
    background:#f3efe7!important;
    color:var(--oaf-editorial-red)!important;
}
.oafModernEditorialShell .oafSubmitWorkCount { color:var(--oaf-editorial-muted)!important; }
.oafModernEditorialShell .oafSubmitWorkCount strong { color:var(--oaf-editorial-ink)!important; }
