/* Match the post action inset and keep the navigation on the same row. */
html:root body #postlist + #below_postlist:has(> #newreplylink_bottom) {
  margin-block: .375rem .75rem !important;
  padding-inline-start: 16px;
}

html:root body #postlist + #below_postlist > #newreplylink_bottom {
  margin-inline-end: auto !important;
}

html:root body #postlist + #below_postlist:has(> #newreplylink_bottom) > #pagination_bottom {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .375rem .625rem;
  min-inline-size: 0;
}

html:root body #postlist + #below_postlist:has(> #newreplylink_bottom) > #pagination_bottom > :is(.pagination, .navpopupmenu) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  max-inline-size: 100%;
  margin: 0 !important;
}

html:root body #postlist + #below_postlist:has(> #newreplylink_bottom) > #pagination_bottom > .clear {
  display: none;
}
