/* SIA NEW Mobile Experience v0.1.1 — no external libraries or font downloads. */
.sia-nm-top,.sia-nm-bottom,.sia-nm-composer,.sia-nm-overlay,.sia-nm-drawer{display:none!important}
.sia-nm-icon{display:inline-block;vertical-align:middle;flex:none}
.sia-nm-empty-avatar{display:inline-grid;place-items:center;border-radius:50%;background:#eef0f4;width:42px;height:42px;color:#313c4d}
@media screen and (max-width:767px){
  body.sia-nm-enabled{--sia-nm-text:#172237;--sia-nm-muted:#667181;--sia-nm-line:#e7e9ee;--sia-nm-bg:#fff;--sia-nm-top-h:64px;--sia-nm-bottom-h:64px}
  /* Header replacement is decided server-side. Do not wait for JS readiness:
     some admin/cache/optimization contexts defer JS but still render our header.
     All selectors are limited to pages on which the SIA header is enabled. */
  body.sia-nm-enabled.sia-nm-has-header #masthead,
  body.sia-nm-enabled.sia-nm-has-header #site-header,
  body.sia-nm-enabled.sia-nm-has-header #mobile-header,
  body.sia-nm-enabled.sia-nm-has-header .site-header,
  body.sia-nm-enabled.sia-nm-has-header .bb-mobile-header,
  body.sia-nm-enabled.sia-nm-has-header .bb-mobile-header-wrap,
  body.sia-nm-enabled.sia-nm-has-header .bb-mobile-header-wrapper,
  body.sia-nm-enabled.sia-nm-has-header .mobile-header,
  body.sia-nm-enabled.sia-nm-has-header .elementor-location-header,
  body.sia-nm-enabled.sia-nm-has-header [data-elementor-type="header"]{display:none!important}
  body.sia-nm-enabled.sia-nm-has-header{padding-top:calc(var(--sia-nm-top-h) + env(safe-area-inset-top,0px))!important}
  body.sia-nm-enabled.sia-nm-has-bottom{padding-bottom:calc(var(--sia-nm-bottom-h) + env(safe-area-inset-bottom,0px))!important}
  html.sia-nm-hide-admin{margin-top:0!important}
  html.sia-nm-hide-admin #wpadminbar{display:none!important}
  html.sia-nm-hide-admin body{--wp-admin--admin-bar--height:0px!important}
  body.sia-nm-enabled .sia-nm-top,
  body.sia-nm-enabled .sia-nm-bottom,
  body.sia-nm-enabled .sia-nm-composer{font-family:inherit;box-sizing:border-box;color:var(--sia-nm-text)}
  body.sia-nm-enabled .sia-nm-top *,body.sia-nm-enabled .sia-nm-bottom *,body.sia-nm-enabled .sia-nm-composer *,body.sia-nm-enabled .sia-nm-drawer *{box-sizing:border-box}
  body.sia-nm-enabled .sia-nm-top{display:block!important;position:fixed!important;inset:0 0 auto 0;min-height:calc(var(--sia-nm-top-h) + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px);background:#fff;border-bottom:1px solid var(--sia-nm-line);box-shadow:0 2px 10px rgba(10,24,40,.055);z-index:100010!important}
  .sia-nm-top-inner{min-height:var(--sia-nm-top-h);display:flex;align-items:center;justify-content:space-between;gap:8px;padding-inline:12px}
  .sia-nm-top-brand,.sia-nm-top-actions{display:flex;align-items:center;min-width:0;gap:6px}
  .sia-nm-top-brand{flex:1 1 auto}
  .sia-nm-logo{display:flex!important;align-items:center;min-width:0;max-width:176px;text-decoration:none!important;color:var(--sia-nm-text)!important}
  .sia-nm-logo-img{height:42px!important;width:auto!important;max-width:124px!important;object-fit:contain!important;box-shadow:none!important;border:0!important}
  .sia-nm-wordmark{font-size:24px;font-weight:900;letter-spacing:-.7px;white-space:nowrap;line-height:1;direction:ltr;color:#162742}
  .sia-nm-wordmark::first-letter{color:var(--sia-nm-accent)}
  .sia-nm-top .sia-nm-icon-button,.sia-nm-drawer .sia-nm-icon-button{position:relative;display:inline-flex!important;flex:0 0 40px;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;min-height:40px;border:0!important;background:transparent!important;padding:8px!important;color:var(--sia-nm-text,#172237)!important;text-decoration:none!important;border-radius:12px!important;box-shadow:none!important;cursor:pointer!important}
  .sia-nm-top .sia-nm-icon-button:focus-visible,.sia-nm-bottom a:focus-visible,.sia-nm-drawer button:focus-visible,.sia-nm-drawer a:focus-visible{outline:3px solid var(--sia-nm-accent,#c49b46)!important;outline-offset:2px}
  .sia-nm-top .sia-nm-icon-button:active{background:#f1f2f5!important}
  .sia-nm-icon-button .sia-nm-icon{width:25px;height:25px}
  .sia-nm-count{position:absolute;top:-2px;inset-inline-end:-5px;background:#de3c46;color:#fff;min-width:17px;height:17px;padding:0 4px;border-radius:20px;display:flex;justify-content:center;align-items:center;font-size:10px;font-weight:800;line-height:1;direction:ltr;border:2px solid #fff}
  .sia-nm-search{padding:0 14px 14px;background:#fff;border-bottom:1px solid var(--sia-nm-line)}
  .sia-nm-search[hidden]{display:none!important}
  .sia-nm-search-form{display:flex;align-items:center;gap:5px;background:#f3f4f7;border-radius:30px;padding:3px 12px;margin:0}
  .sia-nm-search-form input{display:block;flex:1;min-width:0;padding:10px 3px!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;height:38px;font-size:14px;color:#162742}
  .sia-nm-search-form button{display:grid;place-items:center;border:0!important;background:transparent!important;color:#162742!important;padding:5px!important;min-width:34px;min-height:34px}
  body.sia-nm-enabled .sia-nm-bottom{display:flex!important;position:fixed!important;inset:auto 0 0 0;min-height:calc(var(--sia-nm-bottom-h) + env(safe-area-inset-bottom,0px));padding:4px 4px calc(4px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--sia-nm-line);box-shadow:0 -3px 14px rgba(11,22,39,.05);z-index:100005!important;align-items:flex-start;justify-content:space-around;gap:0}
  .sia-nm-bottom-item{display:flex!important;position:relative;flex:1 1 0;min-width:0;align-items:center;justify-content:center;flex-direction:column;gap:3px;padding:5px 1px 2px!important;height:56px;text-decoration:none!important;border:0!important;box-shadow:none!important;background:transparent!important;color:#606a79!important;border-radius:10px}
  .sia-nm-bottom-item.is-active{color:#172237!important}
  .sia-nm-bottom-icon{display:grid;place-items:center;position:relative;min-height:27px}
  .sia-nm-bottom-icon .sia-nm-icon{width:25px;height:25px}
  .sia-nm-bottom-item.is-active .sia-nm-bottom-icon::before{content:"";position:absolute;top:-7px;inset-inline:5px;border-top:3px solid var(--sia-nm-accent);border-radius:6px}
  .sia-nm-bottom-label{font-size:10px!important;line-height:1.35;font-weight:600!important;white-space:nowrap;text-align:center}
  .sia-nm-bottom-item .sia-nm-count{top:-6px;inset-inline-end:-9px;border-color:#fff}
  body.sia-nm-enabled .sia-nm-composer{display:block!important;margin:10px 10px 14px;padding:13px 12px!important;background:#fff;border:1px solid #eaecf0;border-radius:16px;box-shadow:0 2px 9px rgba(12,24,39,.045)}
  .sia-nm-composer-top{display:flex;align-items:center;gap:9px;width:100%}
  .sia-nm-composer-avatar{flex:none;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center}
  .sia-nm-composer-avatar img,.sia-nm-drawer-profile img{width:100%!important;height:100%!important;max-width:none!important;border:0!important;border-radius:50%!important;object-fit:cover!important;margin:0!important;box-shadow:none!important}
  .sia-nm-composer-prompt{flex:1;min-width:0;display:flex!important;align-items:center;padding:11px 13px!important;min-height:42px;background:#f5f6f8;border:1px solid #e1e4e9;border-radius:28px;font-size:13px;font-weight:500;line-height:1.5;color:#576273!important;text-decoration:none!important}
  .sia-nm-composer-media{display:grid!important;flex:none;place-items:center;width:34px;height:40px;color:var(--sia-nm-accent)!important;text-decoration:none!important}
  /* When the actual BuddyBoss post form exists, keep that native working form instead of duplicating it. */
  body.sia-nm-native-composer-present .sia-nm-composer{display:none!important}
  body.sia-nm-enabled .activity-update-form,body.sia-nm-enabled #whats-new-form{border-radius:14px;max-width:100%}
  body.sia-nm-enabled .activity-list .activity-item{border-radius:13px}
  .sia-nm-overlay{position:fixed;inset:0;z-index:100020;background:rgba(12,22,41,.55);backdrop-filter:blur(2px)}
  .sia-nm-overlay:not([hidden]){display:block!important}
  .sia-nm-drawer{position:fixed;inset:0 0 0 auto;width:min(86vw,360px);height:100dvh;z-index:100025;background:#fff;color:#182536;overflow-y:auto;overscroll-behavior:contain;box-shadow:-8px 0 30px rgba(0,0,0,.15);padding:16px 17px 30px}
  .sia-nm-drawer:not([hidden]){display:block!important}
  .sia-nm-drawer-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:18px;padding:6px 0 15px}
  .sia-nm-drawer-top strong{font-size:17px}
  .sia-nm-drawer-profile{display:flex;align-items:center;gap:10px;color:#182536!important;text-decoration:none!important;background:#f7f7f9;border:1px solid #eaecf0;border-radius:14px;padding:12px;margin-bottom:18px}
  .sia-nm-drawer-profile img,.sia-nm-drawer-profile .sia-nm-empty-avatar{width:48px!important;height:48px!important;flex:none}
  .sia-nm-drawer-profile span:not(.sia-nm-empty-avatar){display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
  .sia-nm-drawer-profile strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sia-nm-drawer-profile small{font-size:11px;color:#7b838f}
  .sia-nm-drawer-links{display:flex;flex-direction:column;gap:5px}
  .sia-nm-drawer-links a{display:flex!important;gap:12px;align-items:center;color:#243145!important;text-decoration:none!important;font-weight:600;font-size:14px;padding:12px 10px;border-radius:12px}
  .sia-nm-drawer-links a:active{background:#f1f2f5}
  .sia-nm-drawer-links .sia-nm-icon{width:22px;height:22px;color:var(--sia-nm-accent)}
  .sia-nm-drawer-note{font-size:12px;color:#808993;margin-top:26px;line-height:1.8}
  body.sia-nm-drawer-open{overflow:hidden!important}
  @media(max-width:355px){
    .sia-nm-top-inner{padding-inline:7px;gap:0}
    .sia-nm-top-brand,.sia-nm-top-actions{gap:0}
    .sia-nm-logo-img{max-width:98px!important;height:37px!important}
    .sia-nm-wordmark{font-size:20px}
    .sia-nm-top .sia-nm-icon-button{flex-basis:36px;width:36px;min-width:36px;padding:6px!important}
    .sia-nm-bottom-label{font-size:9px!important}
  }
}
