/* Site navigation: content and account links retain their native permissions. */
body:not(.wp-admin) #masthead .menu-item-71 { display: none; }
body:not(.wp-admin) #masthead .tpv-compose,
body:not(.wp-admin) #masthead .tpv-account { list-style: none; width: 100%; }
body:not(.wp-admin) #masthead .tpv-compose-link {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; padding: 12px 20px; margin: 14px 0 8px;
  border-radius: 999px; background: #0f1419; color: #fff;
  font-size: 19px; font-weight: 750; line-height: 1.25; text-decoration: none;
}
body:not(.wp-admin) #masthead .tpv-compose-link:hover { background: #29333d; }
body:not(.wp-admin) #masthead .tpv-compose-link:focus-visible,
body:not(.wp-admin) #masthead .tpv-account-link:focus-visible { outline: 3px solid #1d9bf0; outline-offset: 3px; }
body:not(.wp-admin) #masthead .tpv-account-link {
  display: flex; align-items: center; gap: 10px; padding: 12px 4px;
  color: #0f1419; text-decoration: none; border-radius: 16px;
}
body:not(.wp-admin) #masthead .tpv-account-link:hover { background: #eff3f4; }
body:not(.wp-admin) #masthead .tpv-account-link img { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px; object-fit: cover; }
body:not(.wp-admin) #masthead .tpv-account-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
body:not(.wp-admin) #masthead .tpv-account-text strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body:not(.wp-admin) #masthead .tpv-account-text > span { color: #536471; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body:not(.wp-admin) #masthead .tpv-account-arrow { width: 16px; height: 16px; flex: 0 0 16px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (min-width: 1000px) {
  body:not(.wp-admin) #masthead .ast-builder-grid-row { gap: 16px; }
  body:not(.wp-admin) #masthead .main-header-menu { min-height: calc(100dvh - 164px); display: flex; flex-direction: column; gap: 4px; }
  body.admin-bar.logged-in #masthead .main-header-menu { min-height: calc(100dvh - 196px); }
  body:not(.wp-admin) #masthead .main-header-menu > .tpv-account { margin-top: auto; }
  body:not(.wp-admin) #masthead .menu-link { font-size: 20px; padding: 11px 12px; gap: 16px; }
  body:not(.wp-admin) #masthead .menu-item-75 .menu-link { margin-top: 8px; font-size: 14px; }
}
@media (max-width: 999px) {
  body:not(.wp-admin) #masthead .tpv-compose,
  body:not(.wp-admin) #masthead .tpv-account { padding: 0 20px; }
  body:not(.wp-admin) #masthead .tpv-compose-link { max-width: 360px; }
  body:not(.wp-admin) #masthead .tpv-account-link { max-width: 360px; }
}
@media (min-width: 1000px) {
  body:not(.wp-admin) #masthead.site-header .menu-item-70 { order: 1; }
  body:not(.wp-admin) #masthead.site-header .menu-item-72 { order: 2; }
  body:not(.wp-admin) #masthead.site-header .menu-item-74 { order: 3; }
  body:not(.wp-admin) #masthead.site-header .menu-item-105 { order: 4; }
  body:not(.wp-admin) #masthead.site-header .menu-item-73,
  body:not(.wp-admin) #masthead.site-header .menu-item-110 { order: 5; }
  body:not(.wp-admin) #masthead.site-header .menu-item-75,
  body:not(.wp-admin) #masthead.site-header .menu-item-76,
  body:not(.wp-admin) #masthead.site-header .menu-item-83 { order: 6; }
  body:not(.wp-admin) #masthead.site-header .tpv-compose { order: 7; }
  body:not(.wp-admin) #masthead.site-header .tpv-account { order: 8; }
}
@media (min-width: 1000px) and (max-height: 740px) {
  body:not(.wp-admin) #masthead.site-header .custom-logo { width: 120px!important; max-width: 120px!important; }
  body:not(.wp-admin) #masthead.site-header .ast-builder-grid-row { gap: 8px; }
  body:not(.wp-admin) #masthead.site-header .main-header-menu { gap: 0; min-height: calc(100dvh - 112px); }
  body.admin-bar.logged-in #masthead.site-header .main-header-menu { min-height: calc(100dvh - 144px); }
  body:not(.wp-admin) #masthead.site-header .menu-link { font-size: 17px; padding: 7px 10px; line-height: 24px; }
  body:not(.wp-admin) #masthead.site-header .menu-item-75 .menu-link { font-size: 13px; margin-top: 0; }
  body:not(.wp-admin) #masthead.site-header .tpv-compose-link { min-height: 44px; margin: 8px 0; padding: 10px 16px; }
  body:not(.wp-admin) #masthead.site-header .tpv-account-link { padding: 8px 4px; }
}
.tpv-owner-badge {
  display: inline-flex!important; align-items: center; justify-content: center;
  width: 17px; height: 17px; margin-left: 5px; border-radius: 50%;
  background: #1d9bf0; color: #fff!important; font: 700 12px/1 Arial,sans-serif!important;
  vertical-align: middle; text-shadow: none; flex: 0 0 17px;
}

/* Compact visitor actions with a visible gap at every menu breakpoint. */
body:not(.logged-in) #masthead.site-header .main-header-menu > .bp-login-nav,
body:not(.logged-in) #masthead.site-header .main-header-menu > .bp-register-nav {
  margin: 6px 12px !important; width: calc(100% - 24px); max-width: 220px;
}
body:not(.logged-in) #masthead.site-header .bp-login-nav > .menu-link,
body:not(.logged-in) #masthead.site-header .bp-register-nav > .menu-link {
  display:flex; align-items:center; justify-content:center; box-sizing:border-box;
  width:100%; min-height:40px; margin:0 !important; padding:8px 16px !important;
  font-size:16px !important; line-height:24px !important; font-weight:600;
  border-radius:22px;
}

/* Consistent spacing for the community feed and composer. */
body:not(.wp-admin) #buddypress #activity-stream { padding-top:0 !important; }
body:not(.wp-admin) #buddypress #whats-new-form { padding:12px 16px !important; }
body:not(.wp-admin) #buddypress #whats-new-form > .rtmedia-uploader-div { margin:8px 0 0 52px !important; }
body:not(.wp-admin) #buddypress .activity-list > .activity-item { padding:16px !important; }
body:not(.wp-admin) #buddypress .activity-list .activity-header { margin-bottom:4px; }
body:not(.wp-admin) #buddypress .activity-list .activity-meta { margin-top:10px; gap:24px; }
@media(min-width:1000px) {
  body:not(.wp-admin) #content { padding-top:16px !important; }
  body:not(.wp-admin) #masthead.site-header .main-header-menu { gap:4px; }
  body:not(.wp-admin) #masthead.site-header .menu-link { padding-top:10px; padding-bottom:10px; }
}
@media(max-width:600px) {
  body:not(.wp-admin) #buddypress #whats-new-form { padding:12px !important; }
  body:not(.wp-admin) #buddypress #whats-new-form > .rtmedia-uploader-div { margin-left:0 !important; }
  body:not(.wp-admin) #buddypress .activity-list > .activity-item { padding:12px !important; }
}

/* Bluesky-inspired visual refinement, retaining People's Voices navigation. */
body:not(.wp-admin) #masthead.site-header .tpv-compose-link {
 background:#0866ff; width:fit-content; min-width:150px; min-height:44px;
 padding:10px 22px; font-size:16px; font-weight:600; margin:16px 0 10px;
}
body:not(.wp-admin) #masthead.site-header .tpv-compose-link:hover { background:#0055dc; }
body:not(.wp-admin) #buddypress #whats-new-form textarea#whats-new {
 min-height:48px !important; height:48px; padding:8px 0;
}
body:not(.wp-admin) #buddypress #whats-new-form textarea#whats-new:focus { min-height:96px !important; }
body:not(.wp-admin) #buddypress .activity-list > .activity-item {
 border-bottom:1px solid #dce3ec !important; background:#fff;
}
body:not(.wp-admin) #buddypress .activity-list .activity-meta { gap:32px; }
body:not(.wp-admin) #buddypress .activity-list .activity-inner { line-height:1.45; }
body:not(.wp-admin) #buddypress #subnav-filters { background:#f6f8fb; border-radius:12px; }
@media(min-width:1000px) {
 body:not(.wp-admin) #masthead.site-header .menu-link { font-size:18px; font-weight:400; gap:12px; }
 body:not(.wp-admin) #masthead.site-header .current-menu-item > .menu-link { font-weight:700; }
 body:not(.wp-admin) #masthead.site-header .main-header-menu { gap:6px; }
}
@media(min-width:1000px) and (max-height:740px) {
 body:not(.wp-admin) #masthead.site-header .main-header-menu { gap:2px; }
 body:not(.wp-admin) #masthead.site-header .menu-link { padding-top:8px; padding-bottom:8px; }
}

@media(min-width:1000px) {
 body:not(.wp-admin) #masthead.site-header .menu-item-105 .menu-link::before { flex:0 0 24px; width:24px; margin:0 !important; }
 body:not(.logged-in) #masthead.site-header .main-header-menu > .tpv-compose { margin:6px 12px !important; width:calc(100% - 24px); max-width:220px; }
 body:not(.logged-in) #masthead.site-header .tpv-compose-link { width:100%; min-width:0; min-height:40px; margin:0 !important; padding:8px 16px !important; line-height:24px; box-sizing:border-box; }
 body:not(.wp-admin) #buddypress #subnav-filters { top:0 !important; }
}

/* Larger sidebar identity; preserve the compact mobile header. */
@media (min-width: 1000px) {
  body:not(.wp-admin) mmmasthead.site-header .custom-logo { width: 140px!important; max-width: 140px!important; height:auto; }
  body:not(.wp-admin) mmmasthead.site-header .main-header-menu { min-height:0; }
  body:not(.wp-admin) mmmasthead.site-header .tpv-account { margin-top:20px; }
}
@media (min-width: 1000px) and (max-height:740px) {
  body:not(.wp-admin) mmmasthead.site-header .custom-logo { width:120px!important; max-width:120px!important; }
}
