/* BudunOS global elevation / shadow control
 * --bos-shadow-strength (0–1) set in _head.css.tpl from Design → Colors.
 * body.bos-shadow-off = flat (no card elevation).
 */

/* Soft surfaces — use tokens so intensity slider applies (no !important:
   variant CSS may override with its own elevation). */
.bos-publisher,
.x-form.publisher.bos-publisher {
  box-shadow: var(--bos-elev-3);
}

body.publisher-focus .bos-publisher {
  box-shadow: var(--bos-elev-3);
}

.post.bos-post {
  box-shadow: var(--bos-elev-2);
}

.bos-profile-header,
.profile-header.bos-profile-header {
  box-shadow: var(--bos-elev-2);
}

.bos-dir .ui-box,
.bos-blog-card,
.bos-blog-article {
  box-shadow: var(--bos-elev-1);
}

/* Flat mode — kill elevation after variants */
body.bos-shadow-off .bos-publisher,
body.bos-shadow-off .post.bos-post,
body.bos-shadow-off .bos-profile-header,
body.bos-shadow-off .profile-header,
body.bos-shadow-off .bos-dir-hero,
body.bos-shadow-off .bos-dir .ui-box,
body.bos-shadow-off .bos-blog-card,
body.bos-shadow-off .bos-blog-article,
body.bos-shadow-off .bos-page-card,
body.bos-shadow-off .bos-group-card,
body.bos-shadow-off .card,
body.bos-shadow-off .x-form,
body.bos-shadow-off .main-header,
body.bos-shadow-off .dropdown-menu,
body.bos-shadow-off .action-dropdown-menu,
body.bos-shadow-off .chat-sidebar,
body.bos-shadow-off .js_chat-box,
body.bos-shadow-off .footer-bottom-bar,
body.bos-shadow-off .bos-fbar,
body.bos-shadow-off .modal-content {
  box-shadow: none !important;
}
