/* ui_frames.css - the ONE shared layer of decorative frames, dividers and motifs (DM 2026-11-02: "a nice divider, motif or frame here and there").
 * Pictures: Kenney "Fantasy UI Borders" 1.0, CC0 (ui_frames/README.md). World-agnostic: plain gold line work, no world named.
 *
 * Opt-in classes (add one to an element; nothing is framed by default):
 *   .nx-frame    a light 9-slice frame drawn INSIDE the element's box by a pseudo-element: no size, spacing or layout change, clicks pass through.
 *   .nx-divider  an empty block (a <div>) that draws a centred ornamental divider (22px high).
 *   .nx-rule     a bar that gets a thin divider along its bottom edge (adds 14px of bottom padding).
 *   .nx-on-light add to a .nx-divider / .nx-frame on a pale background (parchment) so it reads dark.
 * Never put them on inputs, tables or dense lists (ui_frames_probe.js checks the shipped pages).
 *
 * THE SWITCH: every rule below begins `html:not([data-frames="off"])`, so html[data-frames="off"] removes them all at once. settings_cog.js sets
 * that attribute from the person's own choice, else the campaign default (PortalExtras 'ui_frames' {default:'off'|'on'}), else on.
 */
html:not([data-frames="off"]) :where(.nx-frame) { position: relative; }          /* :where() = zero weight, so a host's own position (absolute, fixed, sticky) always wins */
html:not([data-frames="off"]) .nx-frame::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; box-sizing: border-box; z-index: 1;
    border: 9px solid transparent; border-image: url(ui_frames/frame.png?v=ade6253b58) 16 / 9px round;
    opacity: .8;
}
html:not([data-frames="off"]) .nx-divider {
    display: block; height: 22px; margin: 6px auto; max-width: 100%; width: 192px; pointer-events: none;
    background: url(ui_frames/divider.png?v=5afa08f9c1) center / contain no-repeat; opacity: .85;
}
html:not([data-frames="off"]) .nx-rule {
    padding-bottom: 16px;
    background: url(ui_frames/rule.png?v=ebfb69ceee) center bottom / auto 12px repeat-x;
}
html:not([data-frames="off"]) .nx-on-light.nx-divider,
html:not([data-frames="off"]) .nx-on-light.nx-frame::after { filter: brightness(.42) saturate(1.2); }
